xref: /haiku/src/bin/rc/Jamfile (revision adb0d19d561947362090081e81d90dde59142026)
1SubDir HAIKU_TOP src bin rc ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5GENERATE_C++ on [ FGristFiles lexer.l parser.y ] = true ;
6
7SubDirC++Flags -Wno-sign-compare -Wno-unused ;
8
9local r5Compatibility = [ FDirName $(SUBDIR) R5Compatibility.h ] ;
10SubDirCcFlags -include $(r5Compatibility) ;
11SubDirC++Flags -include $(r5Compatibility) ;
12
13StaticLibrary librdef.a :
14	compile.cpp decompile.cpp lexer.l parser.y rdef.cpp ;
15
16# On BeOS incompatible platforms we implicitly link against libroot_build.so,
17# which does already include the strl*() routines.
18local strlSources ;
19if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
20	strlSources = strlcpy.c strlcat.c ;
21}
22
23BinCommand rc :
24	rc.cpp
25
26	# these two are needed for R5 only
27	$(strlSources)
28	: librdef.a $(TARGET_LIBSTDC++) be
29;
30
31SEARCH on [ FGristFiles $(strlSources) ]
32	= [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;
33