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
|