xref: /haiku/src/tests/add-ons/kernel/network/Jamfile (revision 9eb55bc1d104b8fda80898f8b25c94d8000c8255)
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
31Depends net_stack_tester : userland_network_modules :
32
33NotFile userland_network_modules ;
34Depends userland_network_modules :
35	# the stack main module
36	<userland>core
37
38	# interfaces modules
39	<userland>loopback
40	<userland>ethernet
41	<userland>ppp
42
43	# ppp modules
44	<userland>ipcp
45	<userland>modem
46	<userland>pap
47	<userland>pppoe
48
49	# protocols modules
50	<userland>raw
51	<userland>ipv4
52	<userland>icmp
53	<userland>udp
54	<userland>tcp
55;
56
57SubInclude OBOS_TOP src tests add-ons kernel network core ;
58SubInclude OBOS_TOP src tests add-ons kernel network interfaces ;
59SubInclude OBOS_TOP src tests add-ons kernel network ppp ;
60SubInclude OBOS_TOP src tests add-ons kernel network protocols ;
61