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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2