1SubDir HAIKU_TOP src libs compat freebsd_network ; 2 3UseHeaders [ FDirName $(SUBDIR) ] : true ; 4UseHeaders [ FDirName $(SUBDIR) compat ] : true ; 5UsePrivateHeaders net ; 6UsePrivateKernelHeaders ; 7UseHeaders $(HAIKU_PRIVATE_KERNEL_HEADERS) : true ; 8 9SubDirCcFlags [ FDefines _KERNEL=1 ] ; 10SubDirC++Flags [ FDefines _KERNEL=1 ] ; 11 12KernelStaticLibrary libfreebsd_network.a : 13 fbsd_ether.c 14 fbsd_if_media.c 15 fbsd_kern_mbuf.c 16 fbsd_uipc_mbuf.c 17 fbsd_uipc_mbuf2.c 18 fbsd_mii.c 19 fbsd_mii_bitbang.c 20 fbsd_mii_physubr.c 21 fbsd_subr_bufring.c 22 fbsd_subr_sbuf.c 23 fbsd_time.c 24 fbsd_timingsafe.c 25 fbsd_usb_error.c 26 fbsd_usb_util.c 27 fbsd_usb_lookup.c 28 29 bus.cpp 30 bus_dma.cpp 31 callout.cpp 32 clock.c 33 condvar.cpp 34 device.c 35 device_hooks.c 36 driver.c 37 eventhandler.c 38 firmware.c 39 if.c 40 libkern.cpp 41 malloc.cpp 42 mbuf.c 43 mii.c 44 mutex.c 45 pci.cpp 46 priv.cpp 47 smp.c 48 subr_autoconf.cpp 49 synch.cpp 50 systm.cpp 51 sysinit.c 52 taskqueue.c 53 unit.cpp 54 usb.cpp 55 usb_util.c 56 ; 57 58rule MIIHeaderGen 59{ 60 SEARCH on $(2) = [ FDirName $(SUBDIR) compat dev mii ] ; 61 SEARCH on $(3) = [ FDirName $(SUBDIR) tools ] ; 62 63 Depends $(1) : $(2) $(3) ; 64 MakeLocateCommonPlatform $(<) ; 65 MIIHeaderGen1 $(1) : $(2) $(3) ; 66 LocalClean clean : $(<) ; 67} 68 69actions MIIHeaderGen1 70{ 71 awk -v HEADERFILE=$(1) -f $(2[2]) $(2[1]) 72} 73 74MIIHeaderGen [ FGristFiles miidevs.h ] : miidevs : miidevs2h.awk ; 75 76rule USBDevsHeaderGen 77{ 78 SEARCH on $(2) = [ FDirName $(SUBDIR) compat dev usb ] ; 79 SEARCH on $(3) = [ FDirName $(SUBDIR) tools ] ; 80 81 Depends $(1) : $(2) $(3) ; 82 MakeLocateCommonPlatform $(<) ; 83 USBDevsHeaderGen1 $(1) : $(2) $(3) ; 84 LocalClean clean : $(<) ; 85} 86 87actions USBDevsHeaderGen1 88{ 89 awk -v HEADERFILE=$(1[1]) -v DATAFILE=$(1[2]) -f $(2[2]) $(2[1]) 90} 91 92USBDevsHeaderGen [ FGristFiles usbdevs.h usbdevs_data.h ] : usbdevs 93 : usbdevs2h.awk ; 94