summaryrefslogtreecommitdiffstats
path: root/debian/rules.d/scripts/genksyms/Makefile
blob: 88524563ff02d65798abcfa66a065b4523d55e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PROGS = genksyms

include $(top_rulesdir)/Makefile.inc

genksyms: genksyms.o parse.tab.o lex.lex.o

lex.lex.o: keywords.c parse.tab.h

parse.tab.c: parse.y
	$(YACC) -o$@ -t -l $<

parse.tab.h: parse.y
	$(YACC) -o/dev/null --defines=$@ -t -l $<

lex.lex.c: lex.l
	$(LEX) -o$@ -L $<