2002-12-30 17:00:38 +01:00
|
|
|
#
|
|
|
|
# Compiler settings for Solaris (Sparc)
|
|
|
|
#
|
|
|
|
# This file is processed by configure and the output written to
|
|
|
|
# gen/make.platform which is included in src directory makefiles
|
|
|
|
# before other common make files ie: make.[rules|defaults|shared.variables]
|
|
|
|
#
|
|
|
|
|
|
|
|
# 30-Dec-2002 nmcc FB2 initial working build on Solaris8 with gcc 3.2.1
|
2005-04-19 10:23:49 +02:00
|
|
|
# 18-apr-2005 kkuznetsov FB2 Solaris 32 bits update (only gcc) as Ray Holme story talks
|
2002-12-30 17:00:38 +01:00
|
|
|
# Firebird defines specific to Solaris (and x86) build
|
2006-02-08 10:25:32 +01:00
|
|
|
CFLAGS_COMMON= -DSOLARIS -DSOLARIS_MT -DBSD_COMP -Dsparc
|
2002-12-30 17:00:38 +01:00
|
|
|
|
|
|
|
# compile flags for GCC compiler
|
2006-03-03 11:56:26 +01:00
|
|
|
COMMON_GCC_FLAGS= -MMD -fPIC -m32
|
2005-04-19 10:23:49 +02:00
|
|
|
|
2006-03-03 11:56:26 +01:00
|
|
|
DEBUG_GCC_FLAGS= -ggdb -g3 -Wall -Wno-switch -Wcast-align
|
2005-04-19 10:23:49 +02:00
|
|
|
PROD_GCC_FLAGS= -mcpu=ultrasparc -mtune=ultrasparc -O2 -DNDEBUG
|
|
|
|
|
2002-12-30 17:00:38 +01:00
|
|
|
|
|
|
|
# compile flags for SUNWspro/Forte compiler - untested nmcc dec2002
|
|
|
|
COMMON_FORTE_FLAGS= -Xt -xstrconst -mt -K PIC
|
|
|
|
DEBUG_FORTE_FLAGS= -v -g
|
|
|
|
PROD_FORTE_FLAGS= -O2 -w
|
|
|
|
|
|
|
|
|
2002-12-31 19:15:18 +01:00
|
|
|
#these come from configure --with-sfio=/path/to/sfio
|
|
|
|
SFIO_DIR=@SFIO_DIR@
|
|
|
|
SFIO_FLAGS=@SFIO_FLAGS@
|
|
|
|
SFIO_LDFLAGS=@SFIO_LDFLAGS@
|
2002-12-30 17:00:38 +01:00
|
|
|
|
2005-04-19 10:23:49 +02:00
|
|
|
PROD_FLAGS= $(CFLAGS_COMMON) $(SFIO_FLAGS) $(COMMON_GCC_FLAGS) $(PROD_GCC_FLAGS) \
|
2006-03-09 10:23:35 +01:00
|
|
|
$(LOCAL_CFLAGS)
|
2002-12-30 17:00:38 +01:00
|
|
|
|
2005-04-19 10:23:49 +02:00
|
|
|
DEV_FLAGS= $(CFLAGS_COMMON) $(SFIO_FLAGS) $(COMMON_GCC_FLAGS) $(DEBUG_GCC_FLAGS) \
|
2006-03-09 10:23:35 +01:00
|
|
|
$(LOCAL_CFLAGS)
|
2002-12-30 17:00:38 +01:00
|
|
|
|
|
|
|
# extra modules needed on this platform during bootstrap phase
|
2005-11-17 07:55:44 +01:00
|
|
|
GPRECOMMON_Files= ../jrd/ThreadData.cpp ../jrd/isc_sync.cpp
|
|
|
|
GPRECommon_Sources= $(GPRECOMMON_Files)
|
2002-12-30 17:00:38 +01:00
|
|
|
|
2003-03-05 16:42:28 +01:00
|
|
|
|
2005-11-17 07:55:44 +01:00
|
|
|
JRDBOOT_Extra_Files= isc_sync.cpp
|
|
|
|
|
|
|
|
GFIX_Other_Sources= jrd/isc_sync.cpp jrd/os/posix/isc_ipc.cpp
|
|
|
|
DROP_Other_Sources= jrd/ThreadData.cpp
|
|
|
|
LOCKPRINT_Other_Sources= jrd/ThreadData.cpp
|
2005-04-19 10:23:49 +02:00
|
|
|
Server_main_dummy = os/sun/server_main_dummy.cpp
|
2006-03-09 10:34:55 +01:00
|
|
|
OS_ServerFiles=inet_server.cpp
|
2005-04-19 10:23:49 +02:00
|
|
|
|
2002-12-30 17:00:38 +01:00
|
|
|
LIB_LINK_OPTIONS:= -G
|
|
|
|
LIB_LINK_RPATH:=-R
|
|
|
|
LIB_LINK_SONAME:=-h
|
2005-04-19 10:23:49 +02:00
|
|
|
LIB_LINK_MAPFILE= -Xlinker -M
|
2003-09-08 22:23:46 +02:00
|
|
|
EMBED_UTIL_TARGETS=gstat gds_drop gds_relay gsec nbackup fb_lock_print
|
2004-02-13 11:14:40 +01:00
|
|
|
CLIENT_UTIL_TARGETS=gds_drop gds_relay gstat gsec fbguard fbmgr_bin nbackup fb_lock_print
|
2002-12-30 17:00:38 +01:00
|
|
|
|
2003-07-14 13:23:04 +02:00
|
|
|
Physical_IO_Module=os/posix/unix.cpp
|
2003-10-27 19:42:47 +01:00
|
|
|
|
2005-04-19 10:23:49 +02:00
|
|
|
LD=g++
|
2006-03-03 11:56:26 +01:00
|
|
|
LDFLAGS=-m32
|
2005-11-17 07:55:44 +01:00
|
|
|
LINK_OPTS:=$(LDFLAGS)
|