Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | |
| 2 | hostprogs-y := genksyms |
| 3 | always := $(hostprogs-y) |
| 4 | |
Arnaud Lacombe | 880f449 | 2011-05-23 00:05:28 -0400 | [diff] [blame] | 5 | genksyms-objs := genksyms.o parse.tab.o lex.lex.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 7 | # -I needed for generated C source (shipped source) |
Arnaud Lacombe | 6b19e7e | 2011-06-07 18:09:02 -0400 | [diff] [blame] | 8 | HOSTCFLAGS_parse.tab.o := -I$(src) |
Arnaud Lacombe | 880f449 | 2011-05-23 00:05:28 -0400 | [diff] [blame] | 9 | HOSTCFLAGS_lex.lex.o := -I$(src) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
| 11 | # dependencies on generated files need to be listed explicitly |
Arnaud Lacombe | 880f449 | 2011-05-23 00:05:28 -0400 | [diff] [blame] | 12 | $(obj)/lex.lex.o: $(obj)/keywords.hash.c $(obj)/parse.tab.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Fernando Luis Vázquez Cao | 603d8c0 | 2011-12-12 12:17:21 +0900 | [diff] [blame] | 14 | clean-files := keywords.hash.c lex.lex.c parse.tab.c parse.tab.h |