2
# Declare the sub-directories to be built here
11
# Get the 'head' of the build environment. This includes default targets and
15
include $(APR_WORK)\build\NWGNUhead.inc
18
# build this level's files
21
# Make sure all needed macro's are defined
25
# These directories will be at the beginning of the include list, followed by
30
$(APR)/include/arch/NetWare \
31
$(APR)/include/arch/unix \
38
# These flags will come after CFLAGS
44
# These defines will come after DEFINES
50
# These flags will be added to the link.opt file
56
# These values will be appended to the correct variables based on the value of
59
ifeq "$(RELEASE)" "debug"
73
ifeq "$(RELEASE)" "noopt"
87
ifeq "$(RELEASE)" "release"
102
# These are used by the link target if an NLM is being generated
103
# This is used by the link 'name' directive to name the nlm. If left blank
104
# TARGET_nlm (see below) will be used.
109
# This is used by the link '-desc ' directive.
110
# If left blank, NLM_NAME will be used.
112
NLM_DESCRIPTION = Apache Portability Runtime Library $(VERSION_STR)
115
# This is used by the '-threadname' directive. If left blank,
116
# NLM_NAME Thread will be used.
120
# If this is specified, it will override VERSION value in
121
# $(APR_WORK)\build\NWGNUenvironment.inc
126
# If this is specified, it will override the default of 64K
131
# If this is specified it will be used by the link '-entry' directive
133
NLM_ENTRY_SYM = _LibCPrelude
136
# If this is specified it will be used by the link '-exit' directive
138
NLM_EXIT_SYM = _LibCPostlude
141
# If this is specified it will be used by the link '-check' directive
146
# If this is specified it will be used by the link '-flags' directive
148
NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
151
# If this is specified it will be linked in with the XDCData option in the def
152
# file instead of the default of $(APR)/misc/netware/apache.xdc. XDCData can
153
# be disabled by setting APACHE_UNIPROC in the environment
158
# Declare all target files (you must add your files here)
162
# If there is an NLM target, put it here
165
$(OBJDIR)/aprlib.nlm \
169
# If there is an LIB target, put it here
172
$(OBJDIR)/aprlib.lib \
176
# These are the OBJ files needed to create the NLM target above.
177
# Paths must all use the '/' character
180
$(OBJDIR)/libprews.o \
184
# These are the LIB files needed to create the NLM target above.
185
# These will be added as a library command in the link.opt file.
196
# These are the modules that the above NLM target depends on to load.
197
# These will be added as a module command in the link.opt file.
199
FILES_nlm_modules = \
203
# Include the Winsock libraries if Winsock is being used
204
ifndef USE_STDSOCKETS
205
FILES_nlm_modules += ws2_32 \
209
#If the LDAP support is defined then add the auto-load modules
210
ifneq "$(LDAPSDK)" ""
211
FILES_nlm_modules += \
218
# If the nlm has a msg file, put it's path here
223
# If the nlm has a hlp file put it's path here
228
# If this is specified, it will override $(NWOS)\copyright.txt.
233
# Any additional imports go here
235
FILES_nlm_Ximports = \
240
# Include the Winsock imports if Winsock is being used
241
ifndef USE_STDSOCKETS
242
FILES_nlm_Ximports += \
249
#If the LDAP support is defined then add the imports
250
ifneq "$(LDAPSDK)" ""
251
FILES_nlm_Ximports += \
252
@$(LDAPSDK)/imports/lldapsdk.imp \
253
@$(LDAPSDK)/imports/lldapssl.imp \
258
# Any symbols exported to here
260
FILES_nlm_exports = \
265
# These are the OBJ files needed to create the LIB target above.
266
# Paths must all use the '/' character
269
$(OBJDIR)/apr_atomic.o \
270
$(OBJDIR)/apr_cpystrn.o \
271
$(OBJDIR)/apr_fnmatch.o \
272
$(OBJDIR)/apr_getpass.o \
273
$(OBJDIR)/apr_hash.o \
274
$(OBJDIR)/apr_pools.o \
275
$(OBJDIR)/apr_random.o \
276
$(OBJDIR)/apr_snprintf.o \
277
$(OBJDIR)/apr_strings.o \
278
$(OBJDIR)/apr_strnatcmp.o \
279
$(OBJDIR)/apr_strtok.o \
280
$(OBJDIR)/apr_tables.o \
281
$(OBJDIR)/charset.o \
286
$(OBJDIR)/errorcodes.o \
288
$(OBJDIR)/fileacc.o \
289
$(OBJDIR)/filedup.o \
290
$(OBJDIR)/filepath.o \
291
$(OBJDIR)/filepath_util.o \
292
$(OBJDIR)/filestat.o \
293
$(OBJDIR)/filesys.o \
297
$(OBJDIR)/groupinfo.o \
298
$(OBJDIR)/inet_pton.o \
299
$(OBJDIR)/inet_ntop.o \
300
$(OBJDIR)/libprews.o \
303
$(OBJDIR)/multicast.o \
306
$(OBJDIR)/otherchild.o \
308
$(OBJDIR)/procsup.o \
309
$(OBJDIR)/proc_mutex.o \
311
$(OBJDIR)/readwrite.o \
314
$(OBJDIR)/sendrecv.o \
316
$(OBJDIR)/sha2_glue.o \
318
$(OBJDIR)/signals.o \
319
$(OBJDIR)/sockaddr.o \
320
$(OBJDIR)/sockets.o \
321
$(OBJDIR)/sockopt.o \
323
$(OBJDIR)/tempdir.o \
325
$(OBJDIR)/thread_cond.o \
326
$(OBJDIR)/thread_mutex.o \
327
$(OBJDIR)/thread_rwlock.o \
328
$(OBJDIR)/threadpriv.o \
330
$(OBJDIR)/timestr.o \
331
$(OBJDIR)/userinfo.o \
332
$(OBJDIR)/version.o \
338
# implement targets and dependancies (leave this section alone)
341
libs :: $(OBJDIR) $(TARGET_lib)
343
nlms :: libs $(TARGET_nlm)
346
# Updated this target to create necessary directories and copy files to the
347
# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
349
install :: nlms $(INSTDIRS) FORCE
350
copy $(OBJDIR)\aprlib.nlm $(INSTALLBASE)\*.*
352
-copy $(subst /,\,$(APR))\STATUS $(INSTALLBASE)\*.apr
353
-copy $(subst /,\,$(APR))\LICENSE $(INSTALLBASE)\*
354
-copy $(subst /,\,$(APR))\CHANGES $(INSTALLBASE)\*.apr
355
-copy $(subst /,\,$(APRUTIL))\STATUS $(INSTALLBASE)\*.apu
356
-copy $(subst /,\,$(APRUTIL))\CHANGES $(INSTALLBASE)\*.apu
357
@echo rem copying the docs directories > xc.bat
358
@echo xcopy docs $(INSTALLBASE)\docs\*.* $(XCOPYSW) >> xc.bat
364
$(CHKNOT) $@\NUL mkdir $@
367
installdev :: $(INSTDEVDIRS) FORCE
368
-copy $(subst /,\,$(APR))\include\*.h $(INSTALLBASE)\include\*.*
369
-copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALLBASE)\include\*.*
370
-copy $(subst /,\,$(APR))\*.imp $(INSTALLBASE)\lib\*.*
371
-copy $(subst /,\,$(APR))\misc\netware\*.xdc $(INSTALLBASE)\lib\*.*
374
$(CHKNOT) $@\NUL mkdir $@
378
# Any specialized rules here
381
vpath %.c atomic/netware:strings:tables:passwd:lib:time/unix
382
vpath %.c file_io/unix:locks/netware:misc/netware:misc/unix:threadproc/netware
383
vpath %.c poll/unix:shmem\unix:support/unix:random/unix
384
vpath %.c dso/netware:memory/unix:mmap/unix:user/netware
386
# Use the win32 network_io if Winsock is being used
388
vpath %.c network_io/unix
390
vpath %.c network_io/win32:network_io/unix
393
$(OBJDIR)/%.o: file_io/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
395
$(CC) file_io\netware\$(<F) -cwd source -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
398
# Include the 'tail' makefile that has targets that depend on variables defined
402
include $(APR_WORK)\build\NWGNUtail.inc