2002-07-29 17:04:06 +02:00
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public
|
|
|
|
# License Version 1.1 (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.mozilla.org/MPL/
|
|
|
|
# Alternatively, the contents of this file may be used under the
|
|
|
|
# terms of the GNU General Public License Version 2 or later (the
|
|
|
|
# "GPL"), in which case the provisions of the GPL are applicable
|
|
|
|
# instead of those above. You may obtain a copy of the Licence at
|
|
|
|
# http://www.gnu.org/copyleft/gpl.html
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# Relevant for more details.
|
|
|
|
#
|
|
|
|
# This file was created by members of the firebird development team.
|
|
|
|
# All individual contributions remain the Copyright (C) of those
|
|
|
|
# individuals. Contributors to this file are either listed here or
|
|
|
|
# can be obtained from a CVS history command.
|
|
|
|
#
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Created by: Mark O'Donohue <mark.odonohue@ludwig.edu.au>
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
#
|
|
|
|
#
|
2003-09-26 12:22:28 +02:00
|
|
|
# $Id: make.defaults,v 1.31 2003-09-26 10:22:28 aafemt Exp $
|
2002-07-29 17:04:06 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
#_____________________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This file contains default values that are used by the build process do not
|
|
|
|
# change these here, but override them in the platform specific file
|
|
|
|
# prefix.xxx where xxx is the platform name using the form SH := bash
|
|
|
|
# see the readme file with the Makefile.in files for more details.
|
|
|
|
|
|
|
|
#_____________________________________________________________________________
|
|
|
|
|
2003-07-08 03:05:22 +02:00
|
|
|
TMP_ROOT=$(ROOT)/temp
|
2003-03-27 12:21:47 +01:00
|
|
|
GEN_ROOT=$(ROOT)/gen
|
|
|
|
SRC_ROOT=$(ROOT)/src
|
2003-07-09 02:46:55 +02:00
|
|
|
BLD_ROOT=$(ROOT)/builds
|
2003-07-11 04:28:45 +02:00
|
|
|
LNG_ROOT=$(ROOT)/lang_helpers
|
|
|
|
EXA_ROOT=$(ROOT)/examples
|
2003-03-27 12:21:47 +01:00
|
|
|
|
|
|
|
FIREBIRD=$(GEN_ROOT)/firebird
|
|
|
|
INTERBASE=$(FIREBIRD)
|
|
|
|
|
|
|
|
export INTERBASE
|
|
|
|
export FIREBIRD
|
|
|
|
|
|
|
|
LIB=$(FIREBIRD)/lib
|
|
|
|
BIN=$(FIREBIRD)/bin
|
|
|
|
|
|
|
|
# This picks up the current directory and maps it to the equivalent module
|
|
|
|
# in the src and gen area.
|
|
|
|
|
|
|
|
RealSrcRootPath = $(shell cd $(SRC_ROOT); pwd)
|
|
|
|
|
|
|
|
#ModuleName:=$(notdir $(CURDIR))
|
|
|
|
ModuleName:=$(subst $(RealSrcRootPath)/,,$(CURDIR))
|
|
|
|
|
2003-07-08 03:05:22 +02:00
|
|
|
OBJ=$(TMP_ROOT)/$(ObjModuleName)
|
2003-03-27 12:21:47 +01:00
|
|
|
|
|
|
|
GEN_SRC=$(OBJ)
|
|
|
|
|
|
|
|
# This one is not so widely used at the momement.
|
|
|
|
# but I would like it to become so.
|
|
|
|
|
2002-07-29 17:04:06 +02:00
|
|
|
#RealFirebirdPath = $(shell cd $(FIREBIRD); pwd)
|
|
|
|
RealFirebirdPath = @NEW_FIREBIRD_DIR@
|
|
|
|
|
|
|
|
|
|
|
|
FirebirdInstallPrefix = @prefix@
|
|
|
|
CpuType=@CPU_TYPE@
|
|
|
|
|
2003-02-19 06:14:36 +01:00
|
|
|
PLATFORM=@PLATFORM@
|
2002-07-29 17:04:06 +02:00
|
|
|
ifeq (@FIREBIRD_ARCH_TYPE@,classic)
|
|
|
|
ArchPrefix=CS
|
|
|
|
else
|
|
|
|
ArchPrefix=SS
|
|
|
|
endif
|
|
|
|
|
2002-11-05 02:42:49 +01:00
|
|
|
# link with readline libraries - set by configure
|
2002-11-13 08:07:58 +01:00
|
|
|
EDITLINE_FLG=@EDITLINE_FLG@
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Default programs and tools to be used in the build process
|
|
|
|
|
|
|
|
SH= sh -c
|
|
|
|
RM= rm -f
|
|
|
|
CHMOD= chmod
|
|
|
|
CHMOD_6= chmod 666
|
|
|
|
CHMOD_7= chmod 777
|
|
|
|
CHMOD_S7= chmod 06777
|
|
|
|
MV= mv -f
|
|
|
|
TOUCH= touch
|
|
|
|
CP= cp
|
|
|
|
ECHO= echo
|
|
|
|
QUIET_ECHO= @echo
|
|
|
|
CD= cd
|
|
|
|
CAT= cat
|
|
|
|
AR= ar crsu
|
2003-03-21 12:53:48 +01:00
|
|
|
LN= @LN_S@
|
2002-07-29 17:04:06 +02:00
|
|
|
RANLIB= @RANLIB@
|
2002-12-12 13:08:51 +01:00
|
|
|
YACC= @YACC@
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
# Default extensions
|
|
|
|
|
|
|
|
ARCH_EXT= .a
|
2002-12-06 15:30:40 +01:00
|
|
|
EXEC_EXT= @EXEEXT@
|
2003-03-05 16:49:07 +01:00
|
|
|
SHRLIB_EXT=@SHRLIB_EXT@
|
2002-07-29 17:04:06 +02:00
|
|
|
|
2003-03-27 12:21:47 +01:00
|
|
|
#_____________________________________________________________________________
|
|
|
|
|
|
|
|
# Include file with version variable definitions
|
|
|
|
|
|
|
|
-include $(ROOT)/gen/Make.Version
|
2002-07-29 17:04:06 +02:00
|
|
|
|
2003-03-28 12:29:18 +01:00
|
|
|
# Add windows dll to library patterns
|
|
|
|
|
|
|
|
.LIBPATTERNS += %.dll lib%.dll
|
|
|
|
|
|
|
|
# Search path for libraries
|
|
|
|
|
|
|
|
vpath %.so $(LIB)
|
|
|
|
vpath %.a $(LIB)
|
|
|
|
vpath %.dll $(LIB)
|
|
|
|
|
2002-07-29 17:04:06 +02:00
|
|
|
#_____________________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
# From jrd
|
|
|
|
|
|
|
|
JRD_BOOT= $(LIB)/jrd_boot.a
|
2003-02-28 06:22:13 +01:00
|
|
|
BLRTABLE = $(BIN)/blrtable$(EXEC_EXT)
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
# The shared library name for the embedded (or classic) library
|
2003-07-09 02:46:55 +02:00
|
|
|
# SD: This name is also hard-coded in builds/install/.../linux/classic scripts.
|
2003-03-20 12:11:55 +01:00
|
|
|
# Scold me, but I don't want library names to be in configure.in
|
2002-07-29 17:04:06 +02:00
|
|
|
#
|
2003-03-20 12:11:55 +01:00
|
|
|
|
|
|
|
SharedLibraryName=libfbembed.${SHRLIB_EXT}.${FirebirdVersion}
|
|
|
|
SharedLibrarySoName=libfbembed.${SHRLIB_EXT}.${MajorVer}
|
|
|
|
SharedLibraryBaseName=libfbembed.${SHRLIB_EXT}
|
|
|
|
|
2002-07-29 17:04:06 +02:00
|
|
|
LIBFBEMBED_SO = $(LIB)/$(SharedLibraryName)
|
|
|
|
LIBFBEMBED_SOBASENAME = $(LIB)/$(SharedLibrarySoName)
|
|
|
|
LIBFBEMBED_SONAME = $(LIB)/$(SharedLibraryBaseName)
|
|
|
|
|
|
|
|
LIBGDS_A = $(LIB)/libgds.a
|
|
|
|
|
|
|
|
# Shared library names for client side of fbserver (or super) version
|
|
|
|
# used to link all the utilities to enable them to connect over the wire
|
|
|
|
# to the fbserver. MOD 28-July-2002
|
|
|
|
|
2003-03-21 12:53:48 +01:00
|
|
|
ClientLibraryName = libfbclient.$(SHRLIB_EXT)
|
2003-09-01 16:22:50 +02:00
|
|
|
ClientLibraryNameMajor = $(ClientLibraryName).${MajorVer}
|
|
|
|
ClientLibraryNameFull = $(ClientLibraryName).${FirebirdVersion}
|
2003-03-21 12:53:48 +01:00
|
|
|
|
|
|
|
LIBFBCLIENT_SO = $(LIB)/$(ClientLibraryNameFull)
|
|
|
|
LIBFBCLIENT_SOBASENAME=$(LIB)/$(ClientLibraryNameMajor)
|
|
|
|
LIBFBCLIENT_SONAME=$(LIB)/$(ClientLibraryName)
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
# intl will load dynamically, and having the whole soname set with version
|
2003-03-05 16:49:07 +01:00
|
|
|
# confuses the dynamic load process. So we only have the .$(SHRLIB_EXT) file
|
2002-07-29 17:04:06 +02:00
|
|
|
# MOD 28-July-2002
|
|
|
|
|
2003-03-05 16:49:07 +01:00
|
|
|
LIBFBINTL_SO = $(FIREBIRD)/intl/libfbintl.$(SHRLIB_EXT)
|
|
|
|
#LIBFBINTL_SOBASENAME=$(FIREBIRD)/intl/libfbintl.$(SHRLIB_EXT).1
|
|
|
|
#LIBFBINTL_SONAME=$(FIREBIRD)/intl/libfbintl.$(SHRLIB_EXT)
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
LIBFBCOMMON_A = $(LIB)/libfbcommon.a
|
|
|
|
LIBFBSTATIC_A = $(LIB)/libfbstatic.a
|
2003-03-28 12:29:18 +01:00
|
|
|
LIBFBSERVER_A = $(LIB)/libfbserver.a
|
2003-03-12 13:39:58 +01:00
|
|
|
LIBEDITLINE_A = $(LIB)/libeditline.a
|
2002-07-29 17:04:06 +02:00
|
|
|
|
2003-05-25 02:04:54 +02:00
|
|
|
# Shared library name for usage inside of the UDF
|
|
|
|
IbUtilLibraryName = libib_util.$(SHRLIB_EXT)
|
|
|
|
LIBIBUTIL_SO = $(LIB)/$(IbUtilLibraryName)
|
|
|
|
|
2002-07-29 17:04:06 +02:00
|
|
|
ifdef UseSharedLibraries
|
|
|
|
LIBGDS_LA = $(LIBGDS_SO)
|
|
|
|
LIBGDS_DEP =
|
|
|
|
# LIBGDS_LINK = $(LIBGDS_SO)
|
|
|
|
LIBGDS_LINK =
|
|
|
|
# LINK_LIBS := -L$(LIB) -lgdssuper $(LINK_LIBS)
|
|
|
|
# LINK_LIBS := -L$(LIB) -lgds $(LINK_LIBS)
|
|
|
|
|
2003-03-05 16:49:07 +01:00
|
|
|
# LIBGDS_LINK_OPTIONS = -soname libgds.$(SHRLIB_EXT) -rpath /usr/lib
|
2002-12-05 17:15:05 +01:00
|
|
|
LIBGDS_LINK_OPTIONS = $(LIB_LINK_OPTIONS) $(LIB_LINK_SONAME)$(SharedLibrarySoName) $(LIB_LINK_RPATH)$(FirebirdInstallPrefix)/lib
|
2002-12-07 14:50:30 +01:00
|
|
|
LINK_OPTS:= $(LIB_LINK_RPATH)$(FirebirdInstallPrefix)/lib $(LIB_LINK_RPATH)$(FirebirdInstallPrefix)/intl
|
2002-09-24 15:01:12 +02:00
|
|
|
# LIBGDS_LINK_OPTIONS = -Wl,-soname,$(SharedLibrarySoName) -Wl,-rpath,/usr/lib
|
2002-07-29 17:04:06 +02:00
|
|
|
else
|
|
|
|
LIBGDS_LA = $(LIBGDS_A)
|
|
|
|
LIBGDS_DEP = $(LIBGDS_LA)
|
|
|
|
LIBGDS_LINK =
|
|
|
|
LIBGDS_LINK_OPTIONS =
|
|
|
|
endif
|
|
|
|
|
2003-03-28 12:29:18 +01:00
|
|
|
FB_SUPER_SERVER = $(BIN)/fbserver$(EXEC_EXT)
|
|
|
|
FB_CLASSIC_SERVER = $(BIN)/fb_inet_server$(EXEC_EXT)
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
# From lock
|
2002-12-09 02:38:13 +01:00
|
|
|
GDS_LOCK_MGR = $(BIN)/fb_lock_mgr
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
# From utilities
|
|
|
|
CREATE_DB = $(BIN)/create_db$(EXEC_EXT)
|
|
|
|
GDS_DROP = $(BIN)/gds_drop$(EXEC_EXT)
|
|
|
|
GSTAT = $(BIN)/gstat$(EXEC_EXT)
|
2003-08-06 18:30:49 +02:00
|
|
|
NBACKUP = $(BIN)/nbackup$(EXEC_EXT)
|
2003-09-08 22:23:46 +02:00
|
|
|
LOCKPRINT = $(BIN)/fb_lock_print$(EXEC_EXT)
|
2002-07-29 17:04:06 +02:00
|
|
|
GSEC = $(BIN)/gsec$(EXEC_EXT)
|
2003-03-28 12:29:18 +01:00
|
|
|
GFIX = $(BIN)/gfix$(EXEC_EXT)
|
2002-07-29 17:04:06 +02:00
|
|
|
GDS_REBUILD = $(BIN)/gds_rebuild$(EXEC_EXT)
|
|
|
|
GDS_RELAY = $(BIN)/gds_relay$(EXEC_EXT)
|
|
|
|
GDS_INSTALL = $(BIN)/gds_install$(EXEC_EXT)
|
|
|
|
GDS_INSTALL = $(BIN)/gds_install_service$(EXEC_EXT)
|
|
|
|
FBGUARD = $(BIN)/fbguard$(EXEC_EXT)
|
2003-03-05 16:49:07 +01:00
|
|
|
IBGUARD = $(BIN)/ibguard$(EXEC_EXT)
|
2002-07-29 17:04:06 +02:00
|
|
|
FBMGR_BIN = $(BIN)/fbmgr.bin$(EXEC_EXT)
|
2003-03-05 16:49:07 +01:00
|
|
|
INSTREG = $(BIN)/instreg$(EXEC_EXT)
|
|
|
|
INSTSVC = $(BIN)/instsvc$(EXEC_EXT)
|
2003-02-10 12:54:30 +01:00
|
|
|
ISC_GDB = $(FIREBIRD)/security.fdb
|
2003-02-10 12:01:23 +01:00
|
|
|
ISC_GBAK = $(BIN)/security.gbak
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
# From qli
|
|
|
|
QLI = $(BIN)/qli$(EXEC_EXT)
|
|
|
|
|
|
|
|
# From isql
|
|
|
|
ISQL = $(BIN)/isql$(EXEC_EXT)
|
|
|
|
ISQL_STATIC = $(BIN)/isql_static$(EXEC_EXT)
|
|
|
|
MUISQL = $(BIN)/muisql$(EXEC_EXT)
|
|
|
|
|
|
|
|
# From burp
|
|
|
|
GBAK_STATIC = $(BIN)/gbak_static$(EXEC_EXT)
|
|
|
|
GBAK = $(BIN)/gbak$(EXEC_EXT)
|
|
|
|
|
|
|
|
# From gpre
|
|
|
|
# (gpre current is a link to one of the others)
|
|
|
|
GPRE_BOOT = $(BIN)/gpre_boot$(EXEC_EXT)
|
|
|
|
GPRE_STATIC = $(BIN)/gpre_static$(EXEC_EXT)
|
|
|
|
GPRE = $(BIN)/gpre$(EXEC_EXT)
|
|
|
|
GPRE_CURRENT = $(BIN)/gpre_current$(EXEC_EXT)
|
|
|
|
|
|
|
|
|
|
|
|
# From msgs
|
|
|
|
CHECK_MESSAGES = $(BIN)/check_messages$(EXEC_EXT)
|
|
|
|
BUILD_FILE = $(BIN)/build_file$(EXEC_EXT)
|
2003-07-08 12:45:47 +02:00
|
|
|
FIREBIRD_MSG = $(FIREBIRD)/firebird.msg
|
2002-07-29 17:04:06 +02:00
|
|
|
|
|
|
|
ENTER_MESSAGES = $(BIN)/enter_messages$(EXEC_EXT)
|
|
|
|
MODIFY_MESSAGES = $(BIN)/modify_messages$(EXEC_EXT)
|
|
|
|
CHANGE_MESSAGES = $(BIN)/change_messages$(EXEC_EXT)
|
|
|
|
|
|
|
|
fr_FR_MSG = $(FIREBIRD)/fr_FR.msg
|
|
|
|
de_DE_MSG = $(FIREBIRD)/de_DE.msg
|
|
|
|
ja_JP_MSG = $(FIREBIRD)/ja_JP.msg
|
|
|
|
|
|
|
|
#Platform Manager
|
|
|
|
#For want of a better suggestion we may as well default to posix
|
2003-09-26 12:22:28 +02:00
|
|
|
PLATFORM_PATH = jrd/os/posix
|