Makefile 587 B

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