mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
212 lines
7.6 KiB
Makefile
212 lines
7.6 KiB
Makefile
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
# You may obtain a copy of the Licence at
|
|
# http://www.gnu.org/licences/lgpl.html
|
|
#
|
|
# As a special exception this file can also be included in modules
|
|
# with other source code as long as that source code has been
|
|
# released under an Open Source Initiative certificed licence.
|
|
# More information about OSI certification can be found at:
|
|
# http://www.opensource.org
|
|
#
|
|
# This module 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
|
|
# GNU Lesser General Public Licence for more details.
|
|
#
|
|
# This module was created by members of the firebird development
|
|
# team. All individual contributions remain the Copyright (C) of
|
|
# those individuals and all rights are reserved. Contributors to
|
|
# this file are either listed below or can be obtained from a CVS
|
|
# history command.
|
|
#
|
|
# Created by: Mark O'Donohue <mark.odonohue@ludwig.edu.au>
|
|
#
|
|
# Contributor(s):
|
|
#
|
|
#
|
|
#
|
|
ROOT=..
|
|
ObjModuleType=std
|
|
|
|
include $(ROOT)/gen/make.defaults
|
|
include $(ROOT)/gen/make.platform
|
|
include $(ROOT)/gen/make.rules
|
|
include $(ROOT)/gen/make.shared.variables
|
|
|
|
@SET_MAKE@
|
|
|
|
|
|
LOCKPRINT_Other_Sources = jrd/isc_sync.cpp jrd/isc_ipc.cpp jrd/isc.cpp \
|
|
common/config/config.cpp common/config/config_file.cpp $(OS_SPECIFIC_Sources)
|
|
LOCKPRINT_Files= print.cpp
|
|
LOCKPRINT_Sources = $(addprefix lock/, $(LOCKPRINT_Files)) $(LOCKPRINT_Other_Sources)
|
|
LOCKPRINT_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(LOCKPRINT_Sources))))
|
|
|
|
|
|
NBACKUP_Other_Sources = jrd/db_alias.cpp \
|
|
common/config/config.cpp common/config/config_file.cpp $(OS_SPECIFIC_Sources)
|
|
NBACKUP_Files= nbackup.cpp
|
|
NBACKUP_Sources = $(addprefix utilities/, $(NBACKUP_Files)) $(NBACKUP_Other_Sources)
|
|
NBACKUP_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(NBACKUP_Sources)))) $(CLUMPLETS_Objects)
|
|
|
|
|
|
CREATEDB_Files= create_db.cpp
|
|
CREATEDB_Sources = $(addprefix utilities/, $(CREATEDB_Files))
|
|
CREATEDB_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(CREATEDB_Sources))))
|
|
|
|
|
|
DROP_Other_Sources = common/utils.cpp lock/lock.cpp jrd/isc_sync.cpp jrd/isc_ipc.cpp jrd/isc.cpp \
|
|
common/config/config.cpp common/config/config_file.cpp $(OS_SPECIFIC_Sources)
|
|
|
|
DROP_Files= drop.cpp
|
|
DROP_Sources = $(addprefix utilities/, $(DROP_Files)) $(DROP_Other_Sources)
|
|
DROP_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(DROP_Sources)))) \
|
|
$(FBCOMMON_ClientObjects) $(FBCLASSES_ClientObjects)
|
|
|
|
|
|
GSTAT_Other_Sources = jrd/btn.cpp jrd/db_alias.cpp jrd/ods.cpp common/utils.cpp \
|
|
$(OS_SPECIFIC_Sources) jrd/isc_file.cpp jrd/isc.cpp jrd/ThreadData.cpp common/UtilSvc.cpp
|
|
|
|
GSTAT_Files = dba.epp ppg.cpp gstatMain.cpp
|
|
GSTAT_Sources = $(addprefix utilities/gstat/, $(GSTAT_Files)) $(GSTAT_Other_Sources)
|
|
GSTAT_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(GSTAT_Sources)))) $(CLUMPLETS_Objects)
|
|
|
|
FBSVCMGR_Files= fbsvcmgr.cpp
|
|
FBSVCMGR_Other_Sources = common/classes/fb_string.cpp common/classes/alloc.cpp \
|
|
common/fb_exception.cpp common/utils.cpp common/classes/locks.cpp
|
|
|
|
FBSVCMGR_Sources = $(addprefix utilities/, $(FBSVCMGR_Files)) $(FBSVCMGR_Other_Sources)
|
|
FBSVCMGR_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(FBSVCMGR_Sources)))) \
|
|
$(FBCLASSES_MsgObjects) $(CLUMPLETS_Objects) $(FBCOMMON_ClientObjects)
|
|
|
|
|
|
FBGUARD_Other_Sources = jrd/isc.cpp jrd/divorce.cpp jrd/path_utils.cpp
|
|
FBGUARD_Files = guard.cpp util.cpp
|
|
FBGUARD_Sources = $(addprefix utilities/guard/, $(FBGUARD_Files)) $(FBGUARD_Other_Sources)
|
|
FBGUARD_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(FBGUARD_Sources))))
|
|
|
|
|
|
IBGUARD_A_Files = cntl_guard.cpp iscguard.cpp
|
|
IBGUARD_A_Sources = $(addprefix iscguard/, $(IBGUARD_A_Files))
|
|
IBGUARD_A_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(IBGUARD_A_Sources))))
|
|
IBGUARD_B_Files = os/win32/chop.cpp
|
|
IBGUARD_B_Sources = $(addprefix remote/, $(IBGUARD_B_Files))
|
|
IBGUARD_B_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(IBGUARD_B_Sources))))
|
|
|
|
FBMGR_Other_Sources = jrd/path_utils.cpp
|
|
FBMGR_Files = ibmgr.cpp srvrmgr.cpp
|
|
FBMGR_Sources = $(addprefix utilities/ibmgr/, $(FBMGR_Files)) $(FBMGR_Other_Sources)
|
|
FBMGR_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(FBMGR_Sources))))
|
|
|
|
|
|
INSTREG_Files = install_reg.cpp registry.cpp
|
|
INSTREG_Sources = $(addprefix utilities/install/, $(INSTREG_Files))
|
|
INSTREG_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(INSTREG_Sources))))
|
|
|
|
|
|
INSTSVC_Files = install_svc.cpp services.cpp
|
|
INSTSVC_Other_Sources = common/classes/alloc.cpp common/classes/fb_string.cpp
|
|
INSTSVC_Sources = $(addprefix utilities/install/, $(INSTSVC_Files)) $(INSTSVC_Other_Sources)
|
|
INSTSVC_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(INSTSVC_Sources)))) $(FBCOMMON_ClientObjects)
|
|
|
|
|
|
REBUILD_Files = rebuild.cpp rstore.epp rmet.epp
|
|
REBUILD_Sources = $(addprefix utilities/rebuild/, $(REBUILD_Files))
|
|
REBUILD_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(REBUILD_Sources))))
|
|
|
|
|
|
RELAY_Files = relay.cpp
|
|
RELAY_Sources = $(addprefix utilities/, $(RELAY_Files))
|
|
RELAY_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(RELAY_Sources))))
|
|
|
|
AllObjects = $(CREATEDB_Object) $(DROP_Object) $(GSTAT_Object) $(FBGUARD_Objects) \
|
|
$(FBMGR_Objects) $(REBUILD_Objects) $(RELAY_Objects) $(FBSVCMGR_Objects)
|
|
|
|
|
|
Dependencies = $(AllObjects:.o=.d)
|
|
|
|
|
|
.PHONY: all gstat gsec fbguard fbmgr_bin nbackup gds_drop gds_relay create_db fb_lock_print fbsvcmgr
|
|
|
|
all: $(CLIENT_UTIL_TARGETS)
|
|
|
|
create_db: $(CREATE_DB)
|
|
|
|
$(CREATE_DB): $(CREATEDB_Objects)
|
|
$(STATICEXE_LINK) $(LINK_OPTS) $(CREATEDB_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS)
|
|
|
|
|
|
nbackup: $(LIBFBCLIENT_SO) $(NBACKUP)
|
|
|
|
$(NBACKUP): $(NBACKUP_Objects) $(CLUMPLETS_Objects) $(COMMON_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) -lfbclient $(LINK_LIBS)
|
|
|
|
fb_lock_print: $(LIBFBCLIENT_SO) $(LOCKPRINT)
|
|
|
|
$(LOCKPRINT): $(LOCKPRINT_Objects) $(COMMON_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) -lfbclient $(LINK_LIBS)
|
|
|
|
|
|
gstat : $(LIBFBCLIENT_SO) $(GSTAT)
|
|
|
|
$(GSTAT): $(GSTAT_Objects) $(CLUMPLETS_Objects) $(COMMON_Objects) $(FBCONFIG_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) -lfbclient $(LINK_LIBS)
|
|
|
|
|
|
gds_drop: $(GDS_DROP)
|
|
|
|
$(GDS_DROP): $(DROP_Objects) $(LIBFBCLIENT_SO)
|
|
$(EXE_LINK) $(LINK_OPTS) $(DROP_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS)
|
|
|
|
|
|
fbsvcmgr: $(FBSVCMGR)
|
|
|
|
$(FBSVCMGR): $(FBSVCMGR_Objects) $(LIBFBCLIENT_SO)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(LINK_LIBS)
|
|
|
|
|
|
fbguard: $(LIBFBCLIENT_SO) $(FBGUARD)
|
|
|
|
$(FBGUARD): $(FBGUARD_Objects) $(FBCOMMON_Objects) $(FBCLASSES_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) -lfbclient $(LIB_GUI) $(LINK_LIBS)
|
|
|
|
|
|
ibguard: $(LIBFBCLIENT_SO) $(IBGUARD)
|
|
|
|
$(IBGUARD): $(IBGUARD_A_Objects) $(IBGUARD_B_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(FBCLASSES_Objects) $(FBCOMMON_Objects) -lfbclient \
|
|
$(LIB_GUI) $(LINK_LIBS)
|
|
|
|
|
|
fbmgr_bin: $(FBMGR_BIN)
|
|
|
|
$(FBMGR_BIN): $(FBMGR_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(FBCLASSES_Objects) $(FBCOMMON_Objects) -lfbclient \
|
|
$(LINK_LIBS)
|
|
|
|
|
|
instreg: $(INSTREG)
|
|
|
|
$(INSTREG): $(INSTREG_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(LINK_LIBS)
|
|
|
|
|
|
instsvc: $(INSTSVC)
|
|
|
|
$(INSTSVC): $(INSTSVC_Objects)
|
|
$(EXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(LINK_LIBS)
|
|
|
|
# This one needs a bit of work.
|
|
|
|
rebuild: $(GDS_REBUILD)
|
|
|
|
$(GDS_REBUILD): $(REBUILD_Objects) $(LIBFBCLIENT_SO)
|
|
$(EXE_LINK) $(LINK_OPTS) $(REBUILD_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS)
|
|
|
|
include $(ROOT)/gen/make.shared.targets
|
|
|
|
-include $(Dependencies)
|