xref: /haiku/src/tools/rc/Jamfile (revision fef6144999c2fa611f59ee6ffe6dd7999501385c)
1SubDir OBOS_TOP src tools rc ;
2
3GENERATE_C++ on [ FGristFiles lexer.l parser.y ] = true ;
4
5SubDirC++Flags -Wno-sign-compare -Wno-unused ;
6
7local r5Compatibility = [ FDirName $(SUBDIR) R5Compatibility.h ] ;
8SubDirCcFlags -include $(r5Compatibility) ;
9SubDirC++Flags -include $(r5Compatibility) ;
10
11StaticLibrary rdef :
12	compile.cpp decompile.cpp lexer.l parser.y rdef.cpp ;
13
14BuildPlatformMain rc :
15	rc.cpp
16
17	# these two are needed for R5 only
18	strlcpy.c
19	strlcat.c
20;
21LinkSharedOSLibs rc : librdef.a $(BUILD_LIBSTDC++) be ;
22
23SEARCH on [ FGristFiles
24		strlcat.c strlcpy.c
25	] = [ FDirName $(OBOS_TOP) src system libroot posix string ] ;
26