summaryrefslogtreecommitdiffstats
path: root/drivers/pci/Makefile
blob: 41829a29c3fcd49c046fe58284b10103d386e1f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Makefile for the PCI bus specific drivers.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now inherited from the
# parent makefile.
#

L_TARGET := pci.a

# Nasty trick as we need to link files with no references from the outside.
O_TARGET := pci_core.o
L_OBJS	 := pci_core.o
O_OBJS   := pci.o quirks.o

ifdef CONFIG_MODULES
OX_OBJS  += pcisyms.o
endif

ifdef CONFIG_PROC_FS
O_OBJS   += proc.o
endif

L_OBJS   += compat.o names.o helper.o

ifndef CONFIG_X86
L_OBJS   += syscall.o setup.o
endif

include $(TOPDIR)/Rules.make

names.o: names.c devlist.h classlist.h

devlist.h classlist.h: pci.ids gen-devlist
	./gen-devlist <pci.ids

gen-devlist: gen-devlist.c
	$(HOSTCC) $(HOSTCFLAGS) -o gen-devlist gen-devlist.c