Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the Zorro bus specific drivers. |
| 4 | # |
| 5 | |
Geert Uytterhoeven | 52182c7 | 2013-05-17 14:01:24 +0200 | [diff] [blame] | 6 | obj-$(CONFIG_ZORRO) += zorro.o zorro-driver.o zorro-sysfs.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | obj-$(CONFIG_PROC_FS) += proc.o |
Geert Uytterhoeven | 52182c7 | 2013-05-17 14:01:24 +0200 | [diff] [blame] | 8 | obj-$(CONFIG_ZORRO_NAMES) += names.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
| 10 | hostprogs-y := gen-devlist |
| 11 | |
| 12 | # Files generated that shall be removed upon make clean |
| 13 | clean-files := devlist.h |
| 14 | |
| 15 | # Dependencies on generated files need to be listed explicitly |
| 16 | $(obj)/names.o: $(obj)/devlist.h |
| 17 | |
| 18 | # And that's how to generate them |
| 19 | quiet_cmd_devlist = DEVLIST $@ |
| 20 | cmd_devlist = ( cd $(obj); ./gen-devlist ) < $< |
| 21 | $(obj)/devlist.h: $(src)/zorro.ids $(obj)/gen-devlist |
| 22 | $(call cmd,devlist) |
| 23 | |