Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the Zorro bus specific drivers. |
| 3 | # |
| 4 | |
Geert Uytterhoeven | 52182c7 | 2013-05-17 14:01:24 +0200 | [diff] [blame] | 5 | obj-$(CONFIG_ZORRO) += zorro.o zorro-driver.o zorro-sysfs.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | obj-$(CONFIG_PROC_FS) += proc.o |
Geert Uytterhoeven | 52182c7 | 2013-05-17 14:01:24 +0200 | [diff] [blame] | 7 | obj-$(CONFIG_ZORRO_NAMES) += names.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
| 9 | hostprogs-y := gen-devlist |
| 10 | |
| 11 | # Files generated that shall be removed upon make clean |
| 12 | clean-files := devlist.h |
| 13 | |
| 14 | # Dependencies on generated files need to be listed explicitly |
| 15 | $(obj)/names.o: $(obj)/devlist.h |
| 16 | |
| 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) |
| 22 | |