mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +01:00
More changes to make fb2 compile on linux work with new build structure
This commit is contained in:
parent
d3c70721cc
commit
c8d8db2ba1
@ -27,7 +27,7 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: Makefile.in.boot.gpre,v 1.1 2002-07-29 15:04:05 skywalker Exp $
|
# $Id: Makefile.in.boot.gpre,v 1.2 2002-08-05 07:14:53 skywalker Exp $
|
||||||
#
|
#
|
||||||
ROOT=..
|
ROOT=..
|
||||||
ObjModuleName=boot.gpre
|
ObjModuleName=boot.gpre
|
||||||
@ -75,17 +75,6 @@ $(GPRE_BOOT): $(GPREBOOT_Objects) $(LIB)/libfbcommon.a
|
|||||||
$(LN) $(@F) $(GPRE_CURRENT)
|
$(LN) $(@F) $(GPRE_CURRENT)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
gpre_static: $(GPRE_STATIC)
|
|
||||||
$(GPRE_STATIC):$(GPRECommon_Objects) $(GPRE_Objects) $(BOOT_GDSLIB_Objects)
|
|
||||||
$(STATICEXE_LINK) $(LINK_OPTS) $^ -o $@ $(STATICLINK_LIBS)
|
|
||||||
$(CHMOD_7) $@
|
|
||||||
-$(RM) $(GPRE_CURRENT)
|
|
||||||
$(LN) $(@F) $(GPRE_CURRENT)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
-include $(Dependencies)
|
-include $(Dependencies)
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: Makefile.in.firebird,v 1.1 2002-07-29 15:04:06 skywalker Exp $
|
# $Id: Makefile.in.firebird,v 1.2 2002-08-05 07:14:53 skywalker Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
ROOT=..
|
ROOT=..
|
||||||
@ -46,8 +46,8 @@ ISC_PASSWORD= masterkey
|
|||||||
TEST_PATH = @FIREBIRD_BUILD_DIR@
|
TEST_PATH = @FIREBIRD_BUILD_DIR@
|
||||||
LD_LIBRARY_PATH=$(RealFirebirdPath)/lib
|
LD_LIBRARY_PATH=$(RealFirebirdPath)/lib
|
||||||
|
|
||||||
export ISC_USER
|
#export ISC_USER
|
||||||
export ISC_PASSWORD
|
#export ISC_PASSWORD
|
||||||
#export INTERBASE
|
#export INTERBASE
|
||||||
export FIREBIRD
|
export FIREBIRD
|
||||||
export DYLD_FRAMEWORK_PATH
|
export DYLD_FRAMEWORK_PATH
|
||||||
@ -203,17 +203,17 @@ boot_phase1_build: libfbcommon gpre_boot libfbstatic gpre_static
|
|||||||
libfbcommon:
|
libfbcommon:
|
||||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.libfbcommon $@
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.libfbcommon $@
|
||||||
|
|
||||||
gpre_boot: libfbcommon
|
gpre_boot:
|
||||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.boot.gpre $@
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.boot.gpre $@
|
||||||
|
|
||||||
libfbstatic: gpre_boot
|
libfbstatic:
|
||||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.libfbstatic $@
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.libfbstatic $@
|
||||||
|
|
||||||
gpre_static: gpre_boot libfbcommon libfbstatic
|
gpre_static:
|
||||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.static.gpre $@
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.static.gpre $@
|
||||||
|
|
||||||
# The lock manager for classic (embedded)
|
# The lock manager for classic (embedded)
|
||||||
lock_mgr : libfbcommon libfbstatic
|
lock_mgr :
|
||||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.embed.lockmgr $@
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.embed.lockmgr $@
|
||||||
|
|
||||||
|
|
||||||
@ -251,7 +251,10 @@ gbak_static: lock_mgr
|
|||||||
isql_static:
|
isql_static:
|
||||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.static.isql $@
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.static.isql $@
|
||||||
|
|
||||||
empty_db ref_databases : gbak_static
|
empty_db :
|
||||||
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.refDatabases $@
|
||||||
|
|
||||||
|
ref_databases : gbak_static
|
||||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.refDatabases $@
|
$(MAKE) -f $(MAKE_ROOT)/Makefile.refDatabases $@
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: Makefile.in.libfbstatic,v 1.1 2002-07-29 15:04:06 skywalker Exp $
|
# $Id: Makefile.in.libfbstatic,v 1.2 2002-08-05 07:14:53 skywalker Exp $
|
||||||
#
|
#
|
||||||
ROOT=..
|
ROOT=..
|
||||||
ObjModuleName=libfbstatic
|
ObjModuleName=libfbstatic
|
||||||
@ -48,6 +48,7 @@ AllObjects= $(LIBFBSTATIC_Objects)
|
|||||||
Dependancies=$(AllObjects:.o=.d)
|
Dependancies=$(AllObjects:.o=.d)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: libfbstatic
|
.PHONY: libfbstatic
|
||||||
|
|
||||||
|
|
||||||
@ -64,6 +65,17 @@ $(LIB)/libfbstatic.a: $(LIBFBSTATIC_Objects)
|
|||||||
$(CHMOD_6) $@
|
$(CHMOD_6) $@
|
||||||
|
|
||||||
|
|
||||||
|
# This is the one where dyn_def.epp produced dyn_def.cpp and then the sed
|
||||||
|
# script is run to remove a component of it. This is pretty ugly, and even
|
||||||
|
# if we have to live with it, the makefile should be changed to make the
|
||||||
|
# dependencies clearer. MOD July-2001
|
||||||
|
|
||||||
|
$(SRC)/jrd/dyn_def.cpp : $(SRC)/jrd/dyn_def.epp $(SRC)/jrd/dyn_def.sed
|
||||||
|
$(GPRE_BOOT) $(JRD_GPRE_FLAGS) $< $(GEN_SRC)/jrd/dyn_deffoo.cpp
|
||||||
|
sed -f $(SRC)/jrd/dyn_def.sed $(GEN_SRC)/jrd/dyn_deffoo.cpp > $@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm $(AllObjects)
|
-rm $(AllObjects)
|
||||||
-rm $(Dependancies)
|
-rm $(Dependancies)
|
||||||
|
@ -29,15 +29,15 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: Makefile.in.msgs,v 1.1 2002-07-29 15:04:06 skywalker Exp $
|
# $Id: Makefile.in.msgs,v 1.2 2002-08-05 07:14:53 skywalker Exp $
|
||||||
#
|
#
|
||||||
ROOT=..
|
ROOT=..
|
||||||
ObjModuleName=msgs
|
ObjModuleName=msgs
|
||||||
|
|
||||||
include $(ROOT)/src/make.rules
|
include $(ROOT)/gen/make.rules
|
||||||
include $(ROOT)/src/make.defaults
|
include $(ROOT)/gen/make.defaults
|
||||||
include $(ROOT)/src/make.platform
|
include $(ROOT)/gen/make.platform
|
||||||
include $(ROOT)/src/make.shared.variables
|
include $(ROOT)/gen/make.shared.variables
|
||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
@ -49,24 +49,24 @@ unexport ISC_PASSWORD
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
CHECK_Files = check_msgs.cpp
|
CHECK_Files = check_msgs.epp
|
||||||
CHECK_Sources = $(addprefix msgs/, $(CHECK_Files))
|
CHECK_Sources = $(addprefix msgs/, $(CHECK_Files))
|
||||||
CHECK_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(CHECK_Sources))))
|
CHECK_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(CHECK_Sources))))
|
||||||
|
|
||||||
|
|
||||||
BUILD_Files = build_file.cpp
|
BUILD_Files = build_file.epp
|
||||||
BUILD_Sources = $(addprefix msgs/, $(BUILD_Files))
|
BUILD_Sources = $(addprefix msgs/, $(BUILD_Files))
|
||||||
BUILD_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(BUILD_Sources))))
|
BUILD_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(BUILD_Sources))))
|
||||||
|
|
||||||
ENTER_Files = enter_msgs.cpp
|
ENTER_Files = enter_msgs.epp
|
||||||
ENTER_Sources = $(addprefix msgs/, $(ENTER_Files))
|
ENTER_Sources = $(addprefix msgs/, $(ENTER_Files))
|
||||||
ENTER_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(ENTER_Sources))))
|
ENTER_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(ENTER_Sources))))
|
||||||
|
|
||||||
MODIFY_Files = modify_msgs.cpp
|
MODIFY_Files = modify_msgs.epp
|
||||||
MODIFY_Sources = $(addprefix msgs/, $(MODIFY_Files))
|
MODIFY_Sources = $(addprefix msgs/, $(MODIFY_Files))
|
||||||
MODIFY_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(MODIFY_Sources))))
|
MODIFY_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(MODIFY_Sources))))
|
||||||
|
|
||||||
CHANGE_Files = change_msgs.cpp
|
CHANGE_Files = change_msgs.epp
|
||||||
CHANGE_Sources = $(addprefix msgs/, $(CHANGE_Files))
|
CHANGE_Sources = $(addprefix msgs/, $(CHANGE_Files))
|
||||||
CHANGE_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(CHANGE_Sources))))
|
CHANGE_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(CHANGE_Sources))))
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ Programs = $(BUILD_FILE) $(CHECK_MESSAGES) $(ENTER_MESSAGES) \
|
|||||||
|
|
||||||
all: build_file check_messages enter_messages modify_messages change_messages
|
all: build_file check_messages enter_messages modify_messages change_messages
|
||||||
|
|
||||||
msgs: msg.gdb master_msg_db $(Programs) do_check message_file
|
msgs: master_msg_db $(Programs) do_check message_file
|
||||||
|
|
||||||
|
|
||||||
do_check: $(CHECK_MESSAGES) $(BUILD_FILE)
|
do_check: $(CHECK_MESSAGES) $(BUILD_FILE)
|
||||||
@ -148,11 +148,8 @@ indicator.loc:
|
|||||||
$(CHECK_MESSAGES) -d $(MSGSDIR)master_msg_db -l
|
$(CHECK_MESSAGES) -d $(MSGSDIR)master_msg_db -l
|
||||||
|
|
||||||
|
|
||||||
msg.gdb:
|
|
||||||
ln -fs $(SRC_ROOT)/refDatabases/msg.gdb msg.gdb
|
|
||||||
|
|
||||||
master_msg_db:
|
master_msg_db:
|
||||||
ln -fs $(SRC_ROOT)/refDatabases/msg.gdb master_msg_db
|
ln -fs $(SRC_ROOT)/msg.gdb master_msg_db
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,16 +29,16 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: Makefile.in.refDatabases,v 1.1 2002-07-29 15:04:06 skywalker Exp $
|
# $Id: Makefile.in.refDatabases,v 1.2 2002-08-05 07:14:53 skywalker Exp $
|
||||||
#
|
#
|
||||||
ROOT=..
|
ROOT=..
|
||||||
ObjModuleName=refDatabases
|
ObjModuleName=refDatabases
|
||||||
|
|
||||||
|
|
||||||
include $(ROOT)/src/make.rules
|
include $(ROOT)/gen/make.rules
|
||||||
include $(ROOT)/src/make.defaults
|
include $(ROOT)/gen/make.defaults
|
||||||
include $(ROOT)/src/make.platform
|
include $(ROOT)/gen/make.platform
|
||||||
include $(ROOT)/src/make.shared.variables
|
include $(ROOT)/gen/make.shared.variables
|
||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ export INTERBASE
|
|||||||
# superuser. You do not have to be root to build classic, it's just a warning
|
# superuser. You do not have to be root to build classic, it's just a warning
|
||||||
# and the build process works fine.
|
# and the build process works fine.
|
||||||
|
|
||||||
empty_db : empty.gdb
|
empty_db : empty.gdb yachts.lnk
|
||||||
|
|
||||||
empty.gdb : $(BIN)/create_db
|
empty.gdb : $(BIN)/create_db
|
||||||
-$(RM) $@
|
-$(RM) $@
|
||||||
@ -72,6 +72,12 @@ empty.gdb : $(BIN)/create_db
|
|||||||
touch $@
|
touch $@
|
||||||
chmod 444 $@
|
chmod 444 $@
|
||||||
|
|
||||||
|
# Ok so Jim had/has a sailing theme, and the sample database that a lot
|
||||||
|
# of .epp files require to compile is yachts.lnk. MOD 05-Aug-2002
|
||||||
|
|
||||||
|
yachts.lnk: empty.gdb
|
||||||
|
ln -fs $(SRC_ROOT)/empty.gdb yachts.lnk
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# These are the rest of the databases used to build the system. We also build
|
# These are the rest of the databases used to build the system. We also build
|
||||||
@ -79,24 +85,24 @@ empty.gdb : $(BIN)/create_db
|
|||||||
|
|
||||||
.PHONY: ref_databases
|
.PHONY: ref_databases
|
||||||
|
|
||||||
ref_databases : msg.gdb help.gdb metadata.gdb $(FIREBIRD)/help/help.gdb \
|
ref_databases : msg.gdb help.gdb metadata.gdb isc4.gdb
|
||||||
$(FIREBIRD)/isc4.gdb
|
|
||||||
|
|
||||||
msg.gdb: $(SRC_ROOT)/msgs/msg.gbak
|
msg.gdb: $(SRC_ROOT)/msgs/msg.gbak
|
||||||
$(BIN)/gbak_static -MODE read_only -R $< msg.gdb
|
$(BIN)/gbak_static -MODE read_only -R $< msg.gdb
|
||||||
chmod 444 msg.gdb
|
chmod 444 msg.gdb
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
help.gdb: $(SRC_ROOT)/misc/help.gbak
|
help.gdb: $(FIREBIRD)/help/help.gdb
|
||||||
$(BIN)/gbak_static -MODE read_only -R $< help.gdb
|
ln -fs $^ $@
|
||||||
chmod 444 help.gdb
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(FIREBIRD)/help/help.gdb: $(SRC_ROOT)/misc/help.gbak
|
$(FIREBIRD)/help/help.gdb: $(SRC_ROOT)/misc/help.gbak
|
||||||
$(BIN)/gbak_static -MODE read_only -R $< $@
|
$(BIN)/gbak_static -MODE read_only -R $< $@
|
||||||
chmod 444 help.gdb
|
chmod 444 help.gdb
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
isc4.gdb: $(FIREBIRD)/isc4.gdb
|
||||||
|
ln -fs $^ $@
|
||||||
|
|
||||||
$(FIREBIRD)/isc4.gdb: $(SRC_ROOT)/misc/isc4.gbak
|
$(FIREBIRD)/isc4.gdb: $(SRC_ROOT)/misc/isc4.gbak
|
||||||
$(BIN)/gbak_static -MODE read_only -R $< $@
|
$(BIN)/gbak_static -MODE read_only -R $< $@
|
||||||
# chmod 444 help.gdb
|
# chmod 444 help.gdb
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: Makefile.in.static.gpre,v 1.1 2002-07-29 15:04:06 skywalker Exp $
|
# $Id: Makefile.in.static.gpre,v 1.2 2002-08-05 07:14:53 skywalker Exp $
|
||||||
#
|
#
|
||||||
ROOT=..
|
ROOT=..
|
||||||
ObjModuleName=static.gpre
|
ObjModuleName=static.gpre
|
||||||
@ -52,9 +52,9 @@ GPRESTATIC_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(GPRESTATI
|
|||||||
|
|
||||||
|
|
||||||
AllObjects = $(GPRESTATIC_Objects)
|
AllObjects = $(GPRESTATIC_Objects)
|
||||||
|
|
||||||
Dependencies = $(AllObjects:.o=.d)
|
Dependencies = $(AllObjects:.o=.d)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: gpre_static
|
.PHONY: gpre_static
|
||||||
|
|
||||||
all : gpre_static
|
all : gpre_static
|
||||||
@ -66,6 +66,13 @@ $(GPRE_STATIC): $(GPRESTATIC_Objects) $(LIBFBCOMMON_A) $(LIBFBSTATIC_A)
|
|||||||
-$(RM) $(GPRE_CURRENT)
|
-$(RM) $(GPRE_CURRENT)
|
||||||
$(LN) $(@F) $(GPRE_CURRENT)
|
$(LN) $(@F) $(GPRE_CURRENT)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# gpre_meta needs a special boot build since there is no database.
|
||||||
|
$(SRC)/gpre/gpre_meta.cpp: $(SRC)/gpre/gpre_meta.epp
|
||||||
|
$(GPRE_BOOT) -lang_internal $(GPRE_FLAGS) $< $@
|
||||||
|
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
-include $(Dependencies)
|
-include $(Dependencies)
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: make.rules,v 1.1 2002-07-29 15:04:06 skywalker Exp $
|
# $Id: make.rules,v 1.2 2002-08-05 07:14:53 skywalker Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
#____________________________________________________________________________
|
#____________________________________________________________________________
|
||||||
@ -197,6 +197,9 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
GPRE_FLAGS= -r -m -z -n
|
GPRE_FLAGS= -r -m -z -n
|
||||||
|
JRD_GPRE_FLAGS = -n -z -gds_cxx -raw -ids
|
||||||
|
DSQL_GPRE_FLAGS = -lang_internal -r -m -z -n
|
||||||
|
|
||||||
|
|
||||||
.SUFFIXES: .c .e .epp .cpp
|
.SUFFIXES: .c .e .epp .cpp
|
||||||
|
|
||||||
@ -208,6 +211,13 @@ GPRE_FLAGS= -r -m -z -n
|
|||||||
$(GPRE_CURRENT) $(GPRE_FLAGS) $< $@
|
$(GPRE_CURRENT) $(GPRE_FLAGS) $< $@
|
||||||
|
|
||||||
|
|
||||||
|
$(SRC)/jrd/%.cpp:: $(SRC)/jrd/%.epp
|
||||||
|
$(GPRE_CURRENT) $(JRD_GPRE_FLAGS) $< $@
|
||||||
|
|
||||||
|
|
||||||
|
$(SRC)/dsql/%.cpp:: $(SRC)/dsql/%.epp
|
||||||
|
$(GPRE_CURRENT) $(DSQL_GPRE_FLAGS) $< $@
|
||||||
|
|
||||||
|
|
||||||
.SUFFIXES: .lo .o .cpp .c
|
.SUFFIXES: .lo .o .cpp .c
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user