(file) Return to platform_SOLARIS_SPARC_CC.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

File: [Pegasus] / pegasus / mak / platform_SOLARIS_SPARC_CC.mak (download)
Revision: 1.7, Thu Aug 19 20:10:25 2004 UTC (19 years, 9 months ago) by david.dillard
Branch: MAIN
CVS Tags: CQL_2_5_BRANCH
Changes since 1.6: +22 -16 lines
BUG#: 1851
TITLE: Added SSL support to Solaris CC platform makefile.

DESCRIPTION: Added an ifdef for SSL support for Solaris.  Right now, only support shared libraries.  If the user requests non-shared libraries an error message will be displayed.  If necessary, that support can be added later.

include $(ROOT)/mak/config-unix.mak

OS = solaris

ARCHITECTURE = sparc

COMPILER = CC

CXX = CC

SH = sh

YACC = yacc

COPY = cp

MOVE = mv

LIB_SUFFIX = .so

PEGASUS_SUPPORTS_DYNLIB = yes

SYS_INCLUDES = 

DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -D_POSIX_PTHREAD_SEMANTICS

DEFINES += -DPEGASUS_OS_SOLARIS

DEFINES += -DPEGASUS_SNIA_INTEROP_TEST

DEFINES += -DPEGASUS_HAS_SIGNALS

# "READBUG" forces fstream.read to read 1 char at a time to
# overcome a bug in Wshop 6.2
# There are patches for this now.
#
# DEFINES += -DPEGASUS_OS_SOLARIS_READBUG

SUNOS_VERSION = $(shell uname -r)

ifeq ($(SUNOS_VERSION), 5.6)
DEFINES += -DSUNOS_5_6
endif

ifdef PEGASUS_DEBUG
FLAGS = -g -pto -KPIC -mt -xs -xildoff
else
FLAGS = -O -pto -KPIC -mt -xildoff
endif

SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet

ifeq ($(SUNOS_VERSION), 5.6)
SYS_LIBS += -lposix4
else
SYS_LIBS += -lrt
endif

ifdef PEGASUS_HAS_SSL
	ifdef PEGASUS_USE_SSL_SHAREDLIB
		EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/lib -lssl -lcrypto
	else
		$(error Static linking of OpenSSL is not currently supported on this platform.)
	endif
endif

SYS_LIBS += $(EXTRA_LIBRARIES)

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2