SubDir HAIKU_TOP src tools keymap ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin keymap ] ; USES_BE_API on keymap = true ; local reSources ; if $(HOST_PLATFORM) = cygwin || $(HOST_PLATFORM) = sunos { reSources = regex.c ; } BuildPlatformMain keymap : main.cpp Keymap.cpp $(reSources) : $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; LinkAgainst keymap : $(HOST_LIBBE) ; SEARCH on [ FGristFiles $(reSources) ] = [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ;