33 kumpf 1.7 DEFINES += -DPEGASUS_HAS_SIGNALS
34
35 SYS_LIBS = -ldl -lpthread -lcrypt
36
37 ifdef PEGASUS_HAS_SSL
38 SYS_LIBS += -lssl
39 endif
40
41 # Build using fixed release settings
42 #
43 ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
44 FLAGS += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
45 endif
46 ifdef PEGASUS_USE_RELEASE_DIRS
47 FLAGS += -DPEGASUS_USE_RELEASE_DIRS
48 endif
49
50 # PAM support
51 ifdef PEGASUS_PAM_AUTHENTICATION
52 ifeq ($(HPUX_IA64_VERSION), yes)
53 SYS_LIBS += -L$(PAMLIB_HOME) -lpam
54 kumpf 1.7 else
55 SYS_LIBS += -lpam
56 endif
57
58 ## The following flags need to be set or unset
59 ## to compile-in the code required for PAM authentication
60 ## and compile-out the code that uses the password file.
61
62 DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
63
64 endif
65
66
67 ifdef PEGASUS_DEBUG
68 FLAGS += -g -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -DPEGASUS_DEBUG
69 else
70 FLAGS += -O2 -fPIC -W -Wall -Wno-unused -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT
71 endif
72
73 ifdef PEGASUS_HAS_PERFINST
74 FLAGS += -DPEGASUS_HAS_PERFINST
75 kumpf 1.7 endif
76
77 ifndef PEGASUS_USE_MU_DEPEND
78 PEGASUS_HAS_MAKEDEPEND = yes
79 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 kumpf 1.7 MSG_COMPILE_EXT = .res
97 CNV_ROOT_CMD = cnv2rootbundle
98
99 ##################################
100 ##
101 ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
102 ## default is to uppercase the root resource bundle
103 ##
104 ##################################
105
106 ifdef ICU_NO_UPPERCASE_ROOT
107 CNV_ROOT_FLAGS =
108 else
109 CNV_ROOT_FLAGS = -u
110 endif
111
112 ####################################
113 ##
114 ## ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
115 ## defaults to _en if not set. if set, for any directory containing resource bundles,
116 ## there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
117 kumpf 1.7 ##
118 ####################################
119
120 ifdef ICU_ROOT_BUNDLE_LANG
121 MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
122 else
123 MSG_ROOT_SOURCE = _en
124 endif
125
126 EXTRA_INCLUDES += -I${ICUROOT}/source/common
127 DEFINES += -DPEGASUS_HAS_ICU
128 SYS_LIBS += -licuuc
129 SYS_LIBS += -licui18n
130 endif
131 endif
|