xref: /haiku/src/libs/compat/freebsd_network/Jamfile (revision b31cb92f29fe89eaca84d173d0f70d38bf0c6a3d)
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 _XOPEN_SOURCE ] ;
14
15KernelStaticLibrary libfreebsd_network.a :
16	bus.cpp
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_bitbang.c
33	fbsd_mii_physubr.c
34	fbsd_time.c
35	firmware.c
36	if.c
37	libkern.c
38	mbuf.c
39	mii.c
40	mutex.c
41	priv.cpp
42	synch.c
43	systm.c
44	taskqueue.c
45	unit.c
46	Unit.cpp
47	;
48
49rule MIIHeaderGen
50{
51	SEARCH on $(2) = [ FDirName $(SUBDIR) compat dev mii ] ;
52	SEARCH on $(3) = $(SEARCH_SOURCE) ;
53
54	Depends $(1) : $(2) $(3) ;
55	MakeLocateArch $(<) ;
56	MIIHeaderGen1 $(1) : $(2) $(3) ;
57	LocalClean clean : $(<) ;
58}
59
60actions MIIHeaderGen1
61{
62	gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1])
63}
64
65MIIHeaderGen [ FGristFiles miidevs.h ] : miidevs : miidevs2h.awk ;
66