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# these platforms do not need a second copy of the strl routines 17if $(HOST_PLATFORM) != darwin && $(HOST_PLATFORM) != linux && $(HOST_PLATFORM) != freebsd { 18STRLSRC = strlcpy.c strlcat.c ; 19} 20 21BuildPlatformMain <build>rc : 22 rc.cpp 23 24 # these two are needed for R5 only 25 $(STRLSRC) 26; 27LinkAgainst <build>rc 28 : <build>librdef.a $(HOST_LIBSTDC++) $(HOST_LIBBE) $(HOST_LIBSUPC++) ; 29 30SEARCH on [ FGristFiles 31 strlcat.c strlcpy.c 32 ] = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ; 33