blob: 34d6ab1811a4042ec7aec5ce935dbffc000f86b2 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002
3hostprogs-y := genksyms
4always := $(hostprogs-y)
5
Arnaud Lacombe880f4492011-05-23 00:05:28 -04006genksyms-objs := genksyms.o parse.tab.o lex.lex.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
8# -I needed for generated C source (shipped source)
Arnaud Lacombe6b19e7e2011-06-07 18:09:02 -04009HOSTCFLAGS_parse.tab.o := -I$(src)
Arnaud Lacombe880f4492011-05-23 00:05:28 -040010HOSTCFLAGS_lex.lex.o := -I$(src)
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12# dependencies on generated files need to be listed explicitly
Linus Torvaldsbb3290d2017-08-19 10:17:02 -070013$(obj)/lex.lex.o: $(obj)/parse.tab.h
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
Linus Torvaldsbb3290d2017-08-19 10:17:02 -070015clean-files := lex.lex.c parse.tab.c parse.tab.h