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
32
33ifndef CONFIG_X86
34obj-y += syscall.o
35endif
36
37include $(TOPDIR)/Rules.make
38
39names.o: names.c devlist.h classlist.h
40
41devlist.h classlist.h: pci.ids gen-devlist
42	./gen-devlist <pci.ids
43
44gen-devlist: gen-devlist.c
45	$(HOSTCC) $(HOSTCFLAGS) -o gen-devlist gen-devlist.c
46