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 ; 10local storageSources ; 11 12if $(HOST_PLATFORM) = cygwin || $(HOST_PLATFORM) = sunos { 13 UseHeaders [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ; 14 SubDirCcFlags -D__USE_GNU -DHAVE_STDBOOL_H ; 15 regexSources = regex.c ; 16} 17if $(HOST_PLATFORM) = haiku_host { 18 # those are missing from early Haiku builds 19 storageSources = FileIO.cpp ; 20} 21 22BuildPlatformMain <build>keymap : 23 main.cpp 24 Keymap.cpp 25 $(regexSources) 26 $(storageSources) 27 : libshared_build.a $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) 28; 29 30LinkAgainst <build>keymap : $(HOST_LIBBE) ; 31 32SEARCH on [ FGristFiles $(regexSources) ] 33 = [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ; 34 35SEARCH on [ FGristFiles $(storageSources) ] 36 = [ FDirName $(HAIKU_TOP) src kits storage ] ; 37