blob: aca33b98bf634b269b9857f5bc08d2e315f5f8d3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001
2hostprogs-y := genksyms
3always := $(hostprogs-y)
4
Arnaud Lacombe880f4492011-05-23 00:05:28 -04005genksyms-objs := genksyms.o parse.tab.o lex.lex.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7# -I needed for generated C source (shipped source)
Arnaud Lacombe6b19e7e2011-06-07 18:09:02 -04008HOSTCFLAGS_parse.tab.o := -I$(src)
Arnaud Lacombe880f4492011-05-23 00:05:28 -04009HOSTCFLAGS_lex.lex.o := -I$(src)
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11# dependencies on generated files need to be listed explicitly
Arnaud Lacombe880f4492011-05-23 00:05:28 -040012$(obj)/lex.lex.o: $(obj)/keywords.hash.c $(obj)/parse.tab.h
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Fernando Luis Vázquez Cao603d8c02011-12-12 12:17:21 +090014clean-files := keywords.hash.c lex.lex.c parse.tab.c parse.tab.h