1 martin 1.35 #//%2005////////////////////////////////////////////////////////////////////////
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 #//
12 #// Permission is hereby granted, free of charge, to any person obtaining a copy
13 #// of this software and associated documentation files (the "Software"), to
14 #// deal in the Software without restriction, including without limitation the
15 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 #// sell copies of the Software, and to permit persons to whom the Software is
17 #// furnished to do so, subject to the following conditions:
18 #//
19 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 martin 1.35 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #//
28 #//==============================================================================
|
29 kumpf 1.7 # Configuration options for Pegasus on all architectures running Linux
30
31 include $(ROOT)/mak/config-unix.mak
32
33 PEGASUS_PLATFORM_LINUX_GENERIC_GNU = 1
34 DEFINES += -DPEGASUS_PLATFORM_LINUX_GENERIC_GNU
35 DEFINES += -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM)
36
|
37 jim.wunderlich 1.38 #########################################################################
38 ##
39 ## Platform specific compile options controlled by environment variables
40 ## are set here.
41 ##
42 #########################################################################
43
44
45 # Enable OOP by default if preference not already set in the environment
46 #
|
47 jim.wunderlich 1.39 ifndef PEGASUS_DEFAULT_ENABLE_OOP
48 PEGASUS_DEFAULT_ENABLE_OOP = true
|
49 jim.wunderlich 1.38 endif
50
51
|
52 konrad.r 1.27 # Enable CMPI by default.
53 #
54 PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=yes
55
|
56 jim.wunderlich 1.38 #########################################################################
57
|
58 kumpf 1.7 OS = linux
59
60 COMPILER = gnu
61
62 PLATFORM_VERSION_SUPPORTED = yes
63
|
64 konrad.r 1.17 ifndef CXX
|
65 kumpf 1.7 CXX = g++
|
66 konrad.r 1.17 endif
|
67 kumpf 1.7
68 SH = sh
69
|
70 david.dillard 1.30 YACC = bison
|
71 kumpf 1.7
|
72 jim.wunderlich 1.32 RM = rm -f
73
74 DIFF = diff
75
76 SORT = sort
77
|
78 kumpf 1.7 COPY = cp
79
80 MOVE = mv
81
|
82 konrad.r 1.15 MKDIRHIER = mkdir -p
83
|
84 kumpf 1.7 PEGASUS_SUPPORTS_DYNLIB = yes
85
86 MAJOR_VERSION_NUMBER = 1
87
88 LIB_SUFFIX = .so.$(MAJOR_VERSION_NUMBER)
89
|
90 kumpf 1.11 DEFINES += -DPEGASUS_USE_SYSLOGS
91
|
92 kumpf 1.7 DEFINES += -DPEGASUS_HAS_SIGNALS
93
|
94 denise.eckstein 1.23 SYS_LIBS = -ldl -lpthread
|
95 kumpf 1.7
96 # PAM support
97 ifdef PEGASUS_PAM_AUTHENTICATION
98 ifeq ($(HPUX_IA64_VERSION), yes)
99 SYS_LIBS += -L$(PAMLIB_HOME) -lpam
100 else
101 SYS_LIBS += -lpam
102 endif
103
104 ## The following flags need to be set or unset
105 ## to compile-in the code required for PAM authentication
106 ## and compile-out the code that uses the password file.
107
108 DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
109
110 endif
111
112
|
113 aruran.ms 1.36 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS
|
114 w.otsuka 1.29 FLAGS += -g -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT
|
115 kumpf 1.7 else
|
116 denise.eckstein 1.40 FLAGS += -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -s
117 EXTRA_CXX_FLAGS += -fno-enforce-eh-specs
|
118 karl 1.26 ifdef PEGASUS_OPTIMIZE_FOR_SIZE
119 FLAGS += -Os
120 else
121 FLAGS += -O2
122 endif
|
123 kumpf 1.7 endif
124
|
125 w.otsuka 1.41 FLAGS += $(CXX_MACHINE_OPTIONS)
126
|
127 kumpf 1.7 ifndef PEGASUS_USE_MU_DEPEND
128 PEGASUS_HAS_MAKEDEPEND = yes
129 endif
130
131 # l10n
132 ifdef PEGASUS_HAS_MESSAGES
133 DEFINES += -DPEGASUS_HAS_MESSAGES
134 ifdef ICU_ROOT
|
135 h.sterling 1.34 MSG_COMPILE = genrb
136 MSG_FLAGS =
137 MSG_SOURCE_EXT = .txt
138 MSG_COMPILE_EXT = .res
139 CNV_ROOT_CMD = cnv2rootbundle
|
140 kumpf 1.7
141 ##################################
142 ##
143 ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
|
144 w.white 1.18 ## default is to uppercase the root resource bundle##
|
145 kumpf 1.7 ##################################
146
147 ifdef ICU_NO_UPPERCASE_ROOT
148 CNV_ROOT_FLAGS =
149 else
150 CNV_ROOT_FLAGS = -u
151 endif
152
153 ####################################
154 ##
155 ## ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
156 ## defaults to _en if not set. if set, for any directory containing resource bundles,
157 ## there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
158 ##
159 ####################################
160
161 ifdef ICU_ROOT_BUNDLE_LANG
162 MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
163 else
164 MSG_ROOT_SOURCE = _en
165 endif
166 kumpf 1.7
|
167 ba.patil 1.24 SYS_INCLUDES += -I${ICU_ROOT}/source/common -I${ICU_ROOT}/source/i18n
|
168 kumpf 1.7 DEFINES += -DPEGASUS_HAS_ICU
|
169 h.sterling 1.31 EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib -licuuc -licui18n -licudata
|
170 kumpf 1.7 endif
171 endif
|
172 konrad.r 1.15
173 ####################################
174 ##
175 ## If PEGASUS_LSB is set, set the rest of the variables.
176 ##
177 ####################################
178
179 ifdef PEGASUS_LSB
|
180 konrad.r 1.17 SYS_INCLUDES += -I/usr/include -I/usr/include/c++ -I/opt/lsbdev-base/include/c++ -I/opt/lsbdev-base/include/
|
181 konrad.r 1.15 FLAGS += -DPEGASUS_OS_LSB
182 endif
183
|