2002-11-06 13:58:45 +01:00
|
|
|
# The contents of this file are subject to the Interbase Public
|
|
|
|
# License Version 1.0 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy
|
|
|
|
# of the License at http://www.Inprise.com/IPL.html
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an
|
|
|
|
# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
# or implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
|
|
|
# The Original Code was created by Inprise Corporation
|
|
|
|
# and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
# Copyright (C) Inprise Corporation.
|
|
|
|
#
|
|
|
|
# All Rights Reserved.
|
2003-09-28 01:28:11 +02:00
|
|
|
# Contributor(s): Blas Rodriguez Somoza
|
|
|
|
# Start of file prefix.mingw: $(VERSION) $(PLATFORM)
|
|
|
|
#
|
|
|
|
# 2003-Sep-27 BRS Removed IPSERVER after XNET is included
|
2021-06-08 15:31:18 +02:00
|
|
|
#
|
2003-09-28 01:28:11 +02:00
|
|
|
|
2004-05-22 16:30:25 +02:00
|
|
|
# -Wno-unused-variable is used due to unused gpre generated variables
|
2024-08-13 12:29:12 +02:00
|
|
|
PROD_FLAGS=-O2 -DMINGW -Wall -Wshadow -Wundef -Wno-long-long -Wno-unused-variable -Wno-sign-compare -Wno-parentheses -Wno-switch -fmessage-length=0 -Dlint -DWIN32_LEAN_AND_MEAN -MMD -mthreads -Wno-non-virtual-dtor
|
|
|
|
DEV_FLAGS=-ggdb -DMINGW -Wall -Wshadow -Wundef -Wno-long-long -Wno-unused-variable -Wno-sign-compare -Wno-parentheses -Wno-switch -fmessage-length=0 -Dlint -DWIN32_LEAN_AND_MEAN -MMD -mthreads -Wno-non-virtual-dtor
|
2002-11-12 15:06:07 +01:00
|
|
|
|
2005-07-22 12:26:30 +02:00
|
|
|
PLATFORM_PATH=os/win32
|
2002-12-12 13:08:51 +01:00
|
|
|
|
2006-07-04 06:05:06 +02:00
|
|
|
# Override link command for implicit stdc++ linking
|
|
|
|
LIB_LINK=$(LD)
|
|
|
|
|
2005-06-27 12:20:00 +02:00
|
|
|
LIB_LINK_OPTIONS+=-Wl,--enable-stdcall-fixup
|
|
|
|
|
|
|
|
# Strip symbols from release versions to decrease size
|
|
|
|
ifeq ($(IsProdTypeBuild),Y)
|
2011-12-27 09:14:58 +01:00
|
|
|
EXE_LINK_OPTIONS+=-Wl,-s
|
2005-12-28 07:58:28 +01:00
|
|
|
LIB_LINK_OPTIONS+=-Wl,-s
|
2005-06-27 12:20:00 +02:00
|
|
|
endif
|
2009-01-28 14:47:26 +01:00
|
|
|
|
2003-10-27 02:10:26 +01:00
|
|
|
# Generation of fbclient_ms.lib
|
|
|
|
LIB_LINK_IMPLIB:=-Wl,--out-implib,firebird/lib/fbclient_ms.lib
|
2003-03-21 12:53:48 +01:00
|
|
|
LIB_GUI:= -mwindows -lcomctl32 -lgdi32
|
2003-10-27 02:10:26 +01:00
|
|
|
|
2003-03-28 12:29:18 +01:00
|
|
|
# Add resources to some files
|
|
|
|
FilesToAddVersionInfo=$(LIBFBEMBED_SO) $(LIBFBCLIENT_SO) $(LIBFBINTL_SO) \
|
2021-06-08 15:31:18 +02:00
|
|
|
$(GSTAT) $(GSEC) $(GFIX) $(ISQL) $(GBAK) $(GPRE)
|
2003-03-28 12:29:18 +01:00
|
|
|
# TODO: guardians also must be here
|
|
|
|
FilesToAddDialog=$(FB_SUPER_SERVER) $(FB_CLASSIC_SERVER)
|
2003-10-27 02:10:26 +01:00
|
|
|
FilesToAddDialog2=$(IBGUARD)
|
2003-03-31 12:29:16 +02:00
|
|
|
|
2005-06-10 12:32:51 +02:00
|
|
|
# Suppress 'lib'-prefix
|
|
|
|
LIB_PREFIX=
|
2003-03-31 12:29:16 +02:00
|
|
|
|
|
|
|
# Override library names to suppress version suffix
|
|
|
|
ClientLibraryNameFull := $(ClientLibraryName)
|
2009-01-28 14:47:26 +01:00
|
|
|
ClientLibrarySoName := $(ClientLibraryName)
|
2003-10-27 02:10:26 +01:00
|
|
|
|
2005-06-16 14:09:46 +02:00
|
|
|
# Looks like MinGW 3 does not support version scripts but support def-files
|
2005-07-04 07:54:21 +02:00
|
|
|
LINK_FIREBIRD_SYMBOLS = $(BLD_ROOT)/win32/defs/fbclient_s.def $(BLD_ROOT)/win32/defs/fbclient.def
|
2005-06-16 14:09:46 +02:00
|
|
|
|
2005-06-10 12:32:51 +02:00
|
|
|
# This is required for newly built executable to find newly built shared
|
|
|
|
# libraries because on Win32 there is no such thing as LD_LIBRARY_PATH
|
|
|
|
LIB=$(BIN)
|
2009-01-28 14:47:26 +01:00
|
|
|
|
|
|
|
# Special options for UDF link
|
|
|
|
LINK_UDF = $(LIB_LINK) $(LIB_LINK_OPTIONS) $(call LIB_LINK_SONAME,$(1).$(SHRLIB_EXT)) -L$(LIB) -lib_util
|
2021-06-08 15:31:18 +02:00
|
|
|
LINK_UDF_LIBS =
|
2009-02-28 12:44:12 +01:00
|
|
|
|
|
|
|
# Special options for trace plugin link
|
2011-08-02 13:54:30 +02:00
|
|
|
LINK_TRACE_LIBS = -L$(LIB) $(SO_LINK_LIBS)
|