Makefile 619 B

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