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