2
# Declare the sub-directories to be built here
10
# Get the 'head' of the build environment. This includes default targets and
14
include $(APR_WORK)\build\NWGNUhead.inc
17
# Make sure all needed macro's are defined
21
# These directories will be at the beginning of the include list, followed by
26
$(APR)/include/arch/NetWare \
30
$(APRUTIL)/include/private \
31
$(APRUTIL)/xml/expat/lib \
35
# These flags will come after CFLAGS
41
# These defines will come after DEFINES
47
# These flags will be added to the link.opt file
53
# These values will be appended to the correct variables based on the value of
56
ifeq "$(RELEASE)" "debug"
70
ifeq "$(RELEASE)" "noopt"
84
ifeq "$(RELEASE)" "release"
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.
106
# This is used by the link '-desc ' directive.
107
# If left blank, NLM_NAME will be used.
112
# This is used by the '-threadname' directive. If left blank,
113
# NLM_NAME Thread will be used.
117
# If this is specified, it will override VERSION value in
118
# $(APR_WORK)\build\NWGNUenvironment.inc
123
# If this is specified, it will override the default of 64K
128
# If this is specified it will be used by the link '-entry' directive
133
# If this is specified it will be used by the link '-exit' directive
138
# If this is specified it will be used by the link '-check' directive
143
# If this is specified it will be used by the link '-flags' directive
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
155
# Declare all target files (you must add your files here)
159
# If there is an NLM target, put it here
165
# If there is an LIB target, put it here
168
$(OBJDIR)/aprutil.lib \
172
# These are the OBJ files needed to create the NLM target above.
173
# Paths must all use the '/' character
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.
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.
189
FILES_nlm_modules = \
193
# If the nlm has a msg file, put it's path here
198
# If the nlm has a hlp file put it's path here
203
# If this is specified, it will override $(NWOS)\copyright.txt.
208
# Any additional imports go here
210
FILES_nlm_Ximports = \
214
# Any symbols exported to here
216
FILES_nlm_exports = \
220
# These are the OBJ files needed to create the LIB target above.
221
# Paths must all use the '/' character
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 \
252
$(OBJDIR)/apr_strmatch.o \
253
$(OBJDIR)/apr_uri.o \
255
$(OBJDIR)/sdbm_hash.o \
256
$(OBJDIR)/sdbm_lock.o \
257
$(OBJDIR)/sdbm_pair.o \
262
# implement targets and dependancies (leave this section alone)
265
libs :: $(OBJDIR) $(TARGET_lib)
267
nlms :: libs $(TARGET_nlm)
270
# Updated this target to create necessary directories and copy files to the
271
# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
273
install :: nlms FORCE
276
# Any specialized rules here
279
$(OBJDIR)/%.o: buckets/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
281
$(CC) buckets\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
283
$(OBJDIR)/%.o: crypto/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
285
$(CC) crypto\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
287
$(OBJDIR)/%.o: dbm/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
289
$(CC) dbm\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
291
$(OBJDIR)/%.o: dbm/sdbm/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
293
$(CC) dbm\sdbm\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
295
$(OBJDIR)/%.o: encoding/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
297
$(CC) encoding\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
299
$(OBJDIR)/%.o: hooks/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
301
$(CC) hooks\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
303
$(OBJDIR)/%.o: misc/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
305
$(CC) misc\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
307
$(OBJDIR)/%.o: strmatch/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
309
$(CC) strmatch\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
311
$(OBJDIR)/%.o: uri/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
313
$(CC) uri\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
315
$(OBJDIR)/%.o: xlate/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
317
$(CC) xlate\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
319
$(OBJDIR)/%.o: xml/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
321
$(CC) xml\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
325
# Include the 'tail' makefile that has targets that depend on variables defined
329
include $(APR_WORK)\build\NWGNUtail.inc