compiler/parser/Makefile
raw| 1 | |
| 2 | OUT = faustlexer.cpp faustparser.cpp faustparser.hpp |
| 3 | YACC = bison |
| 4 | LEX = flex |
| 5 | PREFIX := FAUST |
| 6 | LEX_OPTIONS:= -P$(PREFIX) |
| 7 | YACC_OPTIONS:= -p$(PREFIX) |
| 8 | |
| 9 | code : $(OUT) |
| 10 | |
| 11 | faustparser.hpp : faustparser.y |
| 12 | faustparser.cpp : faustparser.y |
| 13 | $(YACC) -d -o faustparser.cpp $(YACC_OPTIONS) faustparser.y |
| 14 | |
| 15 | faustlexer.cpp : faustlexer.l |
| 16 | $(LEX) -I -ofaustlexer.cpp $(LEX_OPTIONS) faustlexer.l |
| 17 | |
| 18 | clean: |
| 19 | rm -f $(OUT) |
| 20 |