mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-14 19:57:17 +01:00
4a6bfc086c
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
70 lines
1.4 KiB
Plaintext
70 lines
1.4 KiB
Plaintext
#
|
|
# Solaris 8
|
|
# SunStudio 11 - Sun C/C++ 5.8
|
|
#
|
|
# Build settings for SunOS/Sun Studio C++
|
|
#
|
|
|
|
#
|
|
# General Settings
|
|
#
|
|
LINKMODE ?= BOTH
|
|
OSARCH_64BITS=1
|
|
#
|
|
# Tools
|
|
#
|
|
CC = cc
|
|
CXX = CC
|
|
LINK = libtool --mode=link $(CXX)
|
|
LIB = ar cru
|
|
RANLIB = ranlib
|
|
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
|
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
STRIP =
|
|
DEP = $(POCO_BASE)/build/script/makedepend.SunCC
|
|
SHELL = sh
|
|
RM = rm -rf
|
|
CP = cp
|
|
MKDIR = mkdir -p
|
|
|
|
#
|
|
# Extension for Shared Libraries
|
|
#
|
|
SHAREDLIBEXT = .so.$(target_version)
|
|
SHAREDLIBLINKEXT = .so
|
|
|
|
#
|
|
# Compiler and Linker Flags
|
|
#
|
|
CFLAGS = -mt
|
|
CFLAGS32 = -xarch=v8plus
|
|
CFLAGS64 = -xarch=v9
|
|
CXXFLAGS = -mt -library=stlport4 -erroff=hidevf
|
|
CXXFLAGS32 = -xarch=v8plus
|
|
CXXFLAGS64 = -xarch=v9
|
|
LINKFLAGS = -mt -library=stlport4
|
|
LINKFLAGS32 = -xarch=v8plus
|
|
LINKFLAGS64 = -xarch=v9
|
|
STATICOPT_CC =
|
|
STATICOPT_CXX =
|
|
STATICOPT_LINK =
|
|
SHAREDOPT_CC = -KPIC
|
|
SHAREDOPT_CXX = -KPIC
|
|
SHAREDOPT_LINK =
|
|
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
|
|
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
|
|
DEBUGOPT_LINK = -g
|
|
RELEASEOPT_CC = -xO5 -DNDEBUG
|
|
RELEASEOPT_CXX = -xO5 -DNDEBUG
|
|
RELEASEOPT_LINK = -xO5
|
|
|
|
#
|
|
# System Specific Flags
|
|
#
|
|
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
|
|
|
|
#
|
|
# System Specific Libraries
|
|
#
|
|
SYSLIBS = -lpthread -lrt -lxnet -lsocket -lnsl -lresolv -ldl
|