1SubDir OBOS_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 [ FDirName kernel util ] ; # For KMessage.h 21UsePrivateHeaders syslog_daemon ; # For syslog.cpp 22 23# Build our libbe.so 24 25AddResources libbe.so : libbe_version.rdef ; 26 27SharedLibrary be : 28 KMessage.cpp 29 : 30 <libbe>app_kit.o 31 <libbe>interface_kit.o 32 <libbe>storage_kit.o 33 <libbe>storage_diskdevice_kit.o 34 <libbe>support_kit.o 35 36 libroot.so # make sure it links against our libroot.so 37 stdc++.r4 38; 39 40MakeLocate <develop>libbe.so : $(OBOS_STLIB_DIR) ; 41RelSymLink <develop>libbe.so : libbe.so ; 42 43# Build libopenbeos.so 44 45SharedLibrary openbeos : 46 KMessage.cpp 47 syslog.cpp 48 : 49 <libbe>app_kit.o 50 <libbe>interface_kit.o 51 <libbe>storage_kit.o 52 <libbe>support_kit.o 53 54 libbeadapter.so 55 net 56 stdc++.r4 57; 58 59SEARCH on [ FGristFiles KMessage.cpp ] 60 = [ FDirName $(OBOS_TOP) src system kernel messaging ] ; 61 62SEARCH on [ FGristFiles syslog.cpp ] 63 = [ FDirName $(OBOS_TOP) src system libroot posix ] ; 64 65# Note: If you want to use /boot/home/config/lib/libopenbeos.so in another 66# rule, use the identifier <boot!home!config!lib>libopenbeos.so, otherwise 67# libopenbeos.so. 68 69LOCATE on <boot!home!config!lib>libopenbeos.so 70 <boot!home!config!lib>libbeadapter.so = /boot/home/config/lib ; 71File <boot!home!config!lib>libopenbeos.so : libopenbeos.so ; 72File <boot!home!config!lib>libbeadapter.so : libbeadapter.so ; 73Includes <boot!home!config!lib>libopenbeos.so 74 : <boot!home!config!lib>libbeadapter.so ; 75 76SubInclude OBOS_TOP src kits app ; 77SubInclude OBOS_TOP src kits debug ; 78SubInclude OBOS_TOP src kits device ; 79SubInclude OBOS_TOP src kits game ; 80SubInclude OBOS_TOP src kits interface ; 81SubInclude OBOS_TOP src kits mail ; 82SubInclude OBOS_TOP src kits media ; 83SubInclude OBOS_TOP src kits midi ; 84SubInclude OBOS_TOP src kits midi2 ; 85SubInclude OBOS_TOP src kits network ; 86SubInclude OBOS_TOP src kits opengl ; 87SubInclude OBOS_TOP src kits screensaver ; 88SubInclude OBOS_TOP src kits storage ; 89SubInclude OBOS_TOP src kits support ; 90SubInclude OBOS_TOP src kits textencoding ; 91SubInclude OBOS_TOP src kits tracker ; 92SubInclude OBOS_TOP src kits translation ; 93