Makefile 413 B

123456789101112131415
  1. hostprogs-y := genksyms
  2. always := $(hostprogs-y)
  3. genksyms-objs := genksyms.o parse.tab.o lex.lex.o
  4. # -I needed for generated C source (shipped source)
  5. HOSTCFLAGS_parse.tab.o := -I$(src)
  6. HOSTCFLAGS_lex.lex.o := -I$(src)
  7. # dependencies on generated files need to be listed explicitly
  8. $(obj)/lex.lex.o: $(obj)/keywords.hash.c $(obj)/parse.tab.h
  9. clean-files := keywords.hash.c lex.lex.c parse.tab.c parse.tab.h