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 w.otsuka 1.29 FLAGS += -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -s -fno-enforce-eh-specs
|
117 karl 1.26 ifdef PEGASUS_OPTIMIZE_FOR_SIZE
118 FLAGS += -Os
119 else
120 FLAGS += -O2
121 endif
|
122 kumpf 1.7 endif
123
124 ifndef PEGASUS_USE_MU_DEPEND
125 PEGASUS_HAS_MAKEDEPEND = yes
126 endif
127
128 # l10n
129 ifdef PEGASUS_HAS_MESSAGES
130 DEFINES += -DPEGASUS_HAS_MESSAGES
131 ifdef ICU_ROOT
|
132 h.sterling 1.34 MSG_COMPILE = genrb
133 MSG_FLAGS =
134 MSG_SOURCE_EXT = .txt
135 MSG_COMPILE_EXT = .res
136 CNV_ROOT_CMD = cnv2rootbundle
|
137 kumpf 1.7
138 ##################################
139 ##
140 ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
|
141 w.white 1.18 ## default is to uppercase the root resource bundle##
|
142 kumpf 1.7 ##################################
143
144 ifdef ICU_NO_UPPERCASE_ROOT
145 CNV_ROOT_FLAGS =
146 else
147 CNV_ROOT_FLAGS = -u
148 endif
149
150 ####################################
151 ##
152 ## ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
153 ## defaults to _en if not set. if set, for any directory containing resource bundles,
154 ## there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
155 ##
156 ####################################
157
158 ifdef ICU_ROOT_BUNDLE_LANG
159 MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
160 else
161 MSG_ROOT_SOURCE = _en
162 endif
163 kumpf 1.7
|
164 ba.patil 1.24 SYS_INCLUDES += -I${ICU_ROOT}/source/common -I${ICU_ROOT}/source/i18n
|
165 kumpf 1.7 DEFINES += -DPEGASUS_HAS_ICU
|
166 h.sterling 1.31 EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib -licuuc -licui18n -licudata
|
167 kumpf 1.7 endif
168 endif
|
169 konrad.r 1.15
170 ####################################
171 ##
172 ## If PEGASUS_LSB is set, set the rest of the variables.
173 ##
174 ####################################
175
176 ifdef PEGASUS_LSB
|
177 konrad.r 1.17 SYS_INCLUDES += -I/usr/include -I/usr/include/c++ -I/opt/lsbdev-base/include/c++ -I/opt/lsbdev-base/include/
|
178 konrad.r 1.15 FLAGS += -DPEGASUS_OS_LSB
179 endif
180
|