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