blob: 34d6ab1811a4042ec7aec5ce935dbffc000f86b2 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001# SPDX-License-Identifier: GPL-2.0
2
3hostprogs-y := genksyms
4always := $(hostprogs-y)
5
6genksyms-objs := genksyms.o parse.tab.o lex.lex.o
7
8# -I needed for generated C source (shipped source)
9HOSTCFLAGS_parse.tab.o := -I$(src)
10HOSTCFLAGS_lex.lex.o := -I$(src)
11
12# dependencies on generated files need to be listed explicitly
13$(obj)/lex.lex.o: $(obj)/parse.tab.h
14
15clean-files := lex.lex.c parse.tab.c parse.tab.h