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 -KPIC -mt -xildoff
92
|
95 karl 1.1.2.1 endif
96
97 ##==============================================================================
98 ##
99 ## COMMON_SYS_LIBS
100 ##
101 ## Build the common list of libraries used in linking both libraries and
102 ## programs.
103 ##
104 ##==============================================================================
105
106 COMMON_SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet -lCstd
107
108 ifeq ($(SUNOS_VERSION), 5.6)
109 COMMON_SYS_LIBS += -lposix4
110 else
111 COMMON_SYS_LIBS += -lrt
112 endif
113
114 # on SunOS 5.8 use the alternate (kernel LWP) thread model that is standard on
115 # SunOS 5.9 and 5.10
116 karl 1.1.2.1 #
117 ifeq ($(SUNOS_VERSION), 5.8)
118 COMMON_SYS_LIBS += -R /usr/lib/lwp
119 endif
120
121 ##==============================================================================
122 ##
123 ## SYS_LIBS (system libraries needed to build programs)
124 ##
125 ##==============================================================================
126
127 SYS_LIBS = $(COMMON_SYS_LIBS) $(EXTRA_LIBRARIES)
128
129 ##==============================================================================
130 ##
131 ## LIBRARY_SYS_LIBS (system libraries needed to build other libraries)
132 ##
133 ##==============================================================================
134
135 LIBRARY_SYS_LIBS = $(COMMON_SYS_LIBS)
136
137 karl 1.1.2.1 ##==============================================================================
138 ##
139 ## OpenSSL Settings
140 ##
141 ## To build for SSL, add PEGASUS_HAS_SSL=1 to environment
142 ##
143 ##==============================================================================
144
145 ifndef OPENSSL_HOME
146 OPENSSL_HOME=/usr/sfw
147 endif
148
149 ifndef OPENSSL_BIN
150 OPENSSL_BIN=/usr/sfw/bin
151 endif
152
153 ifndef OPENSSL_COMMAND
154 OPENSSL_COMMAND=/usr/sfw/bin/openssl
155 endif
156
157 ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
158 karl 1.1.2.1 PEGASUS_ENABLE_SSL_CRL_VERIFICATION=true
159 endif
160
161 ifndef PEGASUS_USE_SSL_RANDOMFILE
162 PEGASUS_USE_SSL_RANDOMFILE=true
163 endif
164
165 ifdef PEGASUS_HAS_SSL
166 FLAGS += -L$(OPENSSL_HOME)/lib
167 endif
168
169 ##==============================================================================
170 ##
171 ## OpenSPL Settings
172 ##
173 ## To build for SSL, add PEGASUS_HAS_SSL=1 to environment
174 ##
175 ##==============================================================================
176
177 ifndef PEGASUS_OPENSLP_HOME
178 PEGASUS_OPENSLP_HOME=/usr
179 karl 1.1.2.1 endif
180
181 ifeq ($(PEGASUS_USE_OPENSLP),true)
182 FLAGS += -L$(PEGASUS_OPENSLP_HOME)/lib
183 endif
|