1SubDir HAIKU_TOP src tools keymap ; 2 3UsePrivateBuildHeaders shared storage ; 4 5SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin keymap ] ; 6 7USES_BE_API on <build>keymap = true ; 8 9local regexSources ; 10 11if $(HOST_PLATFORM) = cygwin || $(HOST_PLATFORM) = sunos { 12 UseHeaders [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ; 13 SubDirCcFlags -D__USE_GNU -DHAVE_STDBOOL_H ; 14 regexSources = regex.c ; 15} 16 17BuildPlatformMain <build>keymap : 18 main.cpp 19 Keymap.cpp 20 $(regexSources) 21 : libshared_build.a $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) 22; 23 24LinkAgainst <build>keymap : $(HOST_LIBBE) ; 25 26SEARCH on [ FGristFiles $(regexSources) ] 27 = [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ; 28