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

  1 karl  1.1.2.1 #//%2006////////////////////////////////////////////////////////////////////////
  2               #//
  3               #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4               #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5               #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6               #// IBM Corp.; EMC Corporation, The Open Group.
  7               #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8               #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9               #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10               #// EMC Corporation; VERITAS Software Corporation; The Open Group.
 11               #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12               #// EMC Corporation; Symantec Corporation; The Open Group.
 13               #//
 14               #// Permission is hereby granted, free of charge, to any person obtaining a copy
 15               #// of this software and associated documentation files (the "Software"), to
 16               #// deal in the Software without restriction, including without limitation the
 17               #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18               #// sell copies of the Software, and to permit persons to whom the Software is
 19               #// furnished to do so, subject to the following conditions:
 20               #// 
 21               #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 karl  1.1.2.1 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23               #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24               #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25               #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26               #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27               #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28               #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29               #//
 30               #//=============================================================================
 31               
 32               include $(ROOT)/mak/config-unix.mak
 33               
 34               OS = solaris
 35               COMPILER = CC
 36               
 37               CC = cc
 38               
 39               CXX = CC
 40               
 41               SH = sh
 42               YACC = yacc
 43 karl  1.1.2.1 RM = rm -f
 44               DIFF = diff
 45               SORT = sort
 46               COPY = cp
 47               MOVE = mv
 48               LIB_SUFFIX = .so
 49               PEGASUS_SUPPORTS_DYNLIB = yes
 50               SYS_INCLUDES = 
 51               
 52               DEFINES += -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) 
 53               DEFINES += -D_POSIX_PTHREAD_SEMANTICS
 54               DEFINES += -DPEGASUS_OS_SOLARIS
 55               
 56               #
 57               # This is needed for SPARC.  It shouldn't be needed for x86
 58               # or x86-64 if a port is ever done for Solaris on those
 59               # platforms.
 60               #
 61               DEFINES += -DTYPE_CONV
 62               
 63               SUNOS_VERSION = $(shell uname -r)
 64 karl  1.1.2.1 
 65               # Pegasus requires the kernel LWP thread model.
 66               # It doesn't exist on SunOS 5.6 or 5.7 so thery are no longer supported.
 67               #
 68               ifeq ($(SUNOS_VERSION), 5.6)
 69                 DEFINES += -DSUNOS_5_6
 70                 $(error SunOS version 5.6 is not supportted)
 71               endif
 72               
 73               # Pegasus requires the kernel LWP thread model.
 74               # It doesn't exist on SunOS 5.6 or 5.7 so thery are no longer supported.
 75               #
 76               ifeq ($(SUNOS_VERSION), 5.7)
 77                 DEFINES += -DSUNOS_5_7
 78                 $(error SunOS version 5.7 is not supportted)
 79               endif
 80               
 81               ifeq ($(SUNOS_VERSION), 5.8)
 82                 DEFINES += -DSUNOS_5_8
 83               endif
 84               
 85 karl  1.1.2.1 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS 
 86                 FLAGS = -g -xs
 87               else
 88                 FLAGS = -O4 -s -xipo=1
 89               endif
 90               
 91               #FLAGS += +w -pto -KPIC -mt -xildoff
 92               FLAGS += +w -KPIC -mt -xildoff
 93               
 94               ifndef PEGASUS_SUN_STUDIO_EXPRESS
 95                FLAGS += -pto
 96               endif
 97               
 98               ##==============================================================================
 99               ##
100               ## COMMON_SYS_LIBS
101               ##
102               ##     Build the common list of libraries used in linking both libraries and
103               ##     programs.
104               ##
105               ##==============================================================================
106 karl  1.1.2.1 
107               COMMON_SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet -lCstd
108               
109               ifeq ($(SUNOS_VERSION), 5.6)
110                 COMMON_SYS_LIBS += -lposix4
111               else
112                 COMMON_SYS_LIBS += -lrt
113               endif
114               
115               # on SunOS 5.8 use the alternate (kernel LWP) thread model that is standard on 
116               # SunOS 5.9 and 5.10
117               # 
118               ifeq ($(SUNOS_VERSION), 5.8)
119                 COMMON_SYS_LIBS += -R /usr/lib/lwp
120               endif
121               
122               ##==============================================================================
123               ##
124               ## SYS_LIBS (system libraries needed to build programs)
125               ##
126               ##==============================================================================
127 karl  1.1.2.1 
128               SYS_LIBS = $(COMMON_SYS_LIBS) $(EXTRA_LIBRARIES)
129               
130               ##==============================================================================
131               ##
132               ## LIBRARY_SYS_LIBS (system libraries needed to build other libraries)
133               ##
134               ##==============================================================================
135               
136               LIBRARY_SYS_LIBS = $(COMMON_SYS_LIBS)
137               
138               ##==============================================================================
139               ##
140               ## OpenSSL Settings
141               ##
142               ##     To build for SSL, add PEGASUS_HAS_SSL=1 to environment
143               ##
144               ##==============================================================================
145               
146               ifndef OPENSSL_HOME
147                 OPENSSL_HOME=/usr/sfw
148 karl  1.1.2.1 endif
149               
150               ifndef OPENSSL_BIN
151                 OPENSSL_BIN=/usr/sfw/bin
152               endif
153               
154               ifndef OPENSSL_COMMAND
155                 OPENSSL_COMMAND=/usr/sfw/bin/openssl
156               endif
157               
158               ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
159                 PEGASUS_ENABLE_SSL_CRL_VERIFICATION=true
160               endif
161               
162               ifndef PEGASUS_USE_SSL_RANDOMFILE
163                 PEGASUS_USE_SSL_RANDOMFILE=true
164               endif
165               
166               ifdef PEGASUS_HAS_SSL
167                 FLAGS += -L$(OPENSSL_HOME)/lib
168               endif
169 karl  1.1.2.1 
170               ##==============================================================================
171               ##
172               ## OpenSPL Settings
173               ##
174               ##     To build for SSL, add PEGASUS_HAS_SSL=1 to environment
175               ##
176               ##==============================================================================
177               
178               ifndef PEGASUS_OPENSLP_HOME
179                 PEGASUS_OPENSLP_HOME=/usr
180               endif
181               
182               ifeq ($(PEGASUS_USE_OPENSLP),true)
183                 FLAGS += -L$(PEGASUS_OPENSLP_HOME)/lib
184               endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2