xref: /haiku/src/tools/rc/Jamfile (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1SubDir HAIKU_TOP src tools rc ;
2
3USES_BE_API on <build>librdef.a <build>rc = true ;
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
13BuildPlatformStaticLibrary <build>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
23BuildPlatformMain <build>rc :
24	rc.cpp
25
26	# these two are needed for R5 only
27	$(strlSources)
28;
29LinkAgainst <build>rc
30	: <build>librdef.a $(HOST_LIBSTDC++) $(HOST_LIBBE) $(HOST_LIBSUPC++) ;
31
32SEARCH on [ FGristFiles $(strlSources) ]
33	= [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;
34