Linux 4.9.74
[linux/fpc-iii.git] / drivers / zorro / Makefile
blob7dc5332ff9842bfe1f119f4ff003056430959ec3
2 # Makefile for the Zorro bus specific drivers.
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
9 hostprogs-y := gen-devlist
11 # Files generated that shall be removed upon make clean
12 clean-files := devlist.h
14 # Dependencies on generated files need to be listed explicitly
15 $(obj)/names.o: $(obj)/devlist.h
17 # And that's how to generate them
18 quiet_cmd_devlist = DEVLIST $@
19 cmd_devlist = ( cd $(obj); ./gen-devlist ) < $<
20 $(obj)/devlist.h: $(src)/zorro.ids $(obj)/gen-devlist
21 $(call cmd,devlist)