# The contents of this file are subject to the Interbase Public # License Version 1.0 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy # of the License at http://www.Inprise.com/IPL.html # # Software distributed under the License is distributed on an # "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express # or implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code was created by Inprise Corporation # and its predecessors. Portions created by Inprise Corporation are # # Copyright (C) 2000 Inprise Corporation # All Rights Reserved. # Contributor(s): ______________________________________. # Start of file prefix.darwin: $(VERSION) @PLATFORM@ #$Id: prefix.darwin,v 1.2 2002-09-10 06:08:56 eku Exp $ #_____________________________________________________________________________ # # John I've added these here since I copied them from within the makefiles # to this spot. Just to show where they came from. # Most of this stuff would need to go at the end of the include file here. # and not at the beginning. # MOD 26-July-2001 # Adding to LINK_LIBS to add the framework thing. # adding another dependancy onto the includes target # End add by me MOD 26-July-2001 #______________________________________________________________________________ # use the following to define conditional DEV/PROD compile ifeq ($(IsProdTypeBuild),Y) DEBUG_Sources= nodebug.cpp CFLAGS:= -O3 -DPROD_BUILD $(CFLAGS) else DEBUG_Sources= grammar.c dbg.cpp dbt.cpp dmp.cpp CFLAGS:= -ggdb -DDEV_BUILD $(CFLAGS) endif FBFW_PREFIX= Firebird2 FW_NAME= $(FBFW_PREFIX).framework FW_PATH= $(FIREBIRD) FB_FRAMEWORK= $(FW_PATH)/$(FW_NAME) FW_VERS= 1.1.0 FW_COMPAT_VERS= 1.0.0 PHASE2_SHLIB_PATH= unset INTERBASE; export DYLD_FRAMEWORK_PATH=$(FIREBIRD); POST_BUILD_TARGET= darwin_framework SS_POST_BUILD_TARGET= ss_darwin_framework DEBUG_OBJECTS= $($(VERSION)_DEBUG_OBJECTS) SHRLIB_DIR= $($(VERSION)_SHRLIB_DIR) SHRLIB_EXT= .dylib VERSION_FLAG= $($(VERSION)_VERSION_FLAG) CFLAGS_COMMON= $($(VERSION)_CFLAGS) -w -F$(FW_PATH) #CFLAGS= $(CFLAGS_COMMON) $(SUPER_FLAG) PIC_J_CFLAGS= $(CFLAGS_COMMON) -DPIPE_IS_SHRLIB -dynamic -fno-common SPECIAL_OBJECTS= j UDF_LINK_CMD= libtool UDF_CFLAGS= -dynamic -fno-common UDF_LFLAGS= -dynamic UDF_SHRLIBS= -lcc_dynamic -framework System #NOTE: PIC_J_CFLAGS is special CFLAGS used to build PIPD_IS_SHRLIB modules # to workaround the Solaris threading problems with signals #NOTE: -Xt is ANSI C transition mode (default) # -DBDS_COMP is for BSD Compatibility package and is used in ACCESS_METHOD= gdslib.dylib pipe BACKEND_BRIDGE_MISC= $(OBJS)/pipe/head5.o $(OBJS)/pipe/allp.o BIN_PATH= /usr/isc/bin BRIDGE_MISC= $(OBJS)/pipe/head5.o $(OBJS)/pipe/allp.o CHMOD_VAL= 666 CURSES_LIB= DSQL_P_OBJS= dsql_p_objects FORM_OBJECTS= form.o FORM_TRN_OBJECTS= form_trn.o FUNCTIONS= functions.bin FUNCSHR= $(OBJS)/firebird/lib/gdsf.so DROP_LINK= $(GDS_LINK) GDS_LINK= $(GDSSHR_LINK) GDS_PYXIS= gds_pyxis.a GDSLIB_BACKEND= $(OBJS)/firebird/lib/gds_b.a GDSLIB_LINK= -L$(OBJS)/jrd -lgds_b #LINK_OPTS= -F$(FW_PATH) -framework $(FBFW_PREFIX) #SS_LINK_OPTS= -F$(FW_PATH) GPRE_BOOT_LINK_OPTS= PLATFORM_INSTALLER= darwin_installer SUPER_PLATFORM_INSTALLER= super_darwin_installer GDSSHR_DEST= $(OBJS)/firebird/lib/gds.dylib GDSSHR= gds.dylib #LINUX_GDSSHR= $(GDSSHR) GDSSHR_LINK= -F$(FW_PATH) -framework $(FBFW_PREFIX) #GDSSHR_LINK= $(SHRLIB_DIR) -lgds_pyxis #PIPE_GDSSHR= $(OBJS)/firebird/lib/gds.so.0 #PIPE_GDSSHR_LINK= $(SHRLIB_DIR) -lgds_pyxis PIPE_GDSSHR_LINK= $(SHRLIB_DIR) HLPDIR= $(SOURCE)/qli/ HOSTNAME= `hostname | cut -d'.' -f1` INCLUDES= include_so include_so_ada include_darwin INTL= intl INTL_CFLAGS= -bundle $(CFLAGS) INTL_LD_LINE= cc -bundle -o gdsintl -F$(OBJS)/firebird -framework $(FBFW_PREFIX) INTL_PIC_FLAGS= -bundle $(PIC_FLAGS) INTL_TARGET= intl_shr_objs IO_OBJECTS= unix.o IO_P_OBJECTS= unix.bin JRD_MISC_OBJECTS= JRD_J_MISC_OBJECTS= #JRD_P_MISC_OBJECTS= $(OBJS)/jrd/nodebug.bin JRD_P_MISC_OBJECTS= LANG_OBJECTS= ada.o ftn.o cob.o LANGUAGES= cc cxx ada microfocus_cob make16 gdl1 LD_LIBS= -lcc_dynamic LD_LIBS_J= LD_OPTS= -dylib LOCK_JRD_MISC= LOCK_MANAGER= MARION_DB= -d source/marion.gdb MUISQL= muisql #MUISQL_MU_LIB= -L /usr/gds.$(HOSTNAME)/qa_tools/lib -lmu MUISQL_MU_LIB= -L /usr/gds.$(HOSTNAME)/qa_tools/lib -lmu MUISQL_LINK_OPTS= $(MUISQL_MU_LIB) $(PIPE_GDSSHR_LINK) PIC_FLAGS= $(CFLAGS) -dynamic -fno-common PIPE= gds.a gds_pipe REG_HELP= isc_ins_hlp.dat REMOTE_GDSSHR= $(GDSSHR) REMOTE_GDSSHR_LINK= $(SERVER_LINK) REMOTE_P_OBJS= rem_p_objects SCREEN_LIBS= SERVER_LINK= $(GDSSHR_LINK) SETUP_ISC= ISC_USER=sysdba; ISC_PASSWORD=masterkey; export ISC_USER ISC_PASSWORD; #SPECIAL_OPT= $(SOURCE)/special_opt SPECIAL_OPT= NETWORK_LIB= SOCKET_LIB= THREAD_LIB= -lpthread SUN_FUNCSHR= $(FUNCSHR) DARWIN_SUPER_GDSSHR= $(OBJS)/firebird/lib/gds.dylib.1 SUPER_CLIENT_GDSSHR= $(DARWIN_SUPER_GDSSHR) SUPER_BACKEND= $(OBJS)/jrd/gds_ss.a SUPER_LINK= -L$(OBJS)/jrd -lgds_ss -framework System -framework Foundation SUPER_SERVER= UTILITIES= WAL_P_OBJS= wal_p_objects SU_EXEC= $(SOURCE)/su_exec.sh SUPER_SERVER_DEST= $(OBJS)/firebird/bin/ibserver INET_SERVER_DEST= $(OBJS)/firebird/bin/gds_inet_server DNET_SERVER_DEST= $(OBJS)/firebird/bin/gds_dnet_server AMBX_SERVER_DEST= $(OBJS)/firebird/bin/gds_server INET_LIB_DEST= $(OBJS)/firebird/lib/gds_inet_server.a DNET_LIB_DEST= $(OBJS)/firebird/lib/gds_dnet_server.a MSG_INSTALL_CMD= $(CP) $(OBJS)/firebird/interbase.msg $(FB_FRAMEWORK)/Resources/English.lproj CARBONCORE_DIR_FLAG= -F/System/Library/Frameworks/CoreServices.framework/Frameworks DARWIN_COREFOUNDATION_LINK= -framework CoreFoundation DARWIN_FOUNDATION_LINK= -framework Foundation # Options for linking the FB shared library. LIBGDS_SO := $(LIB)/libgds.dylib LIB_LINK := libtool LIBGDS_LINK_OPTIONS := -dynamic -install_name \ $(FW_NAME)/Versions/A/$(FBFW_PREFIX) \ -current_version $(FW_VERS) \ -compatibility_version $(FW_COMPAT_VERS) \ -framework System -framework CoreFoundation \ -lstdc++ -lcc_dynamic LIB_LINK_OPTIONS := -dynamic # The routines used for IO. Darwin uses the unix routines. IO_Sources= unix.cpp # Add in the platform specific link options LINK_LIBS := $(DARWIN_COREFOUNDATION_LINK) STATICLINK_LIBS := $(LINK_LIBS) LINK_OPTS := $(DARWIN_COREFOUNDATION_LINK) # We need to over ride some of the defaults set in make.defaults AR= ar cru # Define our own rules to over ride those in make.rules CFLAGS := $(CARBONCORE_DIR_FLAG) $(CFLAGS) # If we don't define CXXFLAGS again, our changes to CFLAGS won't take effect # for CXXFLAGS CXXFLAGS:= $(CXXFLAGS) $(CFLAGS) # Set up the link line to work with the framework. ifdef UseSharedLibraries LIBGDS_LINK = -F$(FIREBIRD) -framework $(FBFW_PREFIX) endif # Set DYLD_FRAMEWORK_PATH to point to the framework we are building. export DYLD_FRAMEWORK_PATH DYLD_FRAMEWORK_PATH := $(FIREBIRD) # The target to generate our psuedo framework for use when compiling. firebird: darwin_pseudo_fw darwin_pseudo_fw: $(RM) -rf $(FB_FRAMEWORK) mkdir -p $(FB_FRAMEWORK)/Versions/A/Resources/English.lproj/var ln -s Versions/Current/$(FBFW_PREFIX) $(FB_FRAMEWORK)/$(FBFW_PREFIX) ln -s Versions/Current/Resources $(FB_FRAMEWORK)/Resources ln -s Versions/Current/Headers $(FB_FRAMEWORK)/Headers ln -s A $(FB_FRAMEWORK)/Versions/Current sed "s/__VERSION__/0.0.boot/g" $(SRC_ROOT)/install/arch-specific/darwin/FrameworkInfo.plist > $(FB_FRAMEWORK)/Resources/Info.plist ln -s ../../../include $(FB_FRAMEWORK)/Versions/A/Headers ln -s ../../../lib/libgds.dylib $(FB_FRAMEWORK)/Versions/A/$(FBFW_PREFIX) ln -s ../../../../../../interbase.msg \ $(FB_FRAMEWORK)/Versions/A/Resources/English.lproj/var/interbase.msg ln -s ../../../../../../bin \ $(FB_FRAMEWORK)/Versions/A/Resources/English.lproj/var/bin ln -s ../../../../../../intl \ $(FB_FRAMEWORK)/Versions/A/Resources/English.lproj/var/intl ln -s ../../../../../../isc4.gdb \ $(FB_FRAMEWORK)/Versions/A/Resources/English.lproj/var/isc4.gdb ln -s ../../../../../../help \ $(FB_FRAMEWORK)/Versions/A/Resources/English.lproj/var/help # End of file prefix.darwin: $(VERSION) $(PLATFORM)