1SubDir HAIKU_TOP src apps devices ; 2 3UsePrivateHeaders shared ; 4UsePrivateHeaders interface ; 5UsePrivateKernelHeaders ; 6UsePrivateSystemHeaders ; 7 8 9rule ISAPnPHeaderGen 10{ 11 SEARCH on $(2) = $(SEARCH_SOURCE) ; 12 SEARCH on $(3) = $(SEARCH_SOURCE) ; 13 14 Depends $(1) : $(2) $(3) ; 15 MakeLocateArch $(<) ; 16 ISAPnPHeaderGen1 $(1) : $(2) $(3) ; 17 LocalClean clean : $(<) ; 18} 19 20actions ISAPnPHeaderGen1 21{ 22 grep '^PNP[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]] ' $(2[1]) \ 23| gawk -f $(2[2]) > $(1) ; 24} 25 26ISAPnPHeaderGen [ FGristFiles isapnpids.h ] : isapnp_devids.txt : devlist2h.awk ; 27 28rule PCIHeaderGen 29{ 30 SEARCH on $(3) = $(SEARCH_SOURCE) ; 31 32 Depends $(1) : $(2) $(3) ; 33 MakeLocateArch $(<) ; 34 PCIHeaderGen1 $(1) : $(2) $(3) ; 35 LocalClean clean : $(<) ; 36} 37 38actions PCIHeaderGen1 39{ 40 gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1]) 41} 42 43local pciidsFile = pci.ids ; 44SEARCH on $(pciidsFile) = [ FDirName $(HAIKU_TOP) src data ids ] ; 45 46PCIHeaderGen [ FGristFiles pcihdr.h ] : $(pciidsFile) : pci-header.awk ; 47 48rule USBHeaderGen 49{ 50 SEARCH on $(3) = $(SEARCH_SOURCE) ; 51 52 Depends $(1) : $(2) $(3) ; 53 MakeLocateArch $(<) ; 54 USBHeaderGen1 $(1) : $(2) $(3) ; 55 LocalClean clean : $(<) ; 56} 57 58actions USBHeaderGen1 59{ 60 gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1]) 61} 62 63local usbidsFile = usb.ids ; 64SEARCH on $(usbidsFile) = [ FDirName $(HAIKU_TOP) src data ids ] ; 65 66USBHeaderGen [ FGristFiles usbhdr.h ] : $(usbidsFile) : usb-header.awk ; 67 68Application Devices : 69 DevicesApplication.cpp 70 DevicesView.cpp 71 dm_wrapper.c 72 DevicePCI.cpp 73 DeviceACPI.cpp 74 DeviceSCSI.cpp 75 Device.cpp 76 PropertyList.cpp 77 PropertyListPlain.cpp 78 : be libcolumnlistview.a tracker [ TargetLibsupc++ ] 79 [ TargetLibstdc++ ] localestub 80 : Devices.rdef 81; 82 83DoCatalogs Devices : 84 x-vnd.Haiku-Devices 85 : 86 DevicesApplication.cpp 87 DevicesView.cpp 88 DevicePCI.cpp 89 PropertyList.cpp 90 PropertyListPlain.cpp 91 DeviceACPI.cpp 92 DeviceSCSI.cpp 93 Device.cpp 94; 95 96Includes [ FGristFiles DevicePCI.cpp ] : [ FGristFiles pcihdr.h ] ; 97 98