Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
| 3 | hostprogs-y := genksyms |
| 4 | always := $(hostprogs-y) |
| 5 | |
Arnaud Lacombe | 880f449 | 2011-05-23 00:05:28 -0400 | [diff] [blame] | 6 | genksyms-objs := genksyms.o parse.tab.o lex.lex.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
| 8 | # -I needed for generated C source (shipped source) |
Arnaud Lacombe | 6b19e7e | 2011-06-07 18:09:02 -0400 | [diff] [blame] | 9 | HOSTCFLAGS_parse.tab.o := -I$(src) |
Arnaud Lacombe | 880f449 | 2011-05-23 00:05:28 -0400 | [diff] [blame] | 10 | HOSTCFLAGS_lex.lex.o := -I$(src) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
| 12 | # dependencies on generated files need to be listed explicitly |
Linus Torvalds | bb3290d | 2017-08-19 10:17:02 -0700 | [diff] [blame] | 13 | $(obj)/lex.lex.o: $(obj)/parse.tab.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
Linus Torvalds | bb3290d | 2017-08-19 10:17:02 -0700 | [diff] [blame] | 15 | clean-files := lex.lex.c parse.tab.c parse.tab.h |