]> granicus.if.org Git - apache/blob - NWGNUmakefile
Fix htdbm password validation for records which included comments.
[apache] / NWGNUmakefile
1 #
2 # Declare the sub-directories to be built here
3 #
4
5 SUBDIRS = \
6         $(APR_WORK) \
7         build \
8         support \
9         modules \
10         $(EOLIST) 
11
12 #
13 # Get the 'head' of the build environment.  This includes default targets and
14 # paths to tools
15 #
16
17 include $(AP_WORK)\build\NWGNUhead.inc
18
19 #
20 # build this level's files
21
22 #
23 # Make sure all needed macro's are defined
24 #
25
26 #
27 # These directories will be at the beginning of the include list, followed by
28 # INCDIRS
29 #
30 XINCDIRS        += \
31                         $(APR)/include \
32                         $(APRUTIL)/include \
33                         $(AP_WORK)/include \
34                         $(AP_WORK)/modules/filters/ \
35                         $(AP_WORK)/modules/generators/ \
36                         $(AP_WORK)/modules/http/ \
37                         $(AP_WORK)/modules/loggers/ \
38                         $(AP_WORK)/modules/mappers/ \
39                         $(AP_WORK)/modules/proxy/ \
40                         $(AP_WORK)/os/NetWare \
41                         $(AP_WORK)/server/mpm/NetWare \
42                         $(AP_WORK)/srclib/pcre \
43                         $(NWOS) \
44                         $(EOLIST)
45
46 #
47 # These flags will come after CFLAGS
48 #
49 XCFLAGS         += \
50                         $(EOLIST)
51
52 #
53 # These defines will come after DEFINES
54 #
55 XDEFINES        += \
56                         $(EOLIST)
57
58 #
59 # These flags will be added to the link.opt file
60 #
61 XLFLAGS         += \
62                         $(EOLIST)
63
64 #
65 # These values will be appended to the correct variables based on the value of
66 # RELEASE
67 #
68 ifeq "$(RELEASE)" "debug"
69 XINCDIRS        += \
70                         $(EOLIST)
71
72 XCFLAGS         += \
73                         $(EOLIST)
74
75 XDEFINES        += \
76                         $(EOLIST)
77
78 XLFLAGS         += \
79                         $(EOLIST)
80 endif
81
82 ifeq "$(RELEASE)" "noopt"
83 XINCDIRS        += \
84                         $(EOLIST)
85
86 XCFLAGS         += \
87                         $(EOLIST)
88
89 XDEFINES        += \
90                         $(EOLIST)
91
92 XLFLAGS         += \
93                         $(EOLIST)
94 endif
95
96 ifeq "$(RELEASE)" "release"
97 XINCDIRS        += \
98                         $(EOLIST)
99
100 XCFLAGS         += \
101                         $(EOLIST)
102
103 XDEFINES        += \
104                         $(EOLIST)
105
106 XLFLAGS         += \
107                         $(EOLIST)
108 endif
109
110 #
111 # These are used by the link target if an NLM is being generated
112 # This is used by the link 'name' directive to name the nlm.  If left blank
113 # TARGET_nlm (see below) will be used.
114 #
115 NLM_NAME                = Apache2
116
117 #
118 # This is used by the link '-desc ' directive. 
119 # If left blank, NLM_NAME will be used.
120 #
121 NLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
122
123 #
124 # This is used by the '-threadname' directive.  If left blank,
125 # NLM_NAME Thread will be used.
126 #
127 NLM_THREAD_NAME = Apache
128
129 #
130 # This is used by the '-screenname' directive.  If left blank,
131 # 'Apache for NetWare' Thread will be used.
132 #
133 NLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
134
135
136 #
137 # If this is specified, it will override VERSION value in 
138 # $(AP_WORK)\build\NWGNUenvironment.inc
139 #
140 NLM_VERSION             =
141
142 #
143 # If this is specified, it will override the default of 64K
144 #
145 NLM_STACK_SIZE  = 65536
146  
147
148 #
149 # If this is specified it will be used by the link '-entry' directive
150 #
151 NLM_ENTRY_SYM   = _LibCPrelude
152
153 #
154 # If this is specified it will be used by the link '-exit' directive
155 #
156 NLM_EXIT_SYM    = _LibCPostlude
157
158 #
159 # If this is specified it will be used by the link '-check' directive
160 #
161 NLM_CHECK_SYM   = _LibCCheckUnload
162
163 #
164 # If these are specified it will be used by the link '-flags' directive
165 #
166 NLM_FLAGS               =  PSEUDOPREEMPTION
167
168 #
169 # If this is specified it will be linked in with the XDCData option in the def 
170 # file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
171 # by setting APACHE_UNIPROC in the environment
172 #
173 XDCDATA         = 
174
175 #
176 # If there is an NLM target, put it here
177 #
178 TARGET_nlm = \
179         $(OBJDIR)/Apache2.nlm \
180         $(EOLIST)
181
182 #
183 # If there is an LIB target, put it here
184 #
185 TARGET_lib = \
186         $(EOLIST)
187
188 #
189 # These are the OBJ files needed to create the NLM target above.
190 # Paths must all use the '/' character
191 #
192 FILES_nlm_objs = \
193         $(OBJDIR)/buildmark.o \
194         $(OBJDIR)/config.o \
195         $(OBJDIR)/connection.o \
196         $(OBJDIR)/core.o \
197         $(OBJDIR)/core_filters.o \
198         $(OBJDIR)/eoc_bucket.o \
199         $(OBJDIR)/error_bucket.o \
200         $(OBJDIR)/http_core.o \
201         $(OBJDIR)/http_protocol.o \
202         $(OBJDIR)/http_request.o \
203         $(OBJDIR)/byterange_filter.o \
204         $(OBJDIR)/chunk_filter.o \
205         $(OBJDIR)/http_etag.o \
206         $(OBJDIR)/http_filters.o \
207         $(OBJDIR)/listen.o \
208         $(OBJDIR)/log.o \
209         $(OBJDIR)/main.o \
210         $(OBJDIR)/mod_authz_host.o \
211         $(OBJDIR)/mod_alias.o \
212         $(OBJDIR)/mod_dir.o \
213         $(OBJDIR)/mod_env.o \
214         $(OBJDIR)/mod_include.o \
215         $(OBJDIR)/mod_log_config.o \
216         $(OBJDIR)/mod_mime.o \
217         $(OBJDIR)/mod_negotiation.o \
218         $(OBJDIR)/mod_netware.o \
219         $(OBJDIR)/mod_setenvif.o \
220         $(OBJDIR)/mod_so.o \
221         $(OBJDIR)/modules.o \
222         $(OBJDIR)/mpm_common.o \
223         $(OBJDIR)/mpm_netware.o \
224         $(OBJDIR)/pcre.o \
225         $(OBJDIR)/protocol.o \
226         $(OBJDIR)/provider.o \
227         $(OBJDIR)/request.o \
228         $(OBJDIR)/scoreboard.o \
229         $(OBJDIR)/util.o \
230         $(OBJDIR)/util_cfgtree.o \
231         $(OBJDIR)/util_charset.o \
232         $(OBJDIR)/util_debug.o \
233         $(OBJDIR)/util_filter.o \
234         $(OBJDIR)/util_md5.o \
235         $(OBJDIR)/util_nw.o \
236         $(OBJDIR)/util_pcre.o \
237         $(OBJDIR)/util_script.o \
238         $(OBJDIR)/util_time.o \
239         $(OBJDIR)/util_xml.o \
240         $(OBJDIR)/vhost.o \
241         $(EOLIST)
242
243 # Build in mod_nw_ssl if Winsock is being used
244 ifndef USE_STDSOCKETS
245 FILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
246                $(EOLIST)
247 endif
248
249 #
250 # These are the LIB files needed to create the NLM target above.
251 # These will be added as a library command in the link.opt file.
252 #
253 FILES_nlm_libs = \
254         libcpre.o \
255         $(EOLIST)
256
257 #
258 # These are the modules that the above NLM target depends on to load.
259 # These will be added as a module command in the link.opt file.
260 #
261 FILES_nlm_modules = \
262         aprlib \
263         Libc \
264         $(EOLIST)
265
266 #
267 # If the nlm has a msg file, put it's path here
268 #
269 FILE_nlm_msg =
270  
271 #
272 # If the nlm has a hlp file put it's path here
273 #
274 FILE_nlm_hlp =
275
276 #
277 # If this is specified, it will override $(NWOS)\copyright.txt.
278 #
279 FILE_nlm_copyright =
280
281 #
282 # Any additional imports go here
283 #
284 FILES_nlm_Ximports = \
285         @netware.imp \
286         @$(APR)/aprlib.imp \
287         @libc.imp \
288         GetCurrentAddressSpace \
289         $(EOLIST)
290
291 # Don't link with Winsock if standard sockets are being used
292 ifndef USE_STDSOCKETS
293 FILES_nlm_Ximports += @ws2nlm.imp \
294                $(EOLIST)
295 endif
296  
297 #   
298 # Any symbols exported to here
299 #
300 FILES_nlm_exports = \
301         @$(NWOS)/httpd.imp \
302         $(EOLIST)
303         
304 #   
305 # These are the OBJ files needed to create the LIB target above.
306 # Paths must all use the '/' character
307 #
308 FILES_lib_objs = \
309                 $(EOLIST)
310
311 #
312 # implement targets and dependancies (leave this section alone)
313 #
314
315 libs :: $(OBJDIR) $(TARGET_lib)
316
317 nlms :: libs $(TARGET_nlm)
318
319 #
320 # Updated this target to create necessary directories and copy files to the 
321 # correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
322 #
323 install :: nlms FORCE
324         -copy $(OBJDIR)\Apache2.nlm     $(INSTALL)\Apache2\*.*
325         -copy ABOUT_APACHE              $(INSTALL)\Apache2\*.*
326         -copy README                    $(INSTALL)\Apache2\*.*
327         -copy STATUS                    $(INSTALL)\Apache2\*.*
328         -copy LICENSE                   $(INSTALL)\Apache2\*.*
329         -copy CHANGES                   $(INSTALL)\Apache2\*.*
330         -copy support\dbmmanage.in      $(INSTALL)\Apache2\bin\dbmmanage.pl
331         -copy support\logresolve.pl.in  $(INSTALL)\Apache2\bin\logresolve.pl
332 ifdef USE_STDSOCKETS    
333         -awk  -f build\mkconfnw.awk docs\conf\httpd.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
334 else
335         -awk  -v SSL=1 -f build\mkconfnw.awk docs\conf\httpd.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
336 endif   
337         $(CHKNOT) $(INSTALL)\Apache2\conf\extra\nul mkdir $(INSTALL)\Apache2\conf\extra
338         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-autoindex.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-autoindex.conf
339         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-dav.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-dav.conf
340         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-default.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-default.conf
341         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-info.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-info.conf
342         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-languages.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-languages.conf
343         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-manual.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-manual.conf
344         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-mpm.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-mpm.conf
345         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-multilang-errordoc.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-multilang-errordoc.conf
346         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-ssl.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-ssl.conf
347         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-userdir.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-userdir.conf
348         -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-vhosts.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-vhosts.conf
349         -copy docs\conf\magic           $(INSTALL)\Apache2\conf\magic
350         -copy docs\conf\mime.types      $(INSTALL)\Apache2\conf\mime.types
351         -copy docs\conf\charset.conv    $(INSTALL)\Apache2\conf\charset.conv
352         -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
353         @echo rem copying the docs directories > xc.bat
354         @echo xcopy docs\error $(INSTALL)\Apache2\error $(XCOPYSW) >> xc.bat
355         @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs $(XCOPYSW) >> xc.bat
356         @echo xcopy docs\icons $(INSTALL)\Apache2\icons $(XCOPYSW) >> xc.bat
357         @echo xcopy docs\man $(INSTALL)\Apache2\man $(XCOPYSW) >> xc.bat
358         @echo xcopy docs\manual $(INSTALL)\Apache2\manual $(XCOPYSW) >> xc.bat
359         $(CMD) xc.bat
360         $(DEL) xc.bat
361
362
363     
364 installdev :: FORCE
365         -copy $(subst /,\,$(AP_WORK))\include\*.h           $(INSTALL)\Apache2\include\*.*
366         -copy $(subst /,\,$(AP_WORK))\os\netware\*.h        $(INSTALL)\Apache2\include\*.*
367         -copy $(subst /,\,$(NWOS))\*.imp                    $(INSTALL)\Apache2\lib\*.*
368         -copy $(subst /,\,$(APR))\include\*.h               $(INSTALL)\Apache2\include\*.*
369         -copy $(subst /,\,$(APRUTIL))\include\*.h           $(INSTALL)\Apache2\include\*.*
370         -copy $(subst /,\,$(APR))\*.imp                     $(INSTALL)\Apache2\lib\*.*
371         -copy $(subst /,\,$(NWOS))\*.xdc                    $(INSTALL)\Apache2\lib\*.*
372     
373 prebuild :: FORCE
374         $(MAKE) -C server -f NWGNUMakefile
375         $(MAKE) -C srclib/pcre -f NWGNUMakefile
376         $(MAKE) -C $(APU_WORK)/uri -f NWGNUMakefile
377         $(CHKNOT) $(PREBUILD_INST)\nul          mkdir $(PREBUILD_INST)
378         -copy $(AP_WORK)\server\$(OBJDIR)\*.nlm $(PREBUILD_INST)\*.*
379         -copy $(AP_WORK)\srclib\pcre\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
380         -copy $(APU_WORK)\uri\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
381
382
383 #
384 # Any specialized rules here
385 #
386
387 vpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
388 vpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
389 vpath %.c os/netware:server/mpm/netware:srclib/pcre
390
391 #
392 # Include the 'tail' makefile that has targets that depend on variables defined
393 # in this makefile
394 #
395
396 include $(AP_WORK)\build\NWGNUtail.inc
397