xref: /haiku/src/add-ons/kernel/network/ppp/ipcp/Jamfile (revision 97dfeb96704e5dbc5bec32ad7b21379d0125e031)
1SubDir HAIKU_TOP src add-ons kernel network ppp ipcp ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4SubDirC++Flags -fno-rtti ;
5
6if $(TARGET_PLATFORM) != haiku {
7	UseHeaders [ FStandardOSHeaders ] : true ;
8		# Needed for the atomic_add64() prototype.
9}
10
11UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
12	# We need the public network headers also when not compiling for Haiku.
13	# Unfortunately we get more than we want, namely all POSIX headers.
14
15UsePrivateKernelHeaders ;
16UsePrivateHeaders net ;
17
18UsePrivateHeaders libroot net ;
19UsePrivateHeaders [ FDirName kernel ] ;
20UsePrivateHeaders [ FDirName kernel util ] ;
21UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp shared
22	libkernelppp headers ] : true ;
23UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp pppoe
24	] : true ;
25
26KernelAddon ipcp :
27	atomic.S
28	kernel_cpp.cpp
29
30	# imported from kernel util
31	inet_addr.c
32
33	ipcp.cpp
34	Protocol.cpp
35;
36
37
38SEARCH on [ FGristFiles inet_addr.c ]
39	= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
40
41SEARCH on [ FGristFiles kernel_cpp.cpp ]
42        = [ FDirName $(HAIKU_TOP) src system kernel util ] ;
43SEARCH on [ FGristFiles atomic.S ]
44        = [ FDirName $(HAIKU_TOP) src system libroot os arch $(TARGET_ARCH) ] ;
45
46LinkAgainst ipcp : libkernelppp.a ;
47
48
49HaikuInstall install-networking
50	: /boot/home/config/add-ons/kernel/network/ppp
51	: ipcp ;
52