SubDir HAIKU_TOP src tools keymap ; UsePrivateBuildHeaders shared storage ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin keymap ] ; USES_BE_API on keymap = true ; local regexSources ; if $(HOST_PLATFORM) = cygwin || $(HOST_PLATFORM) = sunos { UseHeaders [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ; SubDirCcFlags -D__USE_GNU -DHAVE_STDBOOL_H ; regexSources = regex.c ; } BuildPlatformMain keymap : main.cpp Keymap.cpp $(regexSources) : libshared_build.a $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; LinkAgainst keymap : $(HOST_LIBBE) ; SEARCH on [ FGristFiles $(regexSources) ] = [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ;