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 fbsd_ether.c 18 fbsd_if_media.c 19 fbsd_kern_mbuf.c 20 fbsd_uipc_mbuf.c 21 fbsd_uipc_mbuf2.c 22 fbsd_mii.c 23 fbsd_mii_bitbang.c 24 fbsd_mii_physubr.c 25 fbsd_subr_bufring.c 26 fbsd_subr_sbuf.c 27 fbsd_time.c 28 fbsd_timingsafe.c 29 fbsd_usb_error.c 30 fbsd_usb_util.c 31 fbsd_usb_lookup.c 32 33 bus.cpp 34 bus_dma.cpp 35 callout.cpp 36 clock.c 37 condvar.cpp 38 device.c 39 device_hooks.c 40 driver.c 41 eventhandler.c 42 firmware.c 43 if.c 44 libkern.cpp 45 malloc.cpp 46 mbuf.c 47 mii.c 48 mutex.c 49 pci.cpp 50 priv.cpp 51 smp.c 52 subr_autoconf.cpp 53 synch.cpp 54 systm.cpp 55 sysinit.c 56 taskqueue.c 57 unit.cpp 58 usb.cpp 59 usb_util.c 60 ; 61 62rule MIIHeaderGen 63{ 64 SEARCH on $(2) = [ FDirName $(SUBDIR) compat dev mii ] ; 65 SEARCH on $(3) = [ FDirName $(SUBDIR) tools ] ; 66 67 Depends $(1) : $(2) $(3) ; 68 MakeLocateCommonPlatform $(<) ; 69 MIIHeaderGen1 $(1) : $(2) $(3) ; 70 LocalClean clean : $(<) ; 71} 72 73actions MIIHeaderGen1 74{ 75 awk -v HEADERFILE=$(1) -f $(2[2]) $(2[1]) 76} 77 78MIIHeaderGen [ FGristFiles miidevs.h ] : miidevs : miidevs2h.awk ; 79 80rule USBDevsHeaderGen 81{ 82 SEARCH on $(2) = [ FDirName $(SUBDIR) compat dev usb ] ; 83 SEARCH on $(3) = [ FDirName $(SUBDIR) tools ] ; 84 85 Depends $(1) : $(2) $(3) ; 86 MakeLocateCommonPlatform $(<) ; 87 USBDevsHeaderGen1 $(1) : $(2) $(3) ; 88 LocalClean clean : $(<) ; 89} 90 91actions USBDevsHeaderGen1 92{ 93 awk -v HEADERFILE=$(1[1]) -v DATAFILE=$(1[2]) -f $(2[2]) $(2[1]) 94} 95 96USBDevsHeaderGen [ FGristFiles usbdevs.h usbdevs_data.h ] : usbdevs 97 : usbdevs2h.awk ; 98