summaryrefslogtreecommitdiffstats
path: root/scripts/genksyms/Makefile
blob: 3c23bab3367bf4d389f850098faf7784ec92c004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
hostprogs-y	:= genksyms
always		:= $(hostprogs-y)

genksyms-objs	:= genksyms.o parse.tab.o lex.lex.o

# -I needed for generated C source (shipped source)
HOSTCFLAGS_parse.tab.o := -I$(src)
HOSTCFLAGS_lex.lex.o := -I$(src)

# dependencies on generated files need to be listed explicitly
$(obj)/lex.lex.o: $(obj)/parse.tab.h

clean-files	:= lex.lex.c parse.tab.c parse.tab.h