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