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 305B

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