summaryrefslogtreecommitdiff
path: root/scripts/genksyms/Makefile
blob: 4350311fb7b39ad13acbb6c2debe432a853cc92e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# SPDX-License-Identifier: GPL-2.0

hostprogs-always-y	+= genksyms

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

# -I needed for generated C source to include headers in source tree
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