diff options
Diffstat (limited to 'drivers/zorro/Makefile')
-rw-r--r-- | drivers/zorro/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/zorro/Makefile b/drivers/zorro/Makefile new file mode 100644 index 000000000000..f62172603215 --- /dev/null +++ b/drivers/zorro/Makefile | |||
@@ -0,0 +1,21 @@ | |||
1 | # | ||
2 | # Makefile for the Zorro bus specific drivers. | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_ZORRO) += zorro.o zorro-driver.o zorro-sysfs.o names.o | ||
6 | obj-$(CONFIG_PROC_FS) += proc.o | ||
7 | |||
8 | hostprogs-y := gen-devlist | ||
9 | |||
10 | # Files generated that shall be removed upon make clean | ||
11 | clean-files := devlist.h | ||
12 | |||
13 | # Dependencies on generated files need to be listed explicitly | ||
14 | $(obj)/names.o: $(obj)/devlist.h | ||
15 | |||
16 | # And that's how to generate them | ||
17 | quiet_cmd_devlist = DEVLIST $@ | ||
18 | cmd_devlist = ( cd $(obj); ./gen-devlist ) < $< | ||
19 | $(obj)/devlist.h: $(src)/zorro.ids $(obj)/gen-devlist | ||
20 | $(call cmd,devlist) | ||
21 | |||