1 martin 1.49 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.50 #//
|
3 martin 1.49 #// 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 martin 1.50 #//
|
10 martin 1.49 #// 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 martin 1.50 #//
|
17 martin 1.49 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.50 #//
|
20 martin 1.49 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.50 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.49 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// 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 martin 1.50 #//
|
28 martin 1.49 #//////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.7 MAJOR_VERSION_NUMBER = 1
|
30 kumpf 1.1
31 OS = HPUX
32
33 ifdef ACC_COMPILER_COMMAND
34 CXX = $(ACC_COMPILER_COMMAND)
35 else
36 CXX = aCC
37 endif
38
|
39 denise.eckstein 1.26 CC = $(CXX) -Ae
40
|
41 kumpf 1.1 COMPILER = acc
42
43 PLATFORM_VERSION_SUPPORTED = yes
44
45 SYS_INCLUDES =
46
47 ifdef PEGASUS_CCOVER
48 SYS_INCLUDES += -I/opt/ccover11/include
49 endif
50
51 ifdef PEGASUS_PURIFY
52 SYS_INCLUDES += -I$(PURIFY_HOME)
53 endif
54
|
55 jim.wunderlich 1.41 #########################################################################
56 ##
57 ## Platform specific compile options controlled by environment variables
58 ## are set here.
59 ##
60 #########################################################################
61
62 # Enable OOP by default if preference not already set in the environment
63 #
|
64 jim.wunderlich 1.42 ifndef PEGASUS_DEFAULT_ENABLE_OOP
65 PEGASUS_DEFAULT_ENABLE_OOP = true
|
66 jim.wunderlich 1.41 endif
67
68
69
70 #########################################################################
71
|
72 kumpf 1.40 DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -DPEGASUS_PLATFORM_HPUX_ACC
|
73 kumpf 1.1
|
74 david 1.10 DEFINES += -DPEGASUS_USE_SYSLOGS
75
|
76 kumpf 1.17 ifdef PEGASUS_USE_EMANATE
|
77 kumpf 1.1 DEFINES += -DHPUX_EMANATE
78 endif
79
80 ifdef PEGASUS_CCOVER
81 DEFINES += -DPEGASUS_CCOVER
82 endif
83
84 ifdef PEGASUS_PURIFY
85 DEFINES += -DPEGASUS_PURIFY
86 endif
87
88 DEPEND_INCLUDES =
89
90
91 ## Flags:
92 ## +Z - produces position independent code (PIC).
93 ## +DAportable generates code for any HP9000 architecture
94 ## -Wl, passes the following option to the linker
95 ## +s causes the linked image or shared lib to be able to
96 ## search for any referenced shared libs dynamically in
97 ## SHLIB_PATH (LD_LIBRARY_PATH on 64-bit HP9000)
98 kumpf 1.1 ## +b enables dynamic search in the specified directory(ies)
99 ##
100
101 FLAGS =
102
|
103 denise.eckstein 1.24 PEGASUS_SUPPORTS_DYNLIB=yes
104
105 ifdef PEGASUS_USE_RELEASE_DIRS
|
106 denise.eckstein 1.27 FLAGS += -Wl,+b$(PEGASUS_DEST_LIB_DIR):/usr/lib
107 ifeq ($(PEGASUS_PLATFORM), HPUX_PARISC_ACC)
108 FLAGS += -Wl,+cdp,$(PEGASUS_PLATFORM_SDKROOT)/usr/lib:/usr/lib -Wl,+cdp,$(PEGASUS_HOME)/lib:$(PEGASUS_DEST_LIB_DIR)
|
109 mateus.baur 1.44 ifdef OPENSSL_HOME
110 FLAGS += -Wl,+cdp,$(OPENSSL_HOME)/lib:/usr/lib
111 endif
112 ifdef ICU_INSTALL
113 FLAGS += -Wl,+cdp,$(ICU_INSTALL)/lib:$(PEGASUS_DEST_LIB_DIR)
114 endif
|
115 denise.eckstein 1.27 endif
|
116 denise.eckstein 1.24 else
117 ifdef PEGASUS_HAS_MESSAGES
|
118 kumpf 1.46 ifdef ICU_INSTALL
119 FLAGS += -Wl,+b$(LIB_DIR):/usr/lib:${ICU_INSTALL}/lib
|
120 kumpf 1.20 endif
|
121 denise.eckstein 1.24 else
|
122 denise.eckstein 1.27 FLAGS += -Wl,+b$(LIB_DIR):/usr/lib
|
123 kumpf 1.16 endif
|
124 kumpf 1.1 endif
125
|
126 denise.eckstein 1.28 FLAGS += -Wl,+s
127
|
128 aruran.ms 1.39 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS
|
129 kumpf 1.1 FLAGS += -g
|
130 kumpf 1.38 else
131 FLAGS += +O2 -s
|
132 kumpf 1.1 endif
133
|
134 w.otsuka 1.25 ifdef PEGASUS_USE_RELEASE_DIRS
135 PEGASUS_DEST_LIB_DIR=/opt/wbem/lib
136 endif
137
|
138 kumpf 1.21 #
139 # For future use on HP-UX
140 #
141 ifdef HPUX_LARGE_INTERFACES
|
142 h.sterling 1.36 FLAGS += -D_HPUX_API_LEVEL=20040821
|
143 kumpf 1.21 endif
144
|
145 kumpf 1.1 SYS_LIBS = -lpthread -lrt
146
147 SH = sh
148
149 YACC = bison
150
|
151 jim.wunderlich 1.32 RM = rm -f
152
153 DIFF = diff
154
155 SORT = sort
156
|
157 kumpf 1.1 COPY = cp
158
159 MOVE = mv
160
161 LIB_SUFFIX = .$(MAJOR_VERSION_NUMBER)
|