1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/vendor/POCO/build/config/SunOS-SunStudio
Sandu Liviu Catalin 4a6bfc086c Major plugin refactor and cleanup.
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.
2021-01-30 08:51:39 +02:00

69 lines
1.3 KiB
Plaintext

#
# SunStudio
#
# Build settings for SunOS/Sun Studio C++
#
#
# General Settings
#
LINKMODE ?= SHARED
#
# Tools
#
CC = cc
CXX = CC
LINK = $(CXX)
LIB = $(CXX) -xar -o $@
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 -Isrc
CFLAGS32 =
CFLAGS64 = -m64
CXXFLAGS = -mt -library=stlport4 -erroff=hidevf
CXXFLAGS32 =
CXXFLAGS64 = -m64
LINKFLAGS = -mt -library=stlport4
LINKFLAGS32 =
LINKFLAGS64 = -m64
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -Bstatic
SHAREDOPT_CC = -KPIC
SHAREDOPT_CXX = -KPIC
SHAREDOPT_LINK = -Bdynamic
DEBUGOPT_CC = -g -xs -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -xs -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK = -g -xs
RELEASEOPT_CC = -O -DNDEBUG
RELEASEOPT_CXX = -O -DNDEBUG
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
#
# System Specific Libraries
#
SYSLIBS = -lpthread -lrt -lxnet -lsocket -lnsl -lresolv -ldl