(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                      # PAM support
 80                      ifdef PEGASUS_PAM_AUTHENTICATION
 81                         ifeq ($(HPUX_IA64_VERSION), yes)
 82                            SYS_LIBS += -L$(PAMLIB_HOME) -lpam
 83                         else
 84                            SYS_LIBS += -lpam
 85                         endif
 86                      
 87                      ## The following flags need to be set or unset
 88                      ## to compile-in the code required for PAM authentication
 89                      ## and compile-out the code that uses the password file.
 90                      
 91                       DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
 92                      
 93                      endif
 94                      
 95                      
 96 aruran.ms       1.36 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS 
 97 w.otsuka        1.29 FLAGS += -g -fPIC -W -Wall -Wno-unused  -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT
 98 kumpf           1.7  else
 99 w.otsuka        1.29 FLAGS += -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -s -fno-enforce-eh-specs
100 karl            1.26   ifdef PEGASUS_OPTIMIZE_FOR_SIZE
101                          FLAGS += -Os
102                        else
103                          FLAGS += -O2
104                        endif
105 kumpf           1.7  endif
106                      
107                      ifndef PEGASUS_USE_MU_DEPEND
108                      PEGASUS_HAS_MAKEDEPEND = yes
109                      endif
110                      
111                      # l10n
112                      ifdef PEGASUS_HAS_MESSAGES
113                        DEFINES += -DPEGASUS_HAS_MESSAGES
114                        ifdef ICU_ROOT
115 h.sterling      1.34         MSG_COMPILE = genrb
116                              MSG_FLAGS =
117                              MSG_SOURCE_EXT = .txt
118                              MSG_COMPILE_EXT = .res
119                              CNV_ROOT_CMD = cnv2rootbundle
120 kumpf           1.7  
121                      ##################################
122                      ##
123                      ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
124 w.white         1.18 ## default is to uppercase the root resource bundle##
125 kumpf           1.7  ##################################
126                      
127                      ifdef ICU_NO_UPPERCASE_ROOT
128                        CNV_ROOT_FLAGS = 
129                      else
130                        CNV_ROOT_FLAGS = -u
131                      endif
132                      
133                      ####################################
134                      ##
135                      ##   ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
136                      ##   defaults to _en if not set.  if set, for any directory containing resource bundles,
137                      ##   there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
138                      ##
139                      ####################################
140                      
141                      ifdef ICU_ROOT_BUNDLE_LANG
142                        MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
143                      else
144                        MSG_ROOT_SOURCE = _en
145                      endif
146 kumpf           1.7  
147 ba.patil        1.24     SYS_INCLUDES += -I${ICU_ROOT}/source/common -I${ICU_ROOT}/source/i18n
148 kumpf           1.7      DEFINES += -DPEGASUS_HAS_ICU
149 h.sterling      1.31     EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib -licuuc -licui18n -licudata
150 kumpf           1.7    endif
151                      endif
152 konrad.r        1.15 
153                      ####################################
154                      ##
155                      ##   If PEGASUS_LSB is set, set the rest of the variables.
156                      ##
157                      ####################################
158                      
159                      ifdef PEGASUS_LSB
160 konrad.r        1.17     SYS_INCLUDES += -I/usr/include -I/usr/include/c++ -I/opt/lsbdev-base/include/c++ -I/opt/lsbdev-base/include/
161 konrad.r        1.15     FLAGS += -DPEGASUS_OS_LSB
162                      endif
163                      

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2