1SubDir OBOS_TOP src kits ; 2 3# Allow 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# Collect libopenbeos.so sources. 12subdirs = app interface support storage ; 13for subdir in $(subdirs) { 14 local dir = [ FDirName $(SUBDIR) $(subdir) ] ; 15 local file = $(subdir:S=.src) ; 16 include $(file:D=$(dir)) ; 17 UsePrivateHeaders $(subdir) ; 18 SEARCH_SOURCE += $(dir) ; 19} 20 21UsePrivateHeaders shared app [ FDirName servers app ] ; 22 23# Add subsubdirs to the SEARCH_SOURCE. 24SEARCH_SOURCE += [ FDirName $(SUBDIR) interface BTextView ] ; 25SEARCH_SOURCE += [ FDirName $(SUBDIR) storage mime ] ; 26SEARCH_SOURCE += [ FDirName $(SUBDIR) storage sniffer ] ; 27 28SharedLibrary openbeos : 29 $(APP_KIT_SOURCE) 30 $(INTERFACE_KIT_SOURCE) 31 $(SUPPORT_KIT_SOURCE) 32 $(STORAGE_KIT_SOURCE) 33; 34 35LinkSharedOSLibs libopenbeos.so : 36 libbeadapter.so 37 be 38 stdc++.r4 ; 39 40# The adapter library we need (Storage Kit). 41# 42SharedLibrary beadapter : 43 LibBeAdapter.cpp 44; 45LinkSharedOSLibs libbeadapter.so : 46 be 47; 48 49# Note: If you want to use /boot/home/config/lib/libopenbeos.so in another 50# rule, use the identifier <boot!home!config!lib>libopenbeos.so, otherwise 51# libopenbeos.so. 52LOCATE on <boot!home!config!lib>libopenbeos.so 53 <boot!home!config!lib>libbeadapter.so = /boot/home/config/lib ; 54File <boot!home!config!lib>libopenbeos.so : libopenbeos.so ; 55File <boot!home!config!lib>libbeadapter.so : libbeadapter.so ; 56Includes <boot!home!config!lib>libopenbeos.so 57 : <boot!home!config!lib>libbeadapter.so ; 58 59SubInclude OBOS_TOP src kits app ; 60SubInclude OBOS_TOP src kits interface ; 61SubInclude OBOS_TOP src kits media ; 62SubInclude OBOS_TOP src kits midi ; 63SubInclude OBOS_TOP src kits midi2 ; 64SubInclude OBOS_TOP src kits screensaver ; 65SubInclude OBOS_TOP src kits storage ; 66SubInclude OBOS_TOP src kits support ; 67SubInclude OBOS_TOP src kits textencoding ; 68SubInclude OBOS_TOP src kits translation ; 69SubInclude OBOS_TOP src kits device ; 70SubInclude OBOS_TOP src kits game ; 71SubInclude OBOS_TOP src kits network ; 72