1SubDir HAIKU_TOP src kits ; 2 3# If defined allows to run applications without the registrar 4# -- for development only, of course. 5if $(RUN_WITHOUT_REGISTRAR) { 6 local defines = [ FDefines RUN_WITHOUT_REGISTRAR ] ; 7 SubDirCcFlags $(defines) ; 8 SubDirC++Flags $(defines) ; 9} 10 11# If defined allows to run applications without the app server 12# -- needed until the app server runs on our kernel. 13RUN_WITHOUT_APP_SERVER ?= 0 ; 14if $(RUN_WITHOUT_APP_SERVER) != 0 { 15 local defines = [ FDefines RUN_WITHOUT_APP_SERVER ] ; 16 SubDirCcFlags $(defines) ; 17 SubDirC++Flags $(defines) ; 18} 19 20UsePrivateHeaders syslog_daemon ; # For syslog.cpp 21 22# Build our libbe.so 23 24AddResources libbe.so : libbe_version.rdef ; 25 26SharedLibrary libbe.so : 27 : 28 <libbe>app_kit.o 29 <libbe>interface_kit.o 30 <libbe>storage_kit.o 31 <libbe>support_kit.o 32 33 libicon.a 34 libagg.a 35 36 libroot.so # make sure it links against our libroot.so 37 $(TARGET_LIBSTDC++) 38; 39 40# Build libbe_haiku.so 41 42SetSupportedPlatformsForTarget libbe_haiku.so : libbe_test ; 43 44if $(TARGET_PLATFORM) = libbe_test { 45 local syslog = [ FGristFiles syslog.o ] ; 46 # Remove _NO_INLINE_ASM from the defines for syslog.cpp. Otherwise we get 47 # references to tls_get/set() etc. that don't exist under BeOS. 48 TARGET_DEFINES on $(syslog) 49 = [ on $(syslog) FFilter $(TARGET_DEFINES) : _NO_INLINE_ASM ] ; 50 51 # We need to use our <syslog.h>, because the syslog() prototype differs 52 # from the BeOS one. 53 TARGET_DEFINES on $(syslog) += _SYS_LOG_H ; 54 TARGET_C++FLAGS on $(syslog) = [ on $(syslog) return $(TARGET_C++FLAGS) ] 55 -include [ FDirName $(HAIKU_TOP) headers posix syslog.h ] ; 56} 57 58SharedLibrary libbe_haiku.so : 59 syslog.cpp 60 : 61 <libbe>app_kit.o 62 <libbe>interface_kit.o 63 <libbe>storage_kit.o 64 <libbe>support_kit.o 65 66 libicon.a 67 libagg.a 68 69 libbeadapter.so 70 $(TARGET_NETWORK_LIBS) 71 $(TARGET_LIBSTDC++) 72; 73 74SEARCH on [ FGristFiles syslog.cpp ] 75 = [ FDirName $(HAIKU_TOP) src system libroot posix ] ; 76 77 78SubInclude HAIKU_TOP src kits app ; 79SubInclude HAIKU_TOP src kits bluetooth ; 80SubInclude HAIKU_TOP src kits debug ; 81SubInclude HAIKU_TOP src kits device ; 82SubInclude HAIKU_TOP src kits game ; 83SubInclude HAIKU_TOP src kits interface ; 84SubInclude HAIKU_TOP src kits mail ; 85SubInclude HAIKU_TOP src kits media ; 86SubInclude HAIKU_TOP src kits midi ; 87SubInclude HAIKU_TOP src kits midi2 ; 88SubInclude HAIKU_TOP src kits network ; 89SubInclude HAIKU_TOP src kits opengl ; 90SubInclude HAIKU_TOP src kits screensaver ; 91SubInclude HAIKU_TOP src kits shared ; 92SubInclude HAIKU_TOP src kits storage ; 93SubInclude HAIKU_TOP src kits support ; 94SubInclude HAIKU_TOP src kits textencoding ; 95SubInclude HAIKU_TOP src kits tracker ; 96SubInclude HAIKU_TOP src kits translation ; 97