diff options
Diffstat (limited to 'scripts/genksyms/Makefile')
-rw-r--r-- | scripts/genksyms/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile new file mode 100644 index 00000000..aca33b98 --- /dev/null +++ b/scripts/genksyms/Makefile @@ -0,0 +1,14 @@ + +hostprogs-y := genksyms +always := $(hostprogs-y) + +genksyms-objs := genksyms.o parse.tab.o lex.lex.o + +# -I needed for generated C source (shipped source) +HOSTCFLAGS_parse.tab.o := -I$(src) +HOSTCFLAGS_lex.lex.o := -I$(src) + +# dependencies on generated files need to be listed explicitly +$(obj)/lex.lex.o: $(obj)/keywords.hash.c $(obj)/parse.tab.h + +clean-files := keywords.hash.c lex.lex.c parse.tab.c parse.tab.h |