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 USBDevsHeaderGen 29{ 30 SEARCH on $(2) = $(SEARCH_SOURCE) ; 31 SEARCH on $(3) = $(SEARCH_SOURCE) ; 32 33 Depends $(1) : $(2) $(3) ; 34 MakeLocateArch $(<) ; 35 USBDevsHeaderGen1 $(1) : $(2) $(3) ; 36 LocalClean clean : $(<) ; 37} 38 39actions USBDevsHeaderGen1 40{ 41 gawk -v HEADERFILE=$(1[1]) -v DATAFILE=$(1[2]) -f $(2[2]) $(2[1]) 42} 43 44USBDevsHeaderGen [ FGristFiles usbdevs.h usbdevs_data.h ] : usbdevs 45 : usb_devlist2h.awk ; 46 47rule PCIHeaderGen 48{ 49 SEARCH on $(3) = $(SEARCH_SOURCE) ; 50 51 Depends $(1) : $(2) $(3) ; 52 MakeLocateArch $(<) ; 53 PCIHeaderGen1 $(1) : $(2) $(3) ; 54 LocalClean clean : $(<) ; 55} 56 57actions PCIHeaderGen1 58{ 59 gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1]) 60} 61 62local pciidsFile = pci.ids ; 63SEARCH on $(pciidsFile) = [ FDirName $(HAIKU_TOP) src data ids ] ; 64 65PCIHeaderGen [ FGristFiles pcihdr.h ] : $(pciidsFile) : pci-header.awk ; 66 67rule USBHeaderGen 68{ 69 SEARCH on $(3) = $(SEARCH_SOURCE) ; 70 71 Depends $(1) : $(2) $(3) ; 72 MakeLocateArch $(<) ; 73 USBHeaderGen1 $(1) : $(2) $(3) ; 74 LocalClean clean : $(<) ; 75} 76 77actions USBHeaderGen1 78{ 79 gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1]) 80} 81 82local usbidsFile = usb.ids ; 83SEARCH on $(usbidsFile) = [ FDirName $(HAIKU_TOP) src data ids ] ; 84 85USBHeaderGen [ FGristFiles usbhdr.h ] : $(usbidsFile) : usb-header.awk ; 86 87Application Devices : 88 DevicesApplication.cpp 89 DevicesView.cpp 90 dm_wrapper.c 91 DevicePCI.cpp 92 DeviceACPI.cpp 93 DeviceSCSI.cpp 94 Device.cpp 95 PropertyList.cpp 96 PropertyListPlain.cpp 97 : be libcolumnlistview.a tracker [ TargetLibsupc++ ] 98 [ TargetLibstdc++ ] localestub 99 : Devices.rdef 100; 101 102DoCatalogs Devices : 103 x-vnd.Haiku-Devices 104 : 105 DevicesApplication.cpp 106 DevicesView.cpp 107 DevicePCI.cpp 108 PropertyList.cpp 109 PropertyListPlain.cpp 110 DeviceACPI.cpp 111 DeviceSCSI.cpp 112 Device.cpp 113; 114 115Includes [ FGristFiles DevicePCI.cpp ] : [ FGristFiles pcihdr.h ] ; 116 117