aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ilang/Makefile.inc
blob: 6f1f0e8fca9953818177aa0fc5f925d5a1bedea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
GENFILES += frontends/ilang/ilang_parser.tab.cc
GENFILES += frontends/ilang/ilang_parser.tab.hh
GENFILES += frontends/ilang/ilang_parser.output
GENFILES += frontends/ilang/ilang_lexer.cc

frontends/ilang/ilang_parser.tab.cc: frontends/ilang/ilang_parser.y
	$(Q) mkdir -p $(dir $@)
	$(P) $(BISON) -o $@ -d -r all -b frontends/ilang/ilang_parser $<

frontends/ilang/ilang_parser.tab.hh: frontends/ilang/ilang_parser.tab.cc

frontends/ilang/ilang_lexer.cc: frontends/ilang/ilang_lexer.l
	$(Q) mkdir -p $(dir $@)
	$(P) flex -o frontends/ilang/ilang_lexer.cc $<

OBJS += frontends/ilang/ilang_parser.tab.o frontends/ilang/ilang_lexer.o
OBJS += frontends/ilang/ilang_frontend.o