1 karl 1.20 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.12 #//
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 karl 1.20 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.12 #//
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 #// 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 keith.petley 1.1 include $(ROOT)/mak/config-unix.mak
32
33 OS = solaris
34
35 ARCHITECTURE = sparc
36
37 COMPILER = CC
38
|
39 david.dillard 1.13 CC = cc
|
40 david.dillard 1.11
|
41 david.dillard 1.13 #
42 # This is a hack because the Pegasus build system doesn't have a way to specify
43 # flags just for the C compiler or just for the C++ compiler.
44 #
45 CXX = CC -pto
|
46 david.dillard 1.7
47 SH = sh
48
49 YACC = yacc
50
|
51 jim.wunderlich 1.10 RM = rm -f
52
53 DIFF = diff
54
55 SORT = sort
56
|
57 david.dillard 1.7 COPY = cp
58
59 MOVE = mv
60
61 LIB_SUFFIX = .so
62
63 PEGASUS_SUPPORTS_DYNLIB = yes
64
|
65 keith.petley 1.1 SYS_INCLUDES =
66
67 DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -D_POSIX_PTHREAD_SEMANTICS
68
69 DEFINES += -DPEGASUS_OS_SOLARIS
70
71 DEFINES += -DPEGASUS_SNIA_INTEROP_TEST
72
|
73 tony 1.5 DEFINES += -DPEGASUS_HAS_SIGNALS
74
|
75 david.dillard 1.14 #
76 # This is needed for SPARC. It shouldn't be needed for x86
77 # or x86-64 if a port is ever done for Solaris on those
78 # platforms.
79 #
80 DEFINES += -DTYPE_CONV
81
|
82 keith.petley 1.1 # "READBUG" forces fstream.read to read 1 char at a time to
83 # overcome a bug in Wshop 6.2
84 # There are patches for this now.
85 #
86 # DEFINES += -DPEGASUS_OS_SOLARIS_READBUG
87
88 SUNOS_VERSION = $(shell uname -r)
89
|
90 jim.wunderlich 1.17
91 # Pegasus requires the kernel LWP thread model.
92 # It doesn't exist on SunOS 5.6 or 5.7 so thery are no longer supported.
93 #
|
94 keith.petley 1.1 ifeq ($(SUNOS_VERSION), 5.6)
95 DEFINES += -DSUNOS_5_6
|
96 jim.wunderlich 1.17 $(error SunOS version 5.6 is not supportted)
97 endif
98
99 # Pegasus requires the kernel LWP thread model.
100 # It doesn't exist on SunOS 5.6 or 5.7 so thery are no longer supported.
101 #
102 ifeq ($(SUNOS_VERSION), 5.7)
103 DEFINES += -DSUNOS_5_7
104 $(error SunOS version 5.7 is not supportted)
105 endif
106
107 ifeq ($(SUNOS_VERSION), 5.8)
108 DEFINES += -DSUNOS_5_8
|
109 keith.petley 1.1 endif
110
|
111 aruran.ms 1.15 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS
|
112 david.dillard 1.13 FLAGS = -g -KPIC -mt -xs -xildoff
|
113 keith.petley 1.1 else
|
114 jim.wunderlich 1.16 FLAGS = -O4 -KPIC -mt -xildoff -s -xipo=1
|
115 keith.petley 1.1 endif
116
|
117 mike 1.18 # Need warnings:
|
118 mike 1.19 FLAGS += +w
|
119 mike 1.18
120 ##==============================================================================
121 ##
122 ## COMMON_SYS_LIBS
123 ##
124 ## Build the common list of libraries used in linking both libraries and
125 ## programs.
126 ##
127 ##==============================================================================
128
129 COMMON_SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet
|
130 keith.petley 1.1
131 ifeq ($(SUNOS_VERSION), 5.6)
|
132 mike 1.18 COMMON_SYS_LIBS += -lposix4
|
133 keith.petley 1.1 else
|
134 mike 1.18 COMMON_SYS_LIBS += -lrt
|
135 keith.petley 1.1 endif
136
|
137 jim.wunderlich 1.17 # on SunOS 5.8 use the alternate (kernel LWP) thread model that is standard on
138 # SunOS 5.9 and 5.10
139 #
140 ifeq ($(SUNOS_VERSION), 5.8)
|
141 mike 1.18 COMMON_SYS_LIBS += -R /usr/lib/lwp
|
142 jim.wunderlich 1.17 endif
143
|
144 mike 1.18 ##==============================================================================
145 ##
146 ## SYS_LIBS (system libraries needed to build programs)
147 ##
148 ##==============================================================================
149 SYS_LIBS = $(COMMON_SYS_LIBS) $(EXTRA_LIBRARIES)
150
151 ##==============================================================================
152 ##
153 ## LIBRARY_SYS_LIBS (system libraries needed to build other libraries)
154 ##
155 ##==============================================================================
156 LIBRARY_SYS_LIBS = $(COMMON_SYS_LIBS)
|
157 jim.wunderlich 1.17
|