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

  1 kumpf 1.7 # Configuration options for Pegasus on all architectures running Linux
  2           
  3           include $(ROOT)/mak/config-unix.mak
  4           
  5           PEGASUS_PLATFORM_LINUX_GENERIC_GNU = 1
  6           DEFINES += -DPEGASUS_PLATFORM_LINUX_GENERIC_GNU
  7           DEFINES += -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM)
  8           
  9           OS = linux
 10           
 11           COMPILER = gnu
 12           
 13           PLATFORM_VERSION_SUPPORTED = yes
 14           
 15 konrad.r 1.17 ifndef CXX
 16 kumpf    1.7  CXX = g++
 17 konrad.r 1.17 endif
 18 kumpf    1.7  
 19               SH = sh
 20               
 21               YACC = yacc
 22               
 23               COPY = cp
 24               
 25               MOVE = mv
 26               
 27 konrad.r 1.15 MKDIRHIER = mkdir -p
 28               
 29 kumpf    1.7  PEGASUS_SUPPORTS_DYNLIB = yes
 30               
 31               MAJOR_VERSION_NUMBER = 1
 32               
 33               LIB_SUFFIX = .so.$(MAJOR_VERSION_NUMBER)
 34               
 35 kumpf    1.11 DEFINES += -DPEGASUS_USE_SYSLOGS
 36               
 37 kumpf    1.7  DEFINES += -DPEGASUS_HAS_SIGNALS
 38               
 39               SYS_LIBS = -ldl -lpthread -lcrypt
 40               
 41               ifdef PEGASUS_HAS_SSL
 42                 SYS_LIBS += -lssl
 43               endif
 44               
 45               # Build using fixed release settings
 46               #
 47               ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
 48               FLAGS += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
 49               endif
 50               ifdef PEGASUS_USE_RELEASE_DIRS
 51               FLAGS += -DPEGASUS_USE_RELEASE_DIRS
 52               endif
 53               
 54               # PAM support
 55               ifdef PEGASUS_PAM_AUTHENTICATION
 56                  ifeq ($(HPUX_IA64_VERSION), yes)
 57                     SYS_LIBS += -L$(PAMLIB_HOME) -lpam
 58 kumpf    1.7     else
 59                     SYS_LIBS += -lpam
 60                  endif
 61               
 62               ## The following flags need to be set or unset
 63               ## to compile-in the code required for PAM authentication
 64               ## and compile-out the code that uses the password file.
 65               
 66                DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
 67               
 68               endif
 69               
 70               
 71               ifdef PEGASUS_DEBUG
 72               FLAGS += -g -fPIC -W -Wall -Wno-unused  -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -DPEGASUS_DEBUG
 73               else
 74               FLAGS += -O2 -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT
 75               endif
 76               
 77               ifndef PEGASUS_USE_MU_DEPEND
 78               PEGASUS_HAS_MAKEDEPEND = yes
 79 kumpf    1.7  endif
 80               
 81               ifdef PEGASUS_LOCAL_DOMAIN_SOCKET
 82                FLAGS += -DPEGASUS_LOCAL_DOMAIN_SOCKET
 83               endif
 84               
 85               ifdef USE_CONNECTLOCAL
 86                FLAGS += -DUSE_CONNECTLOCAL
 87               endif
 88               
 89               # l10n
 90               ifdef PEGASUS_HAS_MESSAGES
 91                 DEFINES += -DPEGASUS_HAS_MESSAGES
 92                 ifdef ICU_ROOT
 93               	MSG_COMPILE = genrb
 94               	MSG_FLAGS =
 95               	MSG_SOURCE_EXT = .txt
 96               	MSG_COMPILE_EXT = .res
 97               	CNV_ROOT_CMD = cnv2rootbundle
 98               
 99               ##################################
100 kumpf    1.7  ##
101               ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
102 w.white  1.18 ## default is to uppercase the root resource bundle##
103 kumpf    1.7  ##################################
104               
105               ifdef ICU_NO_UPPERCASE_ROOT
106                 CNV_ROOT_FLAGS = 
107               else
108                 CNV_ROOT_FLAGS = -u
109               endif
110               
111               ####################################
112               ##
113               ##   ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
114               ##   defaults to _en if not set.  if set, for any directory containing resource bundles,
115               ##   there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
116               ##
117               ####################################
118               
119               ifdef ICU_ROOT_BUNDLE_LANG
120                 MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
121               else
122                 MSG_ROOT_SOURCE = _en
123               endif
124 kumpf    1.7  
125                   EXTRA_INCLUDES += -I${ICUROOT}/source/common
126                   DEFINES += -DPEGASUS_HAS_ICU
127                   SYS_LIBS += -licuuc
128                   SYS_LIBS += -licui18n
129                 endif
130               endif
131 konrad.r 1.15 
132               ####################################
133               ##
134               ##   If PEGASUS_LSB is set, set the rest of the variables.
135               ##
136               ####################################
137               
138               ifdef PEGASUS_LSB
139 konrad.r 1.17     SYS_INCLUDES += -I/usr/include -I/usr/include/c++ -I/opt/lsbdev-base/include/c++ -I/opt/lsbdev-base/include/
140 konrad.r 1.15     FLAGS += -DPEGASUS_OS_LSB
141               endif
142               

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2