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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. default :
  2. @echo "Spécifiez une cible"
  3. ###########################
  4. ### NETTOYAGE ###
  5. ###########################
  6. clean_all : clean clean_Inputs clean_Outputs
  7. clean: clean_Lex_Yacc clean_Tables
  8. @rm -f cross_assembler
  9. clean_Tables:
  10. @rm -f Tables/*.o
  11. clean_Lex_Yacc:
  12. @rm -f Lex_Yacc/as.output Lex_Yacc/as.tab.* Lex_Yacc/lex.yy.* Lex_Yacc/as.dot
  13. clean_Inputs:
  14. @rm -f Inputs/*
  15. clean_Outputs:
  16. @rm -f Outputs/*
  17. ###########################
  18. ### COMPILATION ###
  19. ###########################
  20. build : clean build_Tables build_Lex_Yacc
  21. gcc Lex_Yacc/as.tab.o Lex_Yacc/lex.yy.o Tables/tables.o -o cross_assembler
  22. build_Tables: clean_Tables
  23. gcc -c Tables/tables.c -o Tables/tables.o
  24. build_Lex_Yacc: clean_Lex_Yacc
  25. bison -g -v -d -t -b Lex_Yacc/as Lex_Yacc/as.y
  26. flex -o Lex_Yacc/lex.yy.c Lex_Yacc/al.lex
  27. gcc -c Lex_Yacc/as.tab.c -o Lex_Yacc/as.tab.o
  28. gcc -c Lex_Yacc/lex.yy.c -o Lex_Yacc/lex.yy.o
  29. ###########################
  30. ### EDITION ###
  31. ###########################
  32. edit_Lex_Yacc:
  33. pluma Lex_Yacc/al.lex Lex_Yacc/as.y &
  34. edit_Tables:
  35. pluma Tables/tables.c Tables/tables.h &
  36. edit: edit_Lex_Yacc edit_Tables