make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / drivers / pci / Makefile
1 #
2 # Makefile for the PCI 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 := pci.o
15
16 obj-$(CONFIG_PCI) += pci.o quirks.o compat.o names.o
17 obj-$(CONFIG_PROC_FS) += proc.o
18
19 ifndef CONFIG_SPARC64
20 obj-$(CONFIG_PCI) += setup-res.o
21 endif
22
23 #
24 # Some architectures use the generic PCI setup functions
25 #
26 obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
27 obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
28 obj-$(CONFIG_PARISC) += setup-bus.o
29 obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
30 obj-$(CONFIG_PPC32) += setup-irq.o
31 obj-$(CONFIG_SGI_IP27) += setup-irq.o
32 obj-$(CONFIG_SGI_IP32) += setup-irq.o
33
34 ifndef CONFIG_X86
35 obj-y += syscall.o
36 endif
37
38 include $(TOPDIR)/Rules.make
39
40 names.o: names.c devlist.h classlist.h
41
42 devlist.h classlist.h: pci.ids gen-devlist
43         ./gen-devlist <pci.ids
44
45 gen-devlist: gen-devlist.c
46         $(HOSTCC) $(HOSTCFLAGS) -o gen-devlist gen-devlist.c