Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. # scripts/dtc makefile
  2. hostprogs-y := dtc
  3. always := $(hostprogs-y)
  4. dtc-objs := dtc.o flattree.o fstree.o data.o livetree.o treesource.o \
  5. srcpos.o checks.o util.o
  6. dtc-objs += dtc-lexer.lex.o dtc-parser.tab.o
  7. # Source files need to get at the userspace version of libfdt_env.h to compile
  8. HOSTCFLAGS_DTC := -I$(src) -I$(src)/libfdt
  9. HOSTCFLAGS_checks.o := $(HOSTCFLAGS_DTC)
  10. HOSTCFLAGS_data.o := $(HOSTCFLAGS_DTC)
  11. HOSTCFLAGS_dtc.o := $(HOSTCFLAGS_DTC)
  12. HOSTCFLAGS_flattree.o := $(HOSTCFLAGS_DTC)
  13. HOSTCFLAGS_fstree.o := $(HOSTCFLAGS_DTC)
  14. HOSTCFLAGS_livetree.o := $(HOSTCFLAGS_DTC)
  15. HOSTCFLAGS_srcpos.o := $(HOSTCFLAGS_DTC)
  16. HOSTCFLAGS_treesource.o := $(HOSTCFLAGS_DTC)
  17. HOSTCFLAGS_util.o := $(HOSTCFLAGS_DTC)
  18. HOSTCFLAGS_dtc-lexer.lex.o := $(HOSTCFLAGS_DTC)
  19. HOSTCFLAGS_dtc-parser.tab.o := $(HOSTCFLAGS_DTC)
  20. # dependencies on generated files need to be listed explicitly
  21. $(obj)/dtc-lexer.lex.o: $(obj)/dtc-parser.tab.h
  22. # generated files need to be cleaned explicitly
  23. clean-files := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h