le compilateur super performant
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 533B

123456789101112131415161718192021222324
  1. LEX = flex
  2. YACC = bison -d
  3. CC = gcc
  4. all: compilateur test
  5. test: symbol_table.test.c symbol_table.c symbol_table.h
  6. $(CC) -g -o test symbol_table.test.c symbol_table.c
  7. compilateur: as.tab.c lex.yy.c symbol_table.c symbol_table.h asm_instructions.c asm_instructions.h yacc_util.c yacc_util.h
  8. $(CC) -o compilateur as.tab.c lex.yy.c symbol_table.c asm_instructions.c yacc_util.c
  9. as.tab.c: as.y
  10. $(YACC) as.y
  11. lex.yy.c: al.lex
  12. $(LEX) al.lex
  13. build: compilateur
  14. clean:
  15. rm -f as.tab.c as.tab.h lex.yy.c compilateur as.output test