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