xref: /haiku/src/add-ons/kernel/bus_managers/pci/Jamfile (revision d1d811ec7007913f727f6b44d2d730554eacfa19)
1SubDir OBOS_TOP src add-ons kernel bus_managers pci ;
2
3UsePrivateHeaders [ FDirName kernel ] ;
4UsePrivateHeaders [ FDirName kernel util ] ;
5
6KernelMergeObject pci_bus_manager.o :
7	kernel_cpp.cpp
8	<$(SOURCE_GRIST)>pci.cpp
9	<$(SOURCE_GRIST)>pci_info.cpp
10	<$(SOURCE_GRIST)>pci_module.c
11	:
12	-fno-pic -Wno-unused -D_KERNEL_MODE
13	;
14
15SEARCH on [ FGristFiles
16		kernel_cpp.cpp
17	] = [ FDirName $(OBOS_TOP) src kernel core util ] ;
18
19KernelLd pci :
20	pci_bus_manager.o
21	pci_arch_$(OBOS_ARCH)_bus_manager.o
22	kernel.so
23	:
24	$(OBOS_TOP)/src/kernel/ldscripts/$(OBOS_ARCH)/add-on.ld
25	:
26	-Bdynamic -shared
27	;
28
29# pci_info.cpp currently needs pcihdr.h so we make its path available
30ObjectHdrs [ FGristFiles pci_info$(SUFOBJ) ]
31	: [ FDirName $(OBOS_TOP) src prefs devices ] ;
32
33SubInclude OBOS_TOP src add-ons kernel bus_managers pci arch $(OBOS_ARCH) ;
34