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_WORK)/include/arch/NetWare \
31 $(APR_WORK)/include/arch/unix \
32 $(APR_WORK)/memory/unix \
37 # These flags will come after CFLAGS
43 # These defines will come after DEFINES
49 # These flags will be added to the link.opt file
55 # These values will be appended to the correct variables based on the value of
58 ifeq "$(RELEASE)" "debug"
72 ifeq "$(RELEASE)" "noopt"
86 ifeq "$(RELEASE)" "release"
101 # These are used by the link target if an NLM is being generated
102 # This is used by the link 'name' directive to name the nlm. If left blank
103 # TARGET_nlm (see below) will be used.
108 # This is used by the link '-desc ' directive.
109 # If left blank, NLM_NAME will be used.
111 NLM_DESCRIPTION = Apache Portability Runtime Library $(VERSION_STR)
114 # This is used by the '-threadname' directive. If left blank,
115 # NLM_NAME Thread will be used.
119 # If this is specified, it will override VERSION value in
120 # $(APR_WORK)\build\NWGNUenvironment.inc
125 # If this is specified, it will override the default of 64K
130 # If this is specified it will be used by the link '-entry' directive
132 NLM_ENTRY_SYM = _LibCPrelude
135 # If this is specified it will be used by the link '-exit' directive
137 NLM_EXIT_SYM = _LibCPostlude
140 # If this is specified it will be used by the link '-check' directive
145 # If this is specified it will be used by the link '-flags' directive
147 NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
150 # If this is specified it will be linked in with the XDCData option in the def
151 # file instead of the default of $(APR)/misc/netware/apache.xdc. XDCData can
152 # be disabled by setting APACHE_UNIPROC in the environment
157 # Declare all target files (you must add your files here)
161 # If there is an NLM target, put it here
164 $(OBJDIR)/aprlib.nlm \
168 # If there is an LIB target, put it here
171 $(OBJDIR)/aprlib.lib \
175 # These are the OBJ files needed to create the NLM target above.
176 # Paths must all use the '/' character
179 $(OBJDIR)/libprews.o \
183 # These are the LIB files needed to create the NLM target above.
184 # These will be added as a library command in the link.opt file.
194 # These are the modules that the above NLM target depends on to load.
195 # These will be added as a module command in the link.opt file.
197 FILES_nlm_modules = \
203 # If the nlm has a msg file, put it's path here
208 # If the nlm has a hlp file put it's path here
213 # If this is specified, it will override $(NWOS)\copyright.txt.
218 # Any additional imports go here
220 FILES_nlm_Ximports = \
229 # Any symbols exported to here
231 FILES_nlm_exports = \
236 # These are the OBJ files needed to create the LIB target above.
237 # Paths must all use the '/' character
240 $(OBJDIR)/apr_cpystrn.o \
241 $(OBJDIR)/apr_fnmatch.o \
242 $(OBJDIR)/apr_getpass.o \
243 $(OBJDIR)/apr_hash.o \
244 $(OBJDIR)/apr_pools.o \
245 $(OBJDIR)/apr_snprintf.o \
246 $(OBJDIR)/apr_strings.o \
247 $(OBJDIR)/apr_strnatcmp.o \
248 $(OBJDIR)/apr_strtok.o \
249 $(OBJDIR)/apr_tables.o \
250 $(OBJDIR)/charset.o \
255 $(OBJDIR)/errorcodes.o \
257 $(OBJDIR)/fileacc.o \
258 $(OBJDIR)/filedup.o \
259 $(OBJDIR)/filepath.o \
260 $(OBJDIR)/filepath_util.o \
261 $(OBJDIR)/filestat.o \
262 $(OBJDIR)/filesys.o \
266 $(OBJDIR)/groupinfo.o \
267 $(OBJDIR)/inet_pton.o \
268 $(OBJDIR)/inet_ntop.o \
269 $(OBJDIR)/libprews.o \
274 $(OBJDIR)/otherchild.o \
276 $(OBJDIR)/pollacc.o \
278 $(OBJDIR)/procsup.o \
279 $(OBJDIR)/proc_mutex.o \
281 $(OBJDIR)/readwrite.o \
283 $(OBJDIR)/sendrecv.o \
285 $(OBJDIR)/signals.o \
286 $(OBJDIR)/sockaddr.o \
287 $(OBJDIR)/sockets.o \
288 $(OBJDIR)/sockopt.o \
290 $(OBJDIR)/tempdir.o \
292 $(OBJDIR)/thread_cond.o \
293 $(OBJDIR)/thread_mutex.o \
294 $(OBJDIR)/thread_rwlock.o \
295 $(OBJDIR)/threadpriv.o \
297 $(OBJDIR)/timestr.o \
298 $(OBJDIR)/userinfo.o \
299 $(OBJDIR)/version.o \
305 # implement targets and dependancies (leave this section alone)
308 libs :: $(OBJDIR) $(TARGET_lib)
310 nlms :: libs $(TARGET_nlm)
313 # Updated this target to create necessary directories and copy files to the
314 # correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
316 install :: nlms $(INSTDIRS) FORCE
317 copy $(OBJDIR)\aprlib.nlm $(INSTALLBASE)\*.*
319 -copy $(subst /,\,$(APR))\STATUS $(INSTALLBASE)\*.apr
320 -copy $(subst /,\,$(APR))\LICENSE $(INSTALLBASE)\*
321 -copy $(subst /,\,$(APR))\CHANGES $(INSTALLBASE)\*.apr
322 -copy $(subst /,\,$(APRUTIL))\STATUS $(INSTALLBASE)\*.apu
323 -copy $(subst /,\,$(APRUTIL))\CHANGES $(INSTALLBASE)\*.apu
324 @echo rem copying the docs directories > xc.bat
325 @echo xcopy docs $(INSTALLBASE)\docs\*.* $(XCOPYSW) >> xc.bat
332 $(CHKNOT) $@\NUL mkdir $@
335 installdev :: $(INSTDEVDIRS) FORCE
336 -copy $(subst /,\,$(APR))\include\*.h $(INSTALLBASE)\include\*.*
337 -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALLBASE)\include\*.*
338 -copy $(subst /,\,$(APR))\*.imp $(INSTALLBASE)\lib\*.*
339 -copy $(subst /,\,$(APR))\misc\netware\*.xdc $(INSTALLBASE)\lib\*.*
342 $(CHKNOT) $@\NUL mkdir $@
346 # Any specialized rules here
349 $(OBJDIR)/%.o: strings/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
351 $(CC) strings\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
353 $(OBJDIR)/%.o: tables/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
355 $(CC) tables\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
357 $(OBJDIR)/%.o: passwd/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
359 $(CC) passwd\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
361 $(OBJDIR)/%.o: lib/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
363 $(CC) lib\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
365 $(OBJDIR)/%.o: time/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
367 $(CC) time\unix\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
369 $(OBJDIR)/%.o: file_io/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
371 $(CC) file_io\netware\$(<F) -cwd source -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
373 $(OBJDIR)/%.o: file_io/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
375 $(CC) file_io\unix\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
377 $(OBJDIR)/%.o: locks/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
379 $(CC) locks\netware\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
381 $(OBJDIR)/%.o: misc/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
383 $(CC) misc\netware\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
385 $(OBJDIR)/%.o: misc/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
387 $(CC) misc\unix\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
389 $(OBJDIR)/%.o: threadproc/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
391 $(CC) threadproc\netware\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
393 $(OBJDIR)/%.o: dso/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
395 $(CC) dso\netware\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
397 $(OBJDIR)/%.o: memory/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
399 $(CC) memory\unix\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
401 $(OBJDIR)/%.o: mmap/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
403 $(CC) mmap\unix\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
405 $(OBJDIR)/%.o: user/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
407 $(CC) user\netware\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
409 $(OBJDIR)/%.o: network_io/win32/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
411 $(CC) network_io\win32\$(<F) -cwd source -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
413 $(OBJDIR)/%.o: network_io/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
415 $(CC) network_io\unix\$(<F) -cwd source -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
417 $(OBJDIR)/%.o: poll/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
419 $(CC) poll\unix\$(<F) -cwd source -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
421 $(OBJDIR)/%.o: file_io/os2/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
423 $(CC) file_io\os2\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
425 $(OBJDIR)/%.o: shmem/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
427 $(CC) shmem\unix\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
429 $(OBJDIR)/%.o: support/unix/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
431 $(CC) support\unix\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
434 # Include the 'tail' makefile that has targets that depend on variables defined
438 include $(APR_WORK)\build\NWGNUtail.inc