# 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 # # Contributor(s): # # # $Id: Makefile.in.client.util,v 1.7 2003-03-21 11:53:48 aafemt Exp $ # ROOT=.. ObjModuleName=client.util CFLAGS:= -DSUPERCLIENT include $(ROOT)/gen/make.platform include $(ROOT)/gen/make.rules include $(ROOT)/gen/make.defaults include $(ROOT)/gen/make.shared.variables @SET_MAKE@ CREATEDB_Files= create_db.cpp CREATEDB_Sources = $(addprefix utilities/, $(CREATEDB_Files)) CREATEDB_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(CREATEDB_Sources)))) DROP_Files= drop.cpp DROP_Sources = $(addprefix utilities/, $(DROP_Files)) DROP_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(DROP_Sources)))) GSEC_Files = gsec.cpp GSEC_Sources = $(addprefix utilities/, $(GSEC_Files)) GSEC_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(GSEC_Sources)))) GSTAT_Files = dba.epp ppg.cpp GSTAT_Sources = $(addprefix utilities/, $(GSTAT_Files)) GSTAT_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(GSTAT_Sources)))) FBGUARD_Files = guard.cpp util.cpp FBGUARD_Sources = $(addprefix utilities/, $(FBGUARD_Files)) 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 = chop.cpp IBGUARD_B_Sources = $(addprefix remote/, $(IBGUARD_B_Files)) IBGUARD_B_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(IBGUARD_B_Sources)))) FBMGR_Files = ibmgr.cpp srvrmgr.cpp FBMGR_Sources = $(addprefix utilities/, $(FBMGR_Files)) FBMGR_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(FBMGR_Sources)))) INSTREG_Files = install_reg.cpp registry.cpp INSTREG_Sources = $(addprefix utilities/, $(INSTREG_Files)) INSTREG_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(INSTREG_Sources)))) INSTSVC_Files = install_svc.cpp services.cpp INSTSVC_Sources = $(addprefix utilities/, $(INSTSVC_Files)) INSTSVC_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(INSTSVC_Sources)))) REBUILD_Files = rebuild.cpp rstore.epp rmet.epp REBUILD_Sources = $(addprefix utilities/, $(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) \ $(GSEC_Objects) $(GSTAT_Object) $(FBGUARD_Objects) \ $(FBMGR_Objects) $(REBUILD_Objects) $(RELAY_Objects) Dependencies = $(AllObjects:.o=.d) .PHONY: all create_db gstat gds_drop gds_relay gsec fbguard fbmgr_bin all: $(CLIENT_UTIL_TARGETS) create_db: $(CREATE_DB) $(CREATE_DB): $(CREATEDB_Objects) $(LD) $(LINK_OPTS) $(CREATEDB_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS) gstat : $(GSTAT) $(GSTAT): $(GSTAT_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(GSTAT_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS) gds_drop: $(GDS_DROP) $(GDS_DROP): $(DROP_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(DROP_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS) gds_relay: $(GDS_RELAY) $(GDS_RELAY): $(RELAY_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(RELAY_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS) gsec: $(GSEC) $(GSEC): $(GSEC_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(GSEC_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS) fbguard: $(FBGUARD) $(FBGUARD): $(FBGUARD_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(FBGUARD_Objects) -o $@ -L$(LIB) -lfbclient $(LIB_GUI) $(LINK_LIBS) ibguard: $(IBGUARD) $(IBGUARD): $(IBGUARD_A_Objects) $(IBGUARD_B_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(IBGUARD_A_Objects) $(IBGUARD_B_Objects) -o $@ -L$(LIB) -lfbclient $(LIB_GUI) $(LINK_LIBS) fbmgr_bin: $(FBMGR_BIN) $(FBMGR_BIN): $(FBMGR_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(FBMGR_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS) instreg: $(INSTREG) $(INSTREG): $(INSTREG_Objects) $(LD) $(LINK_OPTS) $(INSTREG_Objects) -o $@ -L$(LIB) $(LINK_LIBS) instsvc: $(INSTSVC) $(INSTSVC): $(INSTSVC_Objects) $(LIBFBCOMMON_A) $(OS_SPECIFIC_Objects) $(LD) $(LINK_OPTS) $(INSTSVC_Objects) $(OS_SPECIFIC_Objects) -o $@ -L$(LIB) -lfbcommon $(LINK_LIBS) # This one needs a bit of work. rebuild: $(GDS_REBUILD) $(GDS_REBUILD): $(REBUILD_Objects) $(LIBFBCLIENT_SO) $(LD) $(LINK_OPTS) $(REBUILD_Objects) -o $@ -L$(LIB) -lfbclient $(LINK_LIBS) include $(ROOT)/gen/make.shared.targets -include $(Dependencies)