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# add-ons/kernel/bus_managers/pci 30 addons/kernel/pci 31 ; 32 33# pci_info.cpp currently needs pcihdr.h so we make its path available 34ObjectHdrs [ FGristFiles pci_info$(SUFOBJ) ] 35 : [ FDirName $(OBOS_TOP) src prefs devices ] ; 36 37SubInclude OBOS_TOP src add-ons kernel bus_managers pci arch $(OBOS_ARCH) ; 38