(file) Return to config-linux.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

  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 konrad.r 1.27 # Enable CMPI by default.
 38               #
 39               PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=yes
 40               
 41 kumpf    1.7  OS = linux
 42               
 43               COMPILER = gnu
 44               
 45               PLATFORM_VERSION_SUPPORTED = yes
 46               
 47 konrad.r 1.17 ifndef CXX
 48 kumpf    1.7  CXX = g++
 49 konrad.r 1.17 endif
 50 kumpf    1.7  
 51               SH = sh
 52               
 53 david.dillard 1.30 YACC = bison
 54 kumpf         1.7  
 55 jim.wunderlich 1.32 RM = rm -f
 56                     
 57                     DIFF = diff
 58                     
 59                     SORT = sort
 60                     
 61 kumpf          1.7  COPY = cp
 62                     
 63                     MOVE = mv
 64                     
 65 konrad.r       1.15 MKDIRHIER = mkdir -p
 66                     
 67 kumpf          1.7  PEGASUS_SUPPORTS_DYNLIB = yes
 68                     
 69                     MAJOR_VERSION_NUMBER = 1
 70                     
 71                     LIB_SUFFIX = .so.$(MAJOR_VERSION_NUMBER)
 72                     
 73 kumpf          1.11 DEFINES += -DPEGASUS_USE_SYSLOGS
 74                     
 75 kumpf          1.7  DEFINES += -DPEGASUS_HAS_SIGNALS
 76                     
 77 denise.eckstein 1.23 SYS_LIBS = -ldl -lpthread
 78 kumpf           1.7  
 79                      # Build using fixed release settings
 80                      #
 81                      ifdef PEGASUS_USE_RELEASE_DIRS
 82 w.otsuka        1.22   PEGASUS_DEST_LIB_DIR=/opt/tog-pegasus/lib
 83 kumpf           1.7  endif
 84                      
 85                      # PAM support
 86                      ifdef PEGASUS_PAM_AUTHENTICATION
 87                         ifeq ($(HPUX_IA64_VERSION), yes)
 88                            SYS_LIBS += -L$(PAMLIB_HOME) -lpam
 89                         else
 90                            SYS_LIBS += -lpam
 91                         endif
 92                      
 93                      ## The following flags need to be set or unset
 94                      ## to compile-in the code required for PAM authentication
 95                      ## and compile-out the code that uses the password file.
 96                      
 97                       DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
 98                      
 99                      endif
100                      
101                      
102 aruran.ms       1.36 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS 
103 w.otsuka        1.29 FLAGS += -g -fPIC -W -Wall -Wno-unused  -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT
104 kumpf           1.7  else
105 w.otsuka        1.29 FLAGS += -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -s -fno-enforce-eh-specs
106 karl            1.26   ifdef PEGASUS_OPTIMIZE_FOR_SIZE
107                          FLAGS += -Os
108                        else
109                          FLAGS += -O2
110                        endif
111 kumpf           1.7  endif
112                      
113                      ifndef PEGASUS_USE_MU_DEPEND
114                      PEGASUS_HAS_MAKEDEPEND = yes
115                      endif
116                      
117                      # l10n
118                      ifdef PEGASUS_HAS_MESSAGES
119                        DEFINES += -DPEGASUS_HAS_MESSAGES
120                        ifdef ICU_ROOT
121 h.sterling      1.34         MSG_COMPILE = genrb
122                              MSG_FLAGS =
123                              MSG_SOURCE_EXT = .txt
124                              MSG_COMPILE_EXT = .res
125                              CNV_ROOT_CMD = cnv2rootbundle
126 kumpf           1.7  
127                      ##################################
128                      ##
129                      ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
130 w.white         1.18 ## default is to uppercase the root resource bundle##
131 kumpf           1.7  ##################################
132                      
133                      ifdef ICU_NO_UPPERCASE_ROOT
134                        CNV_ROOT_FLAGS = 
135                      else
136                        CNV_ROOT_FLAGS = -u
137                      endif
138                      
139                      ####################################
140                      ##
141                      ##   ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
142                      ##   defaults to _en if not set.  if set, for any directory containing resource bundles,
143                      ##   there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
144                      ##
145                      ####################################
146                      
147                      ifdef ICU_ROOT_BUNDLE_LANG
148                        MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
149                      else
150                        MSG_ROOT_SOURCE = _en
151                      endif
152 kumpf           1.7  
153 ba.patil        1.24     SYS_INCLUDES += -I${ICU_ROOT}/source/common -I${ICU_ROOT}/source/i18n
154 kumpf           1.7      DEFINES += -DPEGASUS_HAS_ICU
155 h.sterling      1.31     EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib -licuuc -licui18n -licudata
156 kumpf           1.7    endif
157                      endif
158 konrad.r        1.15 
159                      ####################################
160                      ##
161                      ##   If PEGASUS_LSB is set, set the rest of the variables.
162                      ##
163                      ####################################
164                      
165                      ifdef PEGASUS_LSB
166 konrad.r        1.17     SYS_INCLUDES += -I/usr/include -I/usr/include/c++ -I/opt/lsbdev-base/include/c++ -I/opt/lsbdev-base/include/
167 konrad.r        1.15     FLAGS += -DPEGASUS_OS_LSB
168                      endif
169                      

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2