No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. default :
  2. @echo "Spécifiez une cible"
  3. clean : clean_Symboles clean_Instructions clean_Lex_Yacc clean_Fonctions
  4. @rm -f rondoudou_gcc
  5. @rm -f output.txt
  6. clean_Symboles:
  7. @rm -f Tables/Symboles/*.o
  8. @rm -f Tables/Symboles/test
  9. clean_Instructions:
  10. @rm -f Tables/Instructions/*.o
  11. @rm -f Tables/Instructions/test
  12. clean_Fonctions:
  13. @rm -f Tables/Fonctions/*.o
  14. @rm -f Tables/Fonctions/test
  15. clean_Lex_Yacc:
  16. @rm -f Lex_Yacc/as.output Lex_Yacc/as.tab.* Lex_Yacc/lex.yy.*
  17. build : clean build_Symboles build_Instructions build_Lex_Yacc build_Fonctions
  18. gcc Lex_Yacc/as.tab.o Lex_Yacc/lex.yy.o Tables/Instructions/tab_instruc.o Tables/Symboles/table_symboles.o Tables/Fonctions/tab_fonctions.o -ll -o rondoudou_gcc
  19. build_Symboles: clean_Symboles
  20. gcc -c Tables/Symboles/table_symboles.c -o Tables/Symboles/table_symboles.o
  21. build_Instructions: clean_Instructions
  22. gcc -c Tables/Instructions/tab_instruc.c -o Tables/Instructions/tab_instruc.o
  23. build_Fonctions : clean_Fonctions
  24. gcc -c Tables/Fonctions/tab_fonctions.c -o Tables/Fonctions/tab_fonctions.o
  25. build_Lex_Yacc: clean_Lex_Yacc
  26. bison -d -t -b Lex_Yacc/as Lex_Yacc/as.y
  27. flex -o Lex_Yacc/lex.yy.c Lex_Yacc/al.lex
  28. gcc -c Lex_Yacc/as.tab.c -o Lex_Yacc/as.tab.o
  29. gcc -c Lex_Yacc/lex.yy.c -o Lex_Yacc/lex.yy.o
  30. test_Symboles: build_Symboles
  31. gcc -c Tables/Symboles/test.c -o Tables/Symboles/test.o
  32. gcc Tables/Symboles/test.o Tables/Symboles/table_symboles.o -o Tables/Symboles/test
  33. Tables/Symboles/test
  34. test_Instructions: build_Instructions
  35. gcc -c Tables/Instructions/test.c -o Tables/Instructions/test.o
  36. gcc Tables/Instructions/test.o Tables/Instructions/tab_instruc.o -o Tables/Instructions/test
  37. Tables/Instructions/test
  38. test: build
  39. cat Fichiers_Tests/progC | ./rondoudou_gcc
  40. edit_Lex_Yacc:
  41. pluma Lex_Yacc/al.lex Lex_Yacc/as.y &
  42. edit_Symboles:
  43. pluma Tables/Symboles/table_symboles.c Tables/Symboles/table_symboles.h &
  44. edit_Instructions:
  45. pluma Tables/Instructions/tab_instruc.c Tables/Instructions/tab_instruc.h &
  46. edit_Progs:
  47. pluma Fichiers_Tests/progC &
  48. edit_Fonctions :
  49. pluma Tables/Fonctions/tab_fonctions.c Tables/Fonctions/tab_fonctions.h &
  50. edit: edit_Lex_Yacc edit_Symboles edit_Instructions edit_Progs edit_Fonctions