upload http
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr-util / NWGNUmakefile
1 #
2 # Declare the sub-directories to be built here
3 #
4
5 SUBDIRS = \
6         xml \
7         $(EOLIST)
8
9 #
10 # Get the 'head' of the build environment.  This includes default targets and
11 # paths to tools
12 #
13
14 include $(APR_WORK)\build\NWGNUhead.inc
15
16 #
17 # Make sure all needed macro's are defined
18 #
19
20 #
21 # These directories will be at the beginning of the include list, followed by
22 # INCDIRS
23 #
24 XINCDIRS        += \
25                         $(APR)/include \
26                         $(APR)/include/arch/NetWare \
27                         $(APRUTIL)/include \
28                         $(APRUTIL)/uri \
29                         $(APRUTIL)/dbm/sdbm \
30                         $(APRUTIL)/include/private \
31                         $(APRUTIL)/xml/expat/lib \
32                         $(EOLIST)
33
34 #
35 # These flags will come after CFLAGS
36 #
37 XCFLAGS         += \
38                         $(EOLIST)
39
40 #
41 # These defines will come after DEFINES
42 #
43 XDEFINES        += \
44                         $(EOLIST)
45
46 #
47 # These flags will be added to the link.opt file
48 #
49 XLFLAGS         += \
50                         $(EOLIST)
51
52 #
53 # These values will be appended to the correct variables based on the value of
54 # RELEASE
55 #
56 ifeq "$(RELEASE)" "debug"
57 XINCDIRS        += \
58                         $(EOLIST)
59
60 XCFLAGS         += \
61                         $(EOLIST)
62
63 XDEFINES        += \
64                         $(EOLIST)
65
66 XLFLAGS         += \
67                         $(EOLIST)
68 endif
69
70 ifeq "$(RELEASE)" "noopt"
71 XINCDIRS        += \
72                         $(EOLIST)
73
74 XCFLAGS         += \
75                         $(EOLIST)
76
77 XDEFINES        += \
78                         $(EOLIST)
79
80 XLFLAGS         += \
81                         $(EOLIST)
82 endif
83
84 ifeq "$(RELEASE)" "release"
85 XINCDIRS        += \
86                         $(EOLIST)
87
88 XCFLAGS         += \
89                         $(EOLIST)
90
91 XDEFINES        += \
92                         $(EOLIST)
93
94 XLFLAGS         += \
95                         $(EOLIST)
96 endif
97
98 #
99 # These are used by the link target if an NLM is being generated
100 # This is used by the link 'name' directive to name the nlm.  If left blank
101 # TARGET_nlm (see below) will be used.
102 #
103 NLM_NAME        =
104
105 #
106 # This is used by the link '-desc ' directive.
107 # If left blank, NLM_NAME will be used.
108 #
109 NLM_DESCRIPTION =
110
111 #
112 # This is used by the '-threadname' directive.  If left blank,
113 # NLM_NAME Thread will be used.
114 #
115 NLM_THREAD_NAME =
116 #
117 # If this is specified, it will override VERSION value in
118 # $(APR_WORK)\build\NWGNUenvironment.inc
119 #
120 NLM_VERSION     =
121
122 #
123 # If this is specified, it will override the default of 64K
124 #
125 NLM_STACK_SIZE  =
126
127 #
128 # If this is specified it will be used by the link '-entry' directive
129 #
130 NLM_ENTRY_SYM   =
131
132 #
133 # If this is specified it will be used by the link '-exit' directive
134 #
135 NLM_EXIT_SYM    =
136
137 #
138 # If this is specified it will be used by the link '-check' directive
139 #
140 NLM_CHECK_SYM   =
141
142 #
143 # If this is specified it will be used by the link '-flags' directive
144 #
145 NLM_FLAGS       =
146
147 #
148 # If this is specified it will be linked in with the XDCData option in the def
149 # file instead of the default of $(APR)/misc/netware/apache.xdc.  XDCData can
150 # be disabled by setting APACHE_UNIPROC in the environment
151 #
152 XDCDATA         =
153
154 #
155 # Declare all target files (you must add your files here)
156 #
157
158 #
159 # If there is an NLM target, put it here
160 #
161 TARGET_nlm = \
162         $(EOLIST)
163
164 #
165 # If there is an LIB target, put it here
166 #
167 TARGET_lib = \
168         $(OBJDIR)/aprutil.lib \
169         $(EOLIST)
170
171 #
172 # These are the OBJ files needed to create the NLM target above.
173 # Paths must all use the '/' character
174 #
175 FILES_nlm_objs = \
176         $(EOLIST)
177
178 #
179 # These are the LIB files needed to create the NLM target above.
180 # These will be added as a library command in the link.opt file.
181 #
182 FILES_nlm_libs = \
183         $(EOLIST)
184
185 #
186 # These are the modules that the above NLM target depends on to load.
187 # These will be added as a module command in the link.opt file.
188 #
189 FILES_nlm_modules = \
190         $(EOLIST)
191
192 #
193 # If the nlm has a msg file, put it's path here
194 #
195 FILE_nlm_msg =
196
197 #
198 # If the nlm has a hlp file put it's path here
199 #
200 FILE_nlm_hlp =
201
202 #
203 # If this is specified, it will override $(NWOS)\copyright.txt.
204 #
205 FILE_nlm_copyright =
206
207 #
208 # Any additional imports go here
209 #
210 FILES_nlm_Ximports = \
211         $(EOLIST)
212
213 #
214 # Any symbols exported to here
215 #
216 FILES_nlm_exports = \
217         $(EOLIST)
218
219 #
220 # These are the OBJ files needed to create the LIB target above.
221 # Paths must all use the '/' character
222 #
223 FILES_lib_objs = \
224         $(OBJDIR)/apr_base64.o \
225         $(OBJDIR)/apr_brigade.o \
226         $(OBJDIR)/apr_buckets.o \
227         $(OBJDIR)/apr_buckets_alloc.o \
228         $(OBJDIR)/apr_buckets_eos.o \
229         $(OBJDIR)/apr_buckets_file.o \
230         $(OBJDIR)/apr_buckets_flush.o \
231         $(OBJDIR)/apr_buckets_heap.o \
232         $(OBJDIR)/apr_buckets_mmap.o \
233         $(OBJDIR)/apr_buckets_pipe.o \
234         $(OBJDIR)/apr_buckets_pool.o \
235         $(OBJDIR)/apr_buckets_refcount.o \
236         $(OBJDIR)/apr_buckets_simple.o \
237         $(OBJDIR)/apr_buckets_socket.o \
238         $(OBJDIR)/apr_date.o \
239         $(OBJDIR)/apr_dbm.o \
240         $(OBJDIR)/apr_dbm_berkeleydb.o \
241         $(OBJDIR)/apr_dbm_sdbm.o \
242         $(OBJDIR)/apr_hooks.o \
243         $(OBJDIR)/apr_md4.o \
244         $(OBJDIR)/apr_md5.o \
245         $(OBJDIR)/apr_queue.o \
246         $(OBJDIR)/apr_reslist.o \
247         $(OBJDIR)/apr_rmm.o \
248         $(OBJDIR)/apr_sha1.o \
249         $(OBJDIR)/apu_version.o \
250         $(OBJDIR)/getuuid.o \
251         $(OBJDIR)/uuid.o \
252         $(OBJDIR)/apr_strmatch.o \
253         $(OBJDIR)/apr_uri.o \
254         $(OBJDIR)/sdbm.o \
255         $(OBJDIR)/sdbm_hash.o \
256         $(OBJDIR)/sdbm_lock.o \
257         $(OBJDIR)/sdbm_pair.o \
258         $(OBJDIR)/xlate.o \
259         $(EOLIST)
260
261 #
262 # implement targets and dependancies (leave this section alone)
263 #
264
265 libs :: $(OBJDIR) $(TARGET_lib)
266
267 nlms :: libs $(TARGET_nlm)
268
269 #
270 # Updated this target to create necessary directories and copy files to the
271 # correct place.  (See $(APR_WORK)\build\NWGNUhead.inc for examples)
272 #
273 install :: nlms FORCE
274
275 #
276 # Any specialized rules here
277 #
278
279 $(OBJDIR)/%.o: buckets/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
280         @echo Compiling $<
281         $(CC) buckets\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
282
283 $(OBJDIR)/%.o: crypto/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
284         @echo Compiling $<
285         $(CC) crypto\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
286
287 $(OBJDIR)/%.o: dbm/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
288         @echo Compiling $<
289         $(CC) dbm\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
290
291 $(OBJDIR)/%.o: dbm/sdbm/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
292         @echo Compiling $<
293         $(CC) dbm\sdbm\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
294
295 $(OBJDIR)/%.o: encoding/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
296         @echo Compiling $<
297         $(CC) encoding\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
298
299 $(OBJDIR)/%.o: hooks/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
300         @echo Compiling $<
301         $(CC) hooks\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
302
303 $(OBJDIR)/%.o: misc/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
304         @echo Compiling $<
305         $(CC) misc\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
306
307 $(OBJDIR)/%.o: strmatch/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
308         @echo Compiling $<
309         $(CC) strmatch\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
310
311 $(OBJDIR)/%.o: uri/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
312         @echo Compiling $<
313         $(CC) uri\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
314
315 $(OBJDIR)/%.o: xlate/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
316         @echo Compiling $<
317         $(CC) xlate\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
318
319 $(OBJDIR)/%.o: xml/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
320         @echo Compiling $<
321         $(CC) xml\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
322
323
324 #
325 # Include the 'tail' makefile that has targets that depend on variables defined
326 # in this makefile
327 #
328
329 include $(APR_WORK)\build\NWGNUtail.inc
330
331