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