Makefile 557 B

12345678910111213141516171819202122
  1. #
  2. # Makefile for the Zorro bus specific drivers.
  3. #
  4. obj-$(CONFIG_ZORRO) += zorro.o zorro-driver.o zorro-sysfs.o names.o
  5. obj-$(CONFIG_PROC_FS) += proc.o
  6. hostprogs-y := gen-devlist
  7. # Files generated that shall be removed upon make clean
  8. clean-files := devlist.h
  9. # Dependencies on generated files need to be listed explicitly
  10. $(obj)/names.o: $(obj)/devlist.h
  11. # And that's how to generate them
  12. quiet_cmd_devlist = DEVLIST $@
  13. cmd_devlist = ( cd $(obj); ./gen-devlist ) < $<
  14. $(obj)/devlist.h: $(src)/zorro.ids $(obj)/gen-devlist
  15. $(call cmd,devlist)