Makefile 359 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
L
Linus Torvalds 已提交
2 3 4 5

hostprogs-y	:= genksyms
always		:= $(hostprogs-y)

6
genksyms-objs	:= genksyms.o parse.tab.o lex.lex.o
L
Linus Torvalds 已提交
7 8

# -I needed for generated C source (shipped source)
9
HOSTCFLAGS_parse.tab.o := -I$(src)
10
HOSTCFLAGS_lex.lex.o := -I$(src)
L
Linus Torvalds 已提交
11 12

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