import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / drivers / zorro / Makefile
1 #
2 # Makefile for the Zorro bus specific drivers.
3 #
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
7 #
8 # Note 2! The CFLAGS definition is now inherited from the
9 # parent makefile.
10 #
11
12 O_TARGET := driver.o
13
14 export-objs             := zorro.o
15
16 obj-$(CONFIG_ZORRO)     += zorro.o names.o
17 obj-$(CONFIG_PROC_FS)   += proc.o
18
19 include $(TOPDIR)/Rules.make
20
21 names.o: names.c devlist.h
22
23 devlist.h: zorro.ids gen-devlist
24         ./gen-devlist <zorro.ids
25
26 gen-devlist: gen-devlist.c
27         $(HOSTCC) $(HOSTCFLAGS) -o gen-devlist gen-devlist.c