SubDir HAIKU_TOP src tools rc ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin rc ] ; USES_BE_API on librdef.a rc = true ; GENERATE_C++ on [ FGristFiles lexer.l parser.y ] = true ; SubDirC++Flags -Wno-sign-compare -Wno-unused ; local r5Compatibility = [ FDirName $(HAIKU_TOP) src bin rc R5Compatibility.h ] ; SubDirCcFlags -include $(r5Compatibility) ; SubDirC++Flags -include $(r5Compatibility) ; BuildPlatformStaticLibrary librdef.a : compile.cpp decompile.cpp lexer.l parser.y rdef.cpp ; # On BeOS incompatible platforms we implicitly link against libroot_build.so, # which does already include the strl*() routines. local strlSources ; if $(HOST_PLATFORM_BEOS_COMPATIBLE) { strlSources = strlcpy.c strlcat.c ; } BuildPlatformMain rc : rc.cpp # these two are needed for R5 only $(strlSources) : librdef.a $(HOST_LIBSTDC++) $(HOST_LIBBE) $(HOST_LIBSUPC++) ; SEARCH on [ FGristFiles $(strlSources) ] = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;