(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 a.arora  1.19 # These flags are used to support large files on Linux.
 36               #
 37               DEFINES += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U__REDIRECT
 38               
 39 kumpf    1.11 DEFINES += -DPEGASUS_USE_SYSLOGS
 40               
 41 kumpf    1.7  DEFINES += -DPEGASUS_HAS_SIGNALS
 42               
 43               SYS_LIBS = -ldl -lpthread -lcrypt
 44               
 45               ifdef PEGASUS_HAS_SSL
 46                 SYS_LIBS += -lssl
 47               endif
 48               
 49               # Build using fixed release settings
 50               #
 51               ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
 52               FLAGS += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
 53               endif
 54               ifdef PEGASUS_USE_RELEASE_DIRS
 55               FLAGS += -DPEGASUS_USE_RELEASE_DIRS
 56               endif
 57               
 58               # PAM support
 59               ifdef PEGASUS_PAM_AUTHENTICATION
 60                  ifeq ($(HPUX_IA64_VERSION), yes)
 61                     SYS_LIBS += -L$(PAMLIB_HOME) -lpam
 62 kumpf    1.7     else
 63                     SYS_LIBS += -lpam
 64                  endif
 65               
 66               ## The following flags need to be set or unset
 67               ## to compile-in the code required for PAM authentication
 68               ## and compile-out the code that uses the password file.
 69               
 70                DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
 71               
 72               endif
 73               
 74               
 75               ifdef PEGASUS_DEBUG
 76               FLAGS += -g -fPIC -W -Wall -Wno-unused  -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -DPEGASUS_DEBUG
 77               else
 78               FLAGS += -O2 -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT
 79               endif
 80               
 81               ifndef PEGASUS_USE_MU_DEPEND
 82               PEGASUS_HAS_MAKEDEPEND = yes
 83 kumpf    1.7  endif
 84               
 85               ifdef PEGASUS_LOCAL_DOMAIN_SOCKET
 86                FLAGS += -DPEGASUS_LOCAL_DOMAIN_SOCKET
 87               endif
 88               
 89               ifdef USE_CONNECTLOCAL
 90                FLAGS += -DUSE_CONNECTLOCAL
 91               endif
 92               
 93               # l10n
 94               ifdef PEGASUS_HAS_MESSAGES
 95                 DEFINES += -DPEGASUS_HAS_MESSAGES
 96                 ifdef ICU_ROOT
 97               	MSG_COMPILE = genrb
 98               	MSG_FLAGS =
 99               	MSG_SOURCE_EXT = .txt
100               	MSG_COMPILE_EXT = .res
101               	CNV_ROOT_CMD = cnv2rootbundle
102               
103               ##################################
104 kumpf    1.7  ##
105               ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
106 w.white  1.18 ## default is to uppercase the root resource bundle##
107 kumpf    1.7  ##################################
108               
109               ifdef ICU_NO_UPPERCASE_ROOT
110                 CNV_ROOT_FLAGS = 
111               else
112                 CNV_ROOT_FLAGS = -u
113               endif
114               
115               ####################################
116               ##
117               ##   ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
118               ##   defaults to _en if not set.  if set, for any directory containing resource bundles,
119               ##   there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
120               ##
121               ####################################
122               
123               ifdef ICU_ROOT_BUNDLE_LANG
124                 MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
125               else
126                 MSG_ROOT_SOURCE = _en
127               endif
128 kumpf    1.7  
129                   EXTRA_INCLUDES += -I${ICUROOT}/source/common
130                   DEFINES += -DPEGASUS_HAS_ICU
131                   SYS_LIBS += -licuuc
132                   SYS_LIBS += -licui18n
133                 endif
134               endif
135 konrad.r 1.15 
136               ####################################
137               ##
138               ##   If PEGASUS_LSB is set, set the rest of the variables.
139               ##
140               ####################################
141               
142               ifdef PEGASUS_LSB
143 konrad.r 1.17     SYS_INCLUDES += -I/usr/include -I/usr/include/c++ -I/opt/lsbdev-base/include/c++ -I/opt/lsbdev-base/include/
144 konrad.r 1.15     FLAGS += -DPEGASUS_OS_LSB
145               endif
146               

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2