1# 2# powerpc_darwin_1.3.mk - make variables and rules specific to powerpc darwin 1.3 3# 4 5Darwin = 1 6PowerPCProcessor = 1 7 8# 9# Python set-up 10# 11# You must set a path to a Python 1.5.2 interpreter. 12 13#PYTHON = /usr/local/bin/python 14 15 16# 17# Include general unix things 18# 19 20include $(THIS_IMPORT_TREE)/mk/unix.mk 21 22 23# 24# Standard programs 25# 26 27AR = ar cq 28CPP = /usr/bin/cpp 29 30CXX = /usr/bin/c++ 31CXXMAKEDEPEND += -D__cplusplus -D__GNUG__ -D__GNUC__ 32CXXDEBUGFLAGS = -O2 33CXXLINK = $(CXX) 34CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) 35CXXOPTIONS = -Wall -Wno-unused 36 37CC = /usr/bin/cc 38CMAKEDEPEND += -D__GNUC__ 39CDEBUGFLAGS = -O 40CLINK = $(CC) 41CLINKOPTIONS = $(CDEBUGFLAGS) $(COPTIONS) 42COPTIONS = 43 44INSTALL = install -c 45 46IMPORT_CPPFLAGS += -D__powerpc__ -D__darwin__ -D__OSVERSION__=1 47MKDIRHIER = mkdir -p 48 49# 50# CORBA stuff 51# 52 53CorbaImplementation = OMNIORB 54 55# 56# OMNI thread stuff 57# 58 59ThreadSystem = Posix 60OMNITHREAD_CPPFLAGS = 61OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=10 -DPthreadSupportThreadPriority -DNoNanoSleep 62OMNITHREAD_LIB = $(patsubst %,$(LibSearchPattern),omnithread) 63lib_depend := $(patsubst %,$(LibPattern),omnithread) 64OMNITHREAD_LIB_DEPEND := $(GENERATE_LIB_DEPEND) 65 66 67# Default location of the omniORB configuration file [falls back to this if 68# the environment variable OMNIORB_CONFIG is not set] : 69 70OMNIORB_CONFIG_DEFAULT_LOCATION = /etc/omniORB.cfg 71 72# Default directory for the omniNames log files. 73OMNINAMES_LOG_DEFAULT_LOCATION = /var/omninames 74 75# 76# Shared Library support. 77# 78 79BuildSharedLibrary = 1 # Enable 80SHAREDLIB_CPPFLAGS = -fno-common # compiler flag 81SHAREDLIB_SUFFIX = dylib 82SharedLibraryFullNameTemplate = lib$$1$$2.$$3.$$4.$(SHAREDLIB_SUFFIX) 83SharedLibrarySoNameTemplate = lib$$1$$2.$$3.$(SHAREDLIB_SUFFIX) 84SharedLibraryLibNameTemplate = lib$$1$$2.$(SHAREDLIB_SUFFIX) 85SharedLibraryPlatformLinkFlagsTemplate = -dynamiclib -flat_namespace -undefined suppress 86 87# Re-define 'ExportLibrary' to run 'ranlib' after the file is copied, 88# for static libraries as otherwise the linker complains: "table of 89# contents for archive: ???? is out of date; rerun ranlib(1) (can't 90# load from it)" 91# 92ifdef EXPORT_TREE 93define ExportLibrary 94(dir="$(EXPORT_TREE)/$(LIBDIR)"; \ 95 files="$^"; \ 96 for file in $$files; do \ 97 $(ExportFileToDir); \ 98 base=`basename $$file`; \ 99 if [ $${base%.a} != $$base ]; then (set -x; $(RANLIB) $$dir/$$base); fi; \ 100 done; \ 101) 102endef 103endif 104 105 106# 107# everything else is default from unix.mk 108