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