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