8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00
firebird-mirror/builds/posix/make.shared.variables

233 lines
6.8 KiB
Plaintext
Raw Normal View History

2010-10-12 10:02:57 +02:00
# Helper functions
doObjects= $(patsubst %.m,%.o,$(patsubst %.cc,%.o,$(patsubst %.y,%.o,$(patsubst %.epp,%.o,$(patsubst %.c,%.o,$(1:.cpp=.o))))))
makeObjects= $(addprefix $(OBJ)/$(patsubst ../%,%,$(1))/,$(call doObjects,$2))
dirFiles= $(sort $(notdir $(wildcard ../src/$(1)/*.cpp)) $(notdir $(wildcard ../src/$(1)/*.c)) \
$(notdir $(wildcard ../src/$(1)/*.epp)) $(notdir $(wildcard ../src/$(1)/*.y)) \
$(notdir $(wildcard ../src/$(1)/*.cc)) $(notdir $(wildcard ../src/$(1)/*.m)))
2010-10-12 10:02:57 +02:00
dirInPath= $(call makeObjects,$(1),$(call dirFiles,$(1)))
dirMaster= $(call dirInPath,$(1))
dirOs= $(call dirInPath,$(1)/$(PLATFORM_PATH))
ifneq ($(strip $(PLATFORM_FALLBACK)),)
dirBackList= $(filter-out $(call dirFiles,$(1)/$(PLATFORM_PATH)),$(call dirFiles,$(1)/$(PLATFORM_FALLBACK)))
dirFallBack= $(call makeObjects,$(1)/$(PLATFORM_FALLBACK),$(call dirBackList,$(1)))
else
dirFallBack=
2007-02-06 13:18:18 +01:00
endif
2012-02-27 17:59:01 +01:00
dirObjects= $(call dirMaster,$(1)) $(call dirOs,$(1)) $(call dirFallBack,$(1))
makePluginName= $(PLUGINS)/$(LIB_PREFIX)$(1).$(SHRLIB_EXT)
2010-10-12 10:02:57 +02:00
# Collect all object files here
AllObjects=
2010-10-12 10:02:57 +02:00
# Common files
CO1:= $(call dirObjects,common)
CO2:= $(call dirObjects,common/classes)
CO3:= $(call dirObjects,common/config)
CO4:= $(call dirObjects,common/sha2)
#CO5:= $(call dirObjects,common/exceptions)
#CO6:= $(call dirObjects,common/sync)
Common_Objects:= $(CO1) $(CO2) $(CO3) $(CO4)
# $(CO5) $(CO6)
2010-10-12 10:02:57 +02:00
AllObjects += $(Common_Objects)
2022-07-18 13:12:23 +02:00
# Common test files
COT1:= $(call dirObjects,common/tests)
2022-07-18 13:12:23 +02:00
COT2:= $(call dirObjects,common/classes/tests)
2022-07-25 01:44:56 +02:00
Common_Test_Objects:= $(COT1) $(COT2) $(call makeObjects,yvalve,gds.cpp)
2022-07-18 13:12:23 +02:00
AllObjects += $(Common_Test_Objects)
2010-10-12 10:02:57 +02:00
# gpre
GPRE_Common_Objects:= $(call dirObjects,gpre) $(call makeObjects,gpre/languages,@GPRE_LANGUAGE_MODULES@)
GPRE_std:= $(call dirObjects,gpre/std)
GPRE_Objects:= $(GPRE_Common_Objects) $(GPRE_std)
2022-07-25 01:44:56 +02:00
GPRE_boot:= $(call dirObjects,gpre/boot) $(call makeObjects,yvalve,gds.cpp)
2010-10-12 10:02:57 +02:00
GPRE_Boot_Objects:= $(GPRE_Common_Objects) $(GPRE_boot)
2010-10-12 10:02:57 +02:00
AllObjects += $(GPRE_Common_Objects) $(GPRE_std) $(GPRE_boot)
2010-10-12 10:02:57 +02:00
# Y-Valve
2014-11-26 11:01:51 +01:00
YValve_Objects:= $(call dirObjects,yvalve) $(call dirObjects,yvalve/config)
2010-10-12 10:02:57 +02:00
AllObjects += $(YValve_Objects)
# Authentication database connections cache
SecDbCache:= $(call makeObjects,auth,SecDbCache.cpp)
2010-10-12 10:02:57 +02:00
# Remote
Remote_Common:= $(call dirObjects,remote) $(call dirObjects,auth/SecureRemotePassword)
Remote_Server:= $(call dirObjects,remote/server) $(call dirObjects,auth/SecureRemotePassword/server) \
$(call makeObjects,jrd/replication,Config.cpp Utils.cpp) $(SecDbCache)
Remote_Client:= $(call dirObjects,remote/client) $(call dirObjects,auth/SecureRemotePassword/client) \
$(call makeObjects,auth/SecurityDatabase,LegacyClient.cpp) \
$(call dirObjects,plugins/crypt/arc4)
2010-10-12 10:02:57 +02:00
Remote_Server_Objects:= $(Remote_Common) $(Remote_Server)
Remote_Client_Objects:= $(Remote_Common) $(Remote_Client)
2010-10-12 10:02:57 +02:00
AllObjects += $(Remote_Common) $(Remote_Server) $(Remote_Client)
# Chacha plugin
Chacha_Objects:= $(call dirObjects,plugins/crypt/chacha)
AllObjects += $(Chacha_Objects)
2021-12-23 19:08:04 +01:00
# Profiler plugin
Profiler_Objects:= $(call dirObjects,plugins/profiler)
AllObjects += $(Profiler_Objects)
2010-10-12 10:02:57 +02:00
# Engine
Engine_Objects:= $(call dirObjects,jrd) $(call dirObjects,dsql) $(call dirObjects,jrd/extds) \
$(call dirObjects,jrd/optimizer) $(call dirObjects,jrd/recsrc) $(call dirObjects,jrd/replication) \
$(call dirObjects,jrd/sys-packages) $(call dirObjects,jrd/trace) \
2010-10-12 10:02:57 +02:00
$(call makeObjects,lock,lock.cpp)
2022-07-18 13:12:24 +02:00
Engine_Test_Objects:= $(call dirObjects,jrd/tests)
AllObjects += $(Engine_Objects) $(Engine_Test_Objects)
2010-10-12 10:02:57 +02:00
# services
2007-03-29 08:08:47 +02:00
2010-10-12 10:02:57 +02:00
# gfix
Svc_GFIX_Objects:= $(call dirObjects,alice)
GFIX_Objects:= $(Svc_GFIX_Objects) $(call dirObjects,alice/main)
2010-10-12 10:02:57 +02:00
AllObjects += $(GFIX_Objects)
2002-11-06 21:10:30 +01:00
2010-10-12 10:02:57 +02:00
# gbak
Svc_GBAK_Objects:= $(call dirObjects,burp)
GBAK_Objects:= $(Svc_GBAK_Objects) $(call dirObjects,burp/main)
2002-11-06 21:10:30 +01:00
2010-10-12 10:02:57 +02:00
AllObjects += $(GBAK_Objects)
2002-11-06 21:10:30 +01:00
2010-10-12 10:02:57 +02:00
# gsec
Svc_GSEC_Objects:= $(call dirObjects,utilities/gsec)
GSEC_Objects:= $(Svc_GSEC_Objects) $(call dirObjects,utilities/gsec/main)
2002-11-06 21:10:30 +01:00
2010-10-12 10:02:57 +02:00
AllObjects += $(GSEC_Objects)
2005-05-28 00:45:31 +02:00
2010-10-12 10:02:57 +02:00
# gstat
Svc_GSTAT_Objects:= $(call dirObjects,utilities/gstat)
GSTAT_Own_Objects:= $(Svc_GSTAT_Objects) $(call dirObjects,utilities/gstat/main)
GSTAT_Objects:= $(GSTAT_Own_Objects) $(call makeObjects,jrd,btn.cpp ods.cpp)
2005-05-28 00:45:31 +02:00
2010-10-12 10:02:57 +02:00
AllObjects += $(GSTAT_Own_Objects)
2005-05-28 00:45:31 +02:00
2010-10-12 10:02:57 +02:00
# nbackup
Svc_NBACKUP_Objects:= $(call dirObjects,utilities/nbackup)
NBACKUP_Own_Objects:= $(Svc_NBACKUP_Objects) $(call dirObjects,utilities/nbackup/main)
NBACKUP_Objects:= $(NBACKUP_Own_Objects) $(call makeObjects,jrd,ods.cpp)
2005-05-28 00:45:31 +02:00
2010-10-12 10:02:57 +02:00
AllObjects += $(NBACKUP_Own_Objects)
2010-10-12 10:02:57 +02:00
SVC_Objects:= $(Svc_GFIX_Objects) $(Svc_GBAK_Objects) $(Svc_GSEC_Objects) $(Svc_GSTAT_Objects) \
$(Svc_NBACKUP_Objects)
2010-10-12 10:02:57 +02:00
# International support
INTL_Objects:= $(call dirObjects,intl)
2010-10-12 10:02:57 +02:00
AllObjects += $(INTL_Objects)
2010-10-12 10:02:57 +02:00
# Lockprint
LOCKPRINT_Objects:= $(call makeObjects,lock,print.cpp)
2010-10-12 10:02:57 +02:00
AllObjects += $(LOCKPRINT_Objects)
2010-10-12 10:02:57 +02:00
# Guardian
FBGUARD_Objects:= $(call dirObjects,utilities/guard)
2010-10-12 10:02:57 +02:00
AllObjects += $(FBGUARD_Objects)
2010-10-12 10:02:57 +02:00
# Services manager
FBSVCMGR_Objects:= $(call dirObjects,utilities/fbsvcmgr)
2010-10-12 10:02:57 +02:00
AllObjects += $(FBSVCMGR_Objects)
2010-10-12 10:02:57 +02:00
# Trace manager
FBTRACEMGR_Objects:= $(call dirObjects,utilities/fbtracemgr) $(call makeObjects,jrd/trace,TraceCmdLine.cpp)
2010-10-12 10:02:57 +02:00
AllObjects += $(FBTRACEMGR_Objects)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
# Trace plugin
FBTRACE_UTIL_Objects:= $(call dirObjects,utilities/ntrace)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
AllObjects += $(FBTRACE_UTIL_Objects)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
# Split/merge backup files
GSPLIT_Objects:= $(call dirObjects,burp/split)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
AllObjects += $(GSPLIT_Objects)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
# Interactive sql
ISQL_Objects:= $(call dirObjects,isql)
2009-11-05 12:52:43 +01:00
2023-09-30 00:01:35 +02:00
ISQL_Test_Objects:= $(call dirObjects,isql/tests)
AllObjects += $(ISQL_Objects) $(ISQL_Test_Objects)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
# Legacy users management in security database
LEGACY_USERS_MANAGE_Objects:= $(call makeObjects,auth/SecurityDatabase,LegacyManagement.epp)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
AllObjects += $(LEGACY_USERS_MANAGE_Objects)
2008-01-16 11:41:58 +01:00
# Legacy authentication on server
LEGACY_AUTH_SERVER_Objects:= $(call makeObjects,auth/SecurityDatabase,LegacyServer.cpp) $(SecDbCache)
AllObjects += $(LEGACY_AUTH_SERVER_Objects)
# SRP-based users management in security database
SRP_USERS_MANAGE_Objects:= $(call dirObjects,auth/SecureRemotePassword/manage) \
$(call dirObjects,auth/SecureRemotePassword)
AllObjects += $(SRP_USERS_MANAGE_Objects)
# Multihop authentication debugger
AUTH_DEBUGGER_Objects:= $(call makeObjects,auth,AuthDbg.cpp)
AllObjects += $(AUTH_DEBUGGER_Objects)
2010-10-12 10:02:57 +02:00
# UDR engine
UDRENG_Objects:= $(call dirObjects,plugins/udr_engine)
2010-10-12 10:02:57 +02:00
AllObjects += $(UDRENG_Objects)
2010-10-12 10:02:57 +02:00
# UDF support
UTIL_Objects:= $(call makeObjects,extlib,ib_util.cpp)
# UDR backward compatible with distributed UDFs
COMPAT_Objects:= $(call makeObjects,extlib,UdfBackwardCompatibility.cpp)
SRC_COMPAT_SQL:= $(SRC_ROOT)/extlib/UdfBackwardCompatibility.sql
2023-02-04 17:55:06 +01:00
COMPAT_SQL?= $(call buildSubDirectory,plugins/udr)/udf_compat.sql
AllObjects += $(UTIL_Objects) $(COMPAT_Objects)
2010-10-12 10:02:57 +02:00
# Create messages file
BUILD_Objects:= $(call makeObjects,msgs,build_file.cpp)
2010-10-12 10:02:57 +02:00
AllObjects += $(BUILD_Objects)