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

  1 karl  1.2 #//%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.2 #// 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           
 36           COMPILER = CC
 37           
 38           CC = cc
 39           
 40           CXX = CC
 41           
 42           SH = sh
 43 karl  1.2 
 44           YACC = yacc
 45           
 46           RM = rm -f
 47           
 48           DIFF = diff
 49           
 50           SORT = sort
 51           
 52           COPY = cp
 53           
 54           MOVE = mv
 55           
 56           LIB_SUFFIX = .so
 57           
 58           PEGASUS_SUPPORTS_DYNLIB = yes
 59           
 60           SYS_INCLUDES = 
 61           
 62           ##==============================================================================
 63           ##
 64 karl  1.2 ## DEFINES
 65           ##
 66           ##==============================================================================
 67           
 68           DEFINES += -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) 
 69           DEFINES += -D_POSIX_PTHREAD_SEMANTICS
 70           DEFINES += -DPEGASUS_OS_SOLARIS
 71           
 72           ##==============================================================================
 73           ##
 74           ## FLAGS
 75           ##
 76           ##==============================================================================
 77           
 78           ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS 
 79             FLAGS = -g -xs
 80           else
 81             FLAGS = -O2 -s
 82           endif
 83           
 84           ifdef PEGASUS_SOLARIS_NEED_PTO
 85 karl  1.2   FLAGS += -pto
 86           endif
 87           
 88           FLAGS += +w -KPIC -mt -xildoff
 89           
 90           ##==============================================================================
 91           ##
 92           ## COMMON_SYS_LIBS
 93           ##
 94           ##==============================================================================
 95           
 96           COMMON_SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet -lCstd -lrt
 97           
 98           ##==============================================================================
 99           ##
100           ## SYS_LIBS (system libraries needed to build programs)
101           ##
102           ##==============================================================================
103           
104           SYS_LIBS = $(COMMON_SYS_LIBS) $(EXTRA_LIBRARIES)
105           
106 karl  1.2 ##==============================================================================
107           ##
108           ## LIBRARY_SYS_LIBS (system libraries needed to build other libraries)
109           ##
110           ##==============================================================================
111           
112           LIBRARY_SYS_LIBS = $(COMMON_SYS_LIBS)
113           
114           ##==============================================================================
115           ##
116           ## OpenSSL Settings
117           ##
118           ##     To build for SSL, add PEGASUS_HAS_SSL=1 to environment
119           ##
120           ##==============================================================================
121           
122           ifndef OPENSSL_HOME
123             OPENSSL_HOME=/usr/sfw
124           endif
125           
126           ifndef OPENSSL_BIN
127 karl  1.2   OPENSSL_BIN=/usr/sfw/bin
128           endif
129           
130           ifndef OPENSSL_COMMAND
131             OPENSSL_COMMAND=/usr/sfw/bin/openssl
132           endif
133           
134           ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
135             PEGASUS_ENABLE_SSL_CRL_VERIFICATION=true
136           endif
137           
138           ifndef PEGASUS_USE_SSL_RANDOMFILE
139             PEGASUS_USE_SSL_RANDOMFILE=true
140           endif
141           
142           ifdef PEGASUS_HAS_SSL
143             FLAGS += -L$(OPENSSL_HOME)/$(LIBBASE)
144             EXTRA_LIBRARIES += -L$(OPENSSL_HOME)/$(LIBBASE)
145             LD_LIBRARY_PATH+=:$(OPENSSL_HOME)/$(LIBBASE)
146             export LD_LIBRARY_PATH
147           endif
148 karl  1.2 
149           ##==============================================================================
150           ##
151           ## OpenSPL Settings
152           ##
153           ##     Build for either OpenSlp or SolarisSLP.
154           ##
155           ##==============================================================================
156           
157           ifndef PEGASUS_EXTERNAL_SLP_HOME
158             PEGASUS_EXTERNAL_SLP_HOME=/usr
159           endif
160           
161           ifeq ($(PEGASUS_USE_EXTERNAL_SLP),openslp)
162             FLAGS += -L$(PEGASUS_EXTERNAL_SLP_HOME)/$(LIBBASE)
163             LD_LIBRARY_PATH+=:$(PEGASUS_EXTERNAL_SLP_HOME)/$(LIBBASE)
164             export LD_LIBRARY_PATH
165           endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2