]> granicus.if.org Git - apache/blob - modules/proxy/NWGNUproxy
Fix format string warnings in proxy_ajp on 64-bit platforms:
[apache] / modules / proxy / NWGNUproxy
1 #
2 # Make sure all needed macro's are defined
3 #
4
5 #
6 # Get the 'head' of the build environment if necessary.  This includes default
7 # targets and paths to tools
8 #
9
10 ifndef EnvironmentDefined
11 include $(AP_WORK)\build\NWGNUhead.inc
12 endif
13
14 #
15 # These directories will be at the beginning of the include list, followed by
16 # INCDIRS
17 #
18 XINCDIRS        += \
19                         $(AP_WORK)/include \
20                         $(NWOS) \
21                         $(AP_WORK)/modules/http \
22                         $(AP_WORK)/modules/arch/netware \
23                         $(AP_WORK)/modules/ssl \
24                         $(AP_WORK)/modules/generators \
25                         $(AP_WORK)/srclib/apr/include \
26                         $(AP_WORK)/srclib/apr-util/include \
27                         $(AP_WORK)/srclib/apr \
28                         $(EOLIST)
29
30 #
31 # These flags will come after CFLAGS
32 #
33 XCFLAGS         += \
34                         -prefix pre_nw.h \
35                         $(EOLIST)
36
37 #
38 # These defines will come after DEFINES
39 #
40 XDEFINES        += \
41                         $(EOLIST)
42
43 #
44 # These flags will be added to the link.opt file
45 #
46 XLFLAGS         += \
47                         $(EOLIST)
48
49 #
50 # These values will be appended to the correct variables based on the value of
51 # RELEASE
52 #
53 ifeq "$(RELEASE)" "debug"
54 XINCDIRS        += \
55                         $(EOLIST)
56
57 XCFLAGS         += \
58                         $(EOLIST)
59
60 XDEFINES        += \
61                         $(EOLIST)
62
63 XLFLAGS         += \
64                         $(EOLIST)
65 endif
66
67 ifeq "$(RELEASE)" "noopt"
68 XINCDIRS        += \
69                         $(EOLIST)
70
71 XCFLAGS         += \
72                         $(EOLIST)
73
74 XDEFINES        += \
75                         $(EOLIST)
76
77 XLFLAGS         += \
78                         $(EOLIST)
79 endif
80
81 ifeq "$(RELEASE)" "release"
82 XINCDIRS        += \
83                         $(EOLIST)
84
85 XCFLAGS         += \
86                         $(EOLIST)
87
88 XDEFINES        += \
89                         $(EOLIST)
90
91 XLFLAGS         += \
92                         $(EOLIST)
93 endif
94
95 #
96 # These are used by the link target if an NLM is being generated
97 # This is used by the link 'name' directive to name the nlm.  If left blank
98 # TARGET_nlm (see below) will be used.
99 #
100 NLM_NAME                = proxy
101
102 #
103 # This is used by the link '-desc ' directive. 
104 # If left blank, NLM_NAME will be used.
105 #
106 NLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Module
107
108 #
109 # This is used by the '-threadname' directive.  If left blank,
110 # NLM_NAME Thread will be used.
111 #
112 NLM_THREAD_NAME = Proxy Module
113
114 #
115 # If this is specified, it will override VERSION value in 
116 # $(AP_WORK)\build\NWGNUenvironment.inc
117 #
118 NLM_VERSION             =
119
120 #
121 # If this is specified, it will override the default of 64K
122 #
123 NLM_STACK_SIZE  = 8192
124
125
126 #
127 # If this is specified it will be used by the link '-entry' directive
128 #
129 NLM_ENTRY_SYM   = _LibCPrelude
130
131 #
132 # If this is specified it will be used by the link '-exit' directive
133 #
134 NLM_EXIT_SYM    = _LibCPostlude
135
136 #
137 # If this is specified it will be used by the link '-check' directive
138 #
139 NLM_CHECK_SYM   =
140
141 #
142 # If these are specified it will be used by the link '-flags' directive
143 #
144 NLM_FLAGS               =  AUTOUNLOAD, PSEUDOPREEMPTION
145
146 #
147 # If this is specified it will be linked in with the XDCData option in the def 
148 # file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
149 # by setting APACHE_UNIPROC in the environment
150 #
151 XDCDATA         = 
152
153 #
154 # If there is an NLM target, put it here
155 #
156 TARGET_nlm = \
157         $(OBJDIR)/proxy.nlm \
158         $(EOLIST)
159
160 #
161 # If there is an LIB target, put it here
162 #
163 TARGET_lib = \
164         $(EOLIST)
165
166 #
167 # These are the OBJ files needed to create the NLM target above.
168 # Paths must all use the '/' character
169 #
170 FILES_nlm_objs = \
171         $(OBJDIR)/mod_proxy.o \
172         $(OBJDIR)/proxy_util.o \
173         $(OBJDIR)/libprews.o \
174         $(EOLIST)
175
176 #
177 # These are the LIB files needed to create the NLM target above.
178 # These will be added as a library command in the link.opt file.
179 #
180 FILES_nlm_libs = \
181         libcpre.o \
182         $(EOLIST)
183
184 #
185 # These are the modules that the above NLM target depends on to load.
186 # These will be added as a module command in the link.opt file.
187 #
188 FILES_nlm_modules = \
189         aprlib \
190         libc \
191         $(EOLIST)
192
193 #
194 # If the nlm has a msg file, put it's path here
195 #
196 FILE_nlm_msg =
197  
198 #
199 # If the nlm has a hlp file put it's path here
200 #
201 FILE_nlm_hlp =
202
203 #
204 # If this is specified, it will override $(NWOS)\copyright.txt.
205 #
206 FILE_nlm_copyright =
207
208 #
209 # Any additional imports go here
210 #
211 FILES_nlm_Ximports = \
212         @$(APR)/aprlib.imp \
213         @$(NWOS)/httpd.imp \
214         @libc.imp \
215         @ws2nlm.imp \
216         $(EOLIST)
217  
218 #   
219 # Any symbols exported to here
220 #
221 FILES_nlm_exports = \
222         proxy_module \
223         proxy_hook_scheme_handler \
224         proxy_hook_canon_handler \
225         proxy_hook_pre_request \
226         proxy_hook_post_request \
227         ap_proxy_ssl_enable \
228         ap_proxy_ssl_disable \
229         proxy_run_fixups \
230         $(EOLIST)
231         
232 #   
233 # These are the OBJ files needed to create the LIB target above.
234 # Paths must all use the '/' character
235 #
236 FILES_lib_objs = \
237                 $(EOLIST)
238
239 #
240 # implement targets and dependancies (leave this section alone)
241 #
242
243 libs :: $(OBJDIR) $(TARGET_lib)
244
245 nlms :: libs $(TARGET_nlm)
246
247 #
248 # Updated this target to create necessary directories and copy files to the 
249 # correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
250 #
251 install :: nlms FORCE
252
253 #
254 # Any specialized rules here
255 #
256
257 vpath %.c ../arch/netware
258
259 #
260 # Include the 'tail' makefile that has targets that depend on variables defined
261 # in this makefile
262 #
263
264 include $(AP_WORK)\build\NWGNUtail.inc
265