xref: /haiku/src/tests/add-ons/kernel/network/Jamfile (revision 67bce78b48ed6d01b5a8eef89f5694c372b7e0a1)
1SubDir OBOS_TOP src tests add-ons kernel network ;
2
3UsePrivateHeaders net ;
4
5# the network stack tester app
6
7SEARCH_SOURCE += [ FDirName $(OBOS_TOP) src kernel libroot os ] ;
8
9SimpleTest net_stack_tester :
10	net_stack_tester.cpp
11	userland_ipc.c
12	userland_modules.cpp
13	: be
14;
15
16{
17	# symlink the userland add-ons dir to the dir where the net_stack_tester
18	# lives
19	local dir = [ on net_stack_tester return $(LOCATE) ] ;
20	MakeLocate <network-add-ons>userland : $(OBOS_ADDON_DIR) ;
21	MakeLocate <network-add-ons>add-ons : $(dir) ;
22	RelSymLink <network-add-ons>add-ons : <network-add-ons>userland : false ;
23
24	# alias for the net_stack_tester the modules link against
25	LOCATE on <installed>net_stack_tester = $(dir) ;
26	Depends <installed>net_stack_tester
27		: net_stack_tester <network-add-ons>add-ons ;
28}
29
30# for convenience: this target builds all userland modules
31NotFile userland_network_modules ;
32Depends userland_network_modules :
33	# the stack main module
34	<userland>core
35
36	# interfaces modules
37	<userland>loopback
38	<userland>ethernet
39	<userland>ppp
40
41	# ppp modules
42	<userland>ipcp
43	<userland>modem
44	<userland>pap
45	<userland>pppoe
46
47	# protocols modules
48	<userland>raw
49	<userland>route
50	<userland>ipv4
51	<userland>icmp
52	<userland>udp
53	<userland>tcp
54;
55
56SubInclude OBOS_TOP src tests add-ons kernel network core ;
57SubInclude OBOS_TOP src tests add-ons kernel network interfaces ;
58SubInclude OBOS_TOP src tests add-ons kernel network ppp ;
59SubInclude OBOS_TOP src tests add-ons kernel network protocols ;
60