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

201 lines
5.4 KiB
Plaintext
Raw Normal View History

2010-10-12 10:02:57 +02:00
# Helper functions
makeObjects= $(addprefix $(OBJ)/$(1)/,$(patsubst %.y,%.o,$(patsubst %.epp,%.o,$(patsubst %.c,%.o,$(2:.cpp=.o)))))
dirFiles= $(notdir $(wildcard ../src/$(1)/*.cpp)) $(notdir $(wildcard ../src/$(1)/*.c)) \
$(notdir $(wildcard ../src/$(1)/*.epp)) $(notdir $(wildcard ../src/$(1)/*.y))
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
2010-10-12 10:02:57 +02:00
dirObjects= $(call dirMaster,$(1)) $(call dirOs,$(1)) $(call dirOs2,$(1))
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/exceptions)
#CO5:= $(call dirObjects,common/sync)
Common_Objects:= $(CO1) $(CO2) $(CO3)
# $(CO4) $(CO5)
2010-10-12 10:02:57 +02:00
AllObjects += $(Common_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)
GPRE_boot:= $(call dirObjects,gpre/boot) $(call makeObjects,yvalve,gds.cpp)
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
YValve_Objects:= $(call dirObjects,yvalve)
2010-10-12 10:02:57 +02:00
AllObjects += $(YValve_Objects)
2010-10-12 10:02:57 +02:00
# Remote
Remote_Common:= $(call dirObjects,remote)
Remote_Server:= $(call dirObjects,remote/server) $(call makeObjects,auth/SecurityDatabase,pwd.cpp)
# legacy security database pwd.cpp should become SA plugin
Remote_Client:= $(call dirObjects,remote/client) $(call makeObjects,auth/SecurityDatabase,LegacyClient.cpp)
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)
2010-10-12 10:02:57 +02:00
# Engine
Engine_Objects:= $(call dirObjects,jrd) $(call dirObjects,dsql) $(call dirObjects,jrd/extds) \
$(call dirObjects,jrd/recsrc) $(call dirObjects,jrd/trace) \
$(call makeObjects,lock,lock.cpp)
2010-10-12 10:02:57 +02:00
AllObjects += $(Engine_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
2010-10-12 10:02:57 +02:00
AllObjects += $(ISQL_Objects)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
# QLI
QLI_Objects:= $(call dirObjects,qli)
2009-11-05 12:52:43 +01:00
2010-10-12 10:02:57 +02:00
AllObjects += $(QLI_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
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
IBUDF_Objects:= $(call makeObjects,extlib,ib_udf.cpp)
FBUDF_Objects:= $(call makeObjects,extlib/fbudf,fbudf.cpp)
UTIL_Objects:= $(call makeObjects,extlib,ib_util.cpp)
2010-10-12 10:02:57 +02:00
AllObjects += $(IBUDF_Objects) $(FBUDF_Objects) $(UTIL_Objects)
2010-10-12 10:02:57 +02:00
# Regenerate error codes
CODES_Objects:= $(call makeObjects,misc,codes.epp)
MSG_SCRIPTS = msg.sql facilities2.sql locales.sql sqlstates.sql history2.sql messages2.sql \
symbols2.sql system_errors2.sql transmsgs.fr_FR2.sql transmsgs.de_DE2.sql
MSG_FILES = $(addprefix $(SRC_ROOT)/msgs/, $(MSG_SCRIPTS))
2010-10-12 10:02:57 +02:00
AllObjects += $(CODES_Objects)
2010-10-12 10:02:57 +02:00
# Create messages file
BUILD_Objects:= $(call makeObjects,msgs,build_file.epp)
2010-10-12 10:02:57 +02:00
AllObjects += $(BUILD_Objects)
2010-10-12 10:02:57 +02:00
# BLR
BLRTABLE_Objects = $(call makeObjects,misc,blrtable.cpp)
2010-10-12 10:02:57 +02:00
AllObjects += $(BLRTABLE_Objects)