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 ] ; 14 15KernelStaticLibrary libfreebsd_network.a : 16 bus.c 17 callout.cpp 18 clock.c 19 compat.c 20 compat_cpp.cpp 21 condvar.c 22 Condvar.cpp 23 device.c 24 driver.c 25 eventhandler.c 26 fbsd_busdma_x86.c 27 fbsd_ether.c 28 fbsd_if_media.c 29 fbsd_mbuf.c 30 fbsd_mbuf2.c 31 fbsd_mii.c 32 fbsd_mii_physubr.c 33 fbsd_time.c 34 firmware.c 35 if.c 36 libkern.c 37 mbuf.c 38 mii.c 39 mutex.c 40 priv.cpp 41 synch.c 42 taskqueue.c 43 unit.c 44 Unit.cpp 45 ; 46 47rule MIIHeaderGen 48{ 49 SEARCH on $(2) = [ FDirName $(SUBDIR) compat dev mii ] ; 50 SEARCH on $(3) = $(SEARCH_SOURCE) ; 51 52 Depends $(1) : $(2) $(3) ; 53 MakeLocateArch $(<) ; 54 MIIHeaderGen1 $(1) : $(2) $(3) ; 55 LocalClean clean : $(<) ; 56} 57 58actions MIIHeaderGen1 59{ 60 gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1]) 61} 62 63MIIHeaderGen [ FGristFiles miidevs.h ] : miidevs : miidevs2h.awk ; 64