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