xref: /haiku/src/libs/compat/freebsd_network/Jamfile (revision b671e9bbdbd10268a042b4f4cc4317ccd03d105e)
1SubDir HAIKU_TOP src libs compat freebsd_network ;
2
3
4UseHeaders [ FDirName $(SUBDIR) ] : true ;
5UseHeaders [ FDirName $(SUBDIR) compat ] : true ;
6UsePrivateHeaders net ;
7UsePrivateKernelHeaders ;
8UseHeaders $(HAIKU_PRIVATE_KERNEL_HEADERS) : true ;
9
10SubDirCcFlags [ FDefines _KERNEL=1 ] ;
11
12KernelStaticLibrary libfreebsd_network.a :
13	bus.c
14	callout.c
15	compat.c
16	device.c
17	driver.c
18	eventhandler.c
19	fbsd_busdma_x86.c
20	fbsd_ether.c
21	fbsd_if_media.c
22	fbsd_mbuf.c
23	fbsd_mii.c
24	fbsd_mii_physubr.c
25	if.c
26	mbuf.c
27	mii.c
28	mutex.c
29	taskqueue.c
30	;
31
32rule MIIHeaderGen
33{
34	SEARCH on $(2) = [ FDirName $(SUBDIR) compat dev mii ] ;
35	SEARCH on $(3) = $(SEARCH_SOURCE) ;
36
37	Depends $(1) : $(2) $(3) ;
38	MakeLocateArch $(<) ;
39	MIIHeaderGen1 $(1) : $(2) $(3) ;
40	LocalClean clean : $(<) ;
41}
42
43actions MIIHeaderGen1
44{
45	gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1])
46}
47
48MIIHeaderGen [ FGristFiles miidevs.h ] : miidevs : miidevs2h.awk ;
49
50