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

  1 martin 1.3 #//%LICENSE////////////////////////////////////////////////////////////////
  2 karl   1.2 #// 
  3 martin 1.3 #// Licensed to The Open Group (TOG) under one or more contributor license
  4            #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5            #// this work for additional information regarding copyright ownership.
  6            #// Each contributor licenses this file to you under the OpenPegasus Open
  7            #// Source License; you may not use this file except in compliance with the
  8            #// License.
  9            #// 
 10            #// Permission is hereby granted, free of charge, to any person obtaining a
 11            #// copy of this software and associated documentation files (the "Software"),
 12            #// to deal in the Software without restriction, including without limitation
 13            #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14            #// and/or sell copies of the Software, and to permit persons to whom the
 15            #// Software is furnished to do so, subject to the following conditions:
 16            #// 
 17            #// The above copyright notice and this permission notice shall be included
 18            #// in all copies or substantial portions of the Software.
 19            #// 
 20            #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21            #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 22            #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23            #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24 martin 1.3 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25            #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26            #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27            #// 
 28            #//////////////////////////////////////////////////////////////////////////
 29 karl   1.2 
 30            include $(ROOT)/mak/config-unix.mak
 31            
 32            OS = solaris
 33            
 34            COMPILER = CC
 35            
 36            CC = cc
 37            
 38            CXX = CC
 39            
 40            SH = sh
 41            
 42            YACC = yacc
 43            
 44            RM = rm -f
 45            
 46            DIFF = diff
 47            
 48            SORT = sort
 49            
 50 karl   1.2 COPY = cp
 51            
 52            MOVE = mv
 53            
 54            LIB_SUFFIX = .so
 55            
 56            PEGASUS_SUPPORTS_DYNLIB = yes
 57            
 58            SYS_INCLUDES = 
 59            
 60            ##==============================================================================
 61            ##
 62            ## DEFINES
 63            ##
 64            ##==============================================================================
 65            
 66            DEFINES += -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) 
 67            DEFINES += -D_POSIX_PTHREAD_SEMANTICS
 68            DEFINES += -DPEGASUS_OS_SOLARIS
 69            
 70            ##==============================================================================
 71 karl   1.2 ##
 72            ## FLAGS
 73            ##
 74            ##==============================================================================
 75            
 76            ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS 
 77              FLAGS = -g -xs
 78            else
 79              FLAGS = -O2 -s
 80            endif
 81            
 82            ifdef PEGASUS_SOLARIS_NEED_PTO
 83              FLAGS += -pto
 84            endif
 85            
 86            FLAGS += +w -KPIC -mt -xildoff
 87            
 88            ##==============================================================================
 89            ##
 90            ## COMMON_SYS_LIBS
 91            ##
 92 karl   1.2 ##==============================================================================
 93            
 94            COMMON_SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet -lCstd -lrt
 95            
 96            ##==============================================================================
 97            ##
 98            ## SYS_LIBS (system libraries needed to build programs)
 99            ##
100            ##==============================================================================
101            
102            SYS_LIBS = $(COMMON_SYS_LIBS) $(EXTRA_LIBRARIES)
103            
104            ##==============================================================================
105            ##
106            ## LIBRARY_SYS_LIBS (system libraries needed to build other libraries)
107            ##
108            ##==============================================================================
109            
110            LIBRARY_SYS_LIBS = $(COMMON_SYS_LIBS)
111            
112            ##==============================================================================
113 karl   1.2 ##
114            ## OpenSSL Settings
115            ##
116            ##     To build for SSL, add PEGASUS_HAS_SSL=1 to environment
117            ##
118            ##==============================================================================
119            
120            ifndef OPENSSL_HOME
121              OPENSSL_HOME=/usr/sfw
122            endif
123            
124            ifndef OPENSSL_BIN
125              OPENSSL_BIN=/usr/sfw/bin
126            endif
127            
128            ifndef OPENSSL_COMMAND
129              OPENSSL_COMMAND=/usr/sfw/bin/openssl
130            endif
131            
132            ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
133              PEGASUS_ENABLE_SSL_CRL_VERIFICATION=true
134 karl   1.2 endif
135            
136            ifndef PEGASUS_USE_SSL_RANDOMFILE
137              PEGASUS_USE_SSL_RANDOMFILE=true
138            endif
139            
140            ifdef PEGASUS_HAS_SSL
141              FLAGS += -L$(OPENSSL_HOME)/$(LIBBASE)
142              EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/$(LIBBASE)
143              LD_LIBRARY_PATH+=:$(OPENSSL_HOME)/$(LIBBASE)
144              export LD_LIBRARY_PATH
145            endif
146            
147            ##==============================================================================
148            ##
149            ## OpenSPL Settings
150            ##
151            ##     Build for either OpenSlp or SolarisSLP.
152            ##
153            ##==============================================================================
154            
155 karl   1.2 ifndef PEGASUS_EXTERNAL_SLP_HOME
156              PEGASUS_EXTERNAL_SLP_HOME=/usr
157            endif
158            
159            ifeq ($(PEGASUS_USE_EXTERNAL_SLP),openslp)
160              FLAGS += -L$(PEGASUS_EXTERNAL_SLP_HOME)/$(LIBBASE)
161              LD_LIBRARY_PATH+=:$(PEGASUS_EXTERNAL_SLP_HOME)/$(LIBBASE)
162              export LD_LIBRARY_PATH
163            endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2