2 # Declare the sub-directories to be built here
13 # Get the 'head' of the build environment. This includes default targets and
17 include $(AP_WORK)\build\NWGNUhead.inc
20 # build this level's files
23 # Make sure all needed macro's are defined
27 # These directories will be at the beginning of the include list, followed by
31 $(AP_WORK)/srclib/apr/include \
32 $(AP_WORK)/srclib/include/arch/NetWare \
33 $(AP_WORK)/srclib/apr-util/include \
35 $(AP_WORK)/modules/filters/ \
36 $(AP_WORK)/modules/generators/ \
37 $(AP_WORK)/modules/http/ \
38 $(AP_WORK)/modules/loggers/ \
39 $(AP_WORK)/modules/mappers/ \
40 $(AP_WORK)/modules/proxy/ \
41 $(AP_WORK)/os/NetWare \
42 $(AP_WORK)/server/mpm/NetWare \
43 $(AP_WORK)/srclib/pcre \
48 # These flags will come after CFLAGS
54 # These defines will come after DEFINES
60 # These flags will be added to the link.opt file
66 # These values will be appended to the correct variables based on the value of
69 ifeq "$(RELEASE)" "debug"
83 ifeq "$(RELEASE)" "noopt"
97 ifeq "$(RELEASE)" "release"
112 # These are used by the link target if an NLM is being generated
113 # This is used by the link 'name' directive to name the nlm. If left blank
114 # TARGET_nlm (see below) will be used.
119 # This is used by the link '-desc ' directive.
120 # If left blank, NLM_NAME will be used.
122 NLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
125 # This is used by the '-threadname' directive. If left blank,
126 # NLM_NAME Thread will be used.
128 NLM_THREAD_NAME = Apache
131 # This is used by the '-screenname' directive. If left blank,
132 # 'Apache for NetWare' Thread will be used.
134 NLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
138 # If this is specified, it will override VERSION value in
139 # $(AP_WORK)\build\NWGNUenvironment.inc
144 # If this is specified, it will override the default of 64K
146 NLM_STACK_SIZE = 65536
150 # If this is specified it will be used by the link '-entry' directive
152 NLM_ENTRY_SYM = _LibCPrelude
155 # If this is specified it will be used by the link '-exit' directive
157 NLM_EXIT_SYM = _LibCPostlude
160 # If this is specified it will be used by the link '-check' directive
162 NLM_CHECK_SYM = _LibCCheckUnload
165 # If these are specified it will be used by the link '-flags' directive
167 NLM_FLAGS = PSEUDOPREEMPTION
170 # If this is specified it will be linked in with the XDCData option in the def
171 # file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
172 # by setting APACHE_UNIPROC in the environment
177 # If there is an NLM target, put it here
180 $(OBJDIR)/Apache2.nlm \
184 # If there is an LIB target, put it here
190 # These are the OBJ files needed to create the NLM target above.
191 # Paths must all use the '/' character
194 $(OBJDIR)/buildmark.o \
196 $(OBJDIR)/connection.o \
198 $(OBJDIR)/error_bucket.o \
199 $(OBJDIR)/http_core.o \
200 $(OBJDIR)/http_protocol.o \
201 $(OBJDIR)/http_request.o \
205 $(OBJDIR)/mod_authz_host.o \
206 $(OBJDIR)/mod_actions.o \
207 $(OBJDIR)/mod_alias.o \
208 $(OBJDIR)/mod_asis.o \
209 $(OBJDIR)/mod_autoindex.o \
210 $(OBJDIR)/mod_cgi.o \
211 $(OBJDIR)/mod_dir.o \
212 $(OBJDIR)/mod_env.o \
213 $(OBJDIR)/mod_imap.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_nw_ssl.o \
220 $(OBJDIR)/mod_setenvif.o \
222 $(OBJDIR)/mod_userdir.o \
223 $(OBJDIR)/modules.o \
224 $(OBJDIR)/mpm_common.o \
225 $(OBJDIR)/mpm_netware.o \
227 $(OBJDIR)/pcreposix.o \
228 $(OBJDIR)/protocol.o \
229 $(OBJDIR)/provider.o \
230 $(OBJDIR)/request.o \
231 $(OBJDIR)/scoreboard.o \
233 $(OBJDIR)/util_cfgtree.o \
234 $(OBJDIR)/util_charset.o \
235 $(OBJDIR)/util_debug.o \
236 $(OBJDIR)/util_filter.o \
237 $(OBJDIR)/util_md5.o \
238 $(OBJDIR)/util_nw.o \
239 $(OBJDIR)/util_script.o \
240 $(OBJDIR)/util_time.o \
241 $(OBJDIR)/util_xml.o \
246 # These are the LIB files needed to create the NLM target above.
247 # These will be added as a library command in the link.opt file.
254 # These are the modules that the above NLM target depends on to load.
255 # These will be added as a module command in the link.opt file.
257 FILES_nlm_modules = \
263 # If the nlm has a msg file, put it's path here
268 # If the nlm has a hlp file put it's path here
273 # If this is specified, it will override $(NWOS)\copyright.txt.
278 # Any additional imports go here
280 FILES_nlm_Ximports = \
285 GetCurrentAddressSpace \
289 # Any symbols exported to here
291 FILES_nlm_exports = \
296 # These are the OBJ files needed to create the LIB target above.
297 # Paths must all use the '/' character
303 # implement targets and dependancies (leave this section alone)
306 libs :: $(OBJDIR) $(TARGET_lib)
308 nlms :: libs $(TARGET_nlm)
311 # Updated this target to create necessary directories and copy files to the
312 # correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
314 install :: nlms FORCE
315 -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
316 -copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
317 -copy README $(INSTALL)\Apache2\*.*
318 -copy STATUS $(INSTALL)\Apache2\*.*
319 -copy LICENSE $(INSTALL)\Apache2\*.*
320 -copy CHANGES $(INSTALL)\Apache2\*.*
321 -copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
322 -copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
323 -awk -f build\mkconfnw.awk docs\conf\httpd-std.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
324 -copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
325 -copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
326 -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
327 @echo rem copying the docs directories > xc.bat
328 @echo xcopy docs\error $(INSTALL)\Apache2\error /E /Y >> xc.bat
329 @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs /E /Y >> xc.bat
330 @echo xcopy docs\icons $(INSTALL)\Apache2\icons /E /Y >> xc.bat
331 @echo xcopy docs\man $(INSTALL)\Apache2\man /E /Y >> xc.bat
332 @echo xcopy docs\manual $(INSTALL)\Apache2\manual /E /Y >> xc.bat
338 -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
339 -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
340 -copy $(subst /,\,$(NWOS))\include\*.h $(INSTALL)\Apache2\include\*.*
341 -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
342 -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
343 -copy $(subst /,\,$(APR))\arch\netware\include\*.h $(INSTALL)\Apache2\include\*.*
344 -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
345 -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
346 -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\Apache2\lib\*.*
349 # Any specialized rules here
352 $(OBJDIR)/%.o: server/%.c $(OBJDIR)\cc.opt
354 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
356 $(OBJDIR)/%.o: modules/arch/netware/%.c $(OBJDIR)\cc.opt
358 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
360 $(OBJDIR)/%.o: modules/http/%.c $(OBJDIR)\cc.opt
362 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
364 $(OBJDIR)/%.o: modules/aaa/%.c $(OBJDIR)\cc.opt
366 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
368 $(OBJDIR)/%.o: modules/mappers/%.c $(OBJDIR)\cc.opt
370 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
372 $(OBJDIR)/%.o: modules/generators/%.c $(OBJDIR)\cc.opt
374 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
376 $(OBJDIR)/%.o: modules/metadata/%.c $(OBJDIR)\cc.opt
378 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
380 $(OBJDIR)/%.o: modules/filters/%.c $(OBJDIR)\cc.opt
382 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
384 $(OBJDIR)/%.o: modules/loggers/%.c $(OBJDIR)\cc.opt
386 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
388 $(OBJDIR)/%.o: os/netware/%.c $(OBJDIR)\cc.opt
390 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
392 $(OBJDIR)/%.o: server/mpm/netware/%.c $(OBJDIR)\cc.opt
394 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
396 $(OBJDIR)/%.o: srclib/pcre/%.c $(OBJDIR)\cc.opt
398 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
401 # Include the 'tail' makefile that has targets that depend on variables defined
405 include $(AP_WORK)\build\NWGNUtail.inc