brute-forced more changes from MontaVista's tree. SCSI partition table read still...
[linux-2.4.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
33 ifndef CONFIG_X86
34 obj-y += syscall.o
35 endif
36
37 include $(TOPDIR)/Rules.make
38
39 names.o: names.c devlist.h classlist.h
40
41 devlist.h classlist.h: pci.ids gen-devlist
42         ./gen-devlist <pci.ids
43
44 gen-devlist: gen-devlist.c
45         $(HOSTCC) $(HOSTCFLAGS) -o gen-devlist gen-devlist.c