- Linus: drop support for old-style Makefiles entirely. Big.
[davej-history.git] / drivers / pci / Makefile
bloba4e79a6159e5d010f96d562902dde2d7def23b58
2 # Makefile for the PCI bus specific drivers.
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).
8 # Note 2! The CFLAGS definition is now inherited from the
9 # parent makefile.
12 O_TARGET := driver.o
14 export-objs := pci.o
16 obj-$(CONFIG_PCI) += pci.o quirks.o compat.o names.o setup-res.o
17 obj-$(CONFIG_PROC_FS) += proc.o
20 # Some architectures use the generic PCI setup functions
22 obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
23 obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
25 ifndef CONFIG_X86
26 obj-y += syscall.o
27 endif
29 include $(TOPDIR)/Rules.make
31 names.o: names.c devlist.h classlist.h
33 devlist.h classlist.h: pci.ids gen-devlist
34 ./gen-devlist <pci.ids
36 gen-devlist: gen-devlist.c
37 $(HOSTCC) $(HOSTCFLAGS) -o gen-devlist gen-devlist.c