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 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. default :
  2. @echo "Spécifiez une cible"
  3. clean : clean_Symboles clean_Instructions clean_Lex_Yacc
  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_Lex_Yacc:
  13. @rm -f Lex_Yacc/as.output Lex_Yacc/as.tab.* Lex_Yacc/lex.yy.*
  14. build : clean build_Symboles build_Instructions build_Lex_Yacc
  15. gcc Lex_Yacc/as.tab.o Lex_Yacc/lex.yy.o Tables/Instructions/tab_instruc.o Tables/Symboles/table_symboles.o -ll -o rondoudou_gcc
  16. build_Symboles: clean_Symboles
  17. gcc -c Tables/Symboles/table_symboles.c -o Tables/Symboles/table_symboles.o
  18. build_Instructions: clean_Instructions
  19. gcc -c Tables/Instructions/tab_instruc.c -o Tables/Instructions/tab_instruc.o
  20. build_Lex_Yacc: clean_Lex_Yacc
  21. bison -d -t -b Lex_Yacc/as Lex_Yacc/as.y
  22. flex -o Lex_Yacc/lex.yy.c Lex_Yacc/al.lex
  23. gcc -c Lex_Yacc/as.tab.c -o Lex_Yacc/as.tab.o
  24. gcc -c Lex_Yacc/lex.yy.c -o Lex_Yacc/lex.yy.o
  25. test_Symboles: build_Symboles
  26. gcc -c Tables/Symboles/test.c -o Tables/Symboles/test.o
  27. gcc Tables/Symboles/test.o Tables/Symboles/table_symboles.o -o Tables/Symboles/test
  28. Tables/Symboles/test
  29. test_Instructions: build_Instructions
  30. gcc -c Tables/Instructions/test.c -o Tables/Instructions/test.o
  31. gcc Tables/Instructions/test.o Tables/Instructions/tab_instruc.o -o Tables/Instructions/test
  32. Tables/Instructions/test
  33. test: build
  34. cat Fichiers_Tests/progC | ./rondoudou_gcc
  35. edit_Lex_Yacc:
  36. pluma Lex_Yacc/al.lex Lex_Yacc/as.y &
  37. edit_Symboles:
  38. pluma Tables/Symboles/table_symboles.c Tables/Symboles/table_symboles.h &
  39. edit_Instructions:
  40. pluma Tables/Instructions/tab_instruc.c Tables/Instructions/tab_instruc.h &
  41. edit_Progs:
  42. pluma Fichiers_Tests/progC &
  43. edit: edit_Lex_Yacc edit_Symboles edit_Instructions edit_Progs