2
# NWGNUmakefile for DfTables.nlm (Apache2)
3
# 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
16
PCRE = $(AP_WORK)/srclib/pcre
19
# build this level's files
21
FILES_prebuild_headers = \
26
$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
27
@echo Creating $(subst /,\,$@)
28
copy $< $(subst /,\,$(PCRE))\$(@F)
31
# Make sure all needed macro's are defined
35
# These directories will be at the beginning of the include list, followed by
39
$(AP_WORK)/os/netware \
40
$(APR)/include/arch/netware \
44
# These flags will come after CFLAGS
50
# These defines will come after DEFINES
56
# These flags will be added to the link.opt file
62
# These values will be appended to the correct variables based on the value of
65
ifeq "$(RELEASE)" "debug"
79
ifeq "$(RELEASE)" "noopt"
93
ifeq "$(RELEASE)" "release"
108
# These are used by the link target if an NLM is being generated
109
# This is used by the link 'name' directive to name the nlm. If left blank
110
# TARGET_nlm (see below) will be used.
115
# This is used by the link '-desc ' directive.
116
# If left blank, NLM_NAME will be used.
118
NLM_DESCRIPTION = Generate character tables
120
#$(FILES_prebuild_headers)
121
# This is used by the '-threadname' directive. If left blank,
122
# NLM_NAME Thread will be used.
124
NLM_THREAD_NAME = dftables
127
# If this is specified, it will override VERSION value in
128
# $(APR_WORK)\build\NWGNUenvironment.inc
133
# If this is specified, it will override the default of 64K
135
NLM_STACK_SIZE = 8192
138
# If this is specified it will be used by the link '-entry' directive
140
NLM_ENTRY_SYM =_LibCPrelude
143
# If this is specified it will be used by the link '-exit' directive
145
NLM_EXIT_SYM =_LibCPostlude
148
# If this is specified it will be used by the link '-check' directive
153
# If this is specified it will be used by the link '-flags' directive
155
NLM_FLAGS = PSEUDOPREEMPTION
158
# If this is specified it will be linked in with the XDCData option in the def
159
# file instead of the default of $(APR)/misc/netware/apr.xdc. XDCData can
160
# be disabled by setting APACHE_UNIPROC in the environment
165
# Declare all target files (you must add your files here)
169
# If there is an NLM target, put it here
172
$(OBJDIR)/dftables.nlm \
176
# If there is an LIB target, put it here
182
# These are the OBJ files needed to create the NLM target above.
183
# Paths must all use the '/' character
186
$(FILES_prebuild_headers) \
187
$(OBJDIR)/dftables.o \
191
# These are the LIB files needed to create the NLM target above.
192
# These will be added as a library command in the link.opt file.
199
# These are the modules that the above NLM target depends on to load.
200
# These will be added as a module command in the link.opt file.
202
FILES_nlm_modules = \
207
# If the nlm has a msg file, put it's path here
212
# If the nlm has a hlp file put it's path here
217
# If this is specified, it will override $(NWOS)\copyright.txt.
222
# Any additional imports go here
224
FILES_nlm_Ximports = \
229
# Any symbols exported to here
231
FILES_nlm_exports = \
235
# These are the OBJ files needed to create the LIB target above.
236
# Paths must all use the '/' character
242
# implement targets and dependancies (leave this section alone)
245
libs :: $(OBJDIR) $(TARGET_lib)
247
nlms :: libs $(TARGET_nlm)
250
# Updated this target to create necessary directories and copy files to the
251
# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
253
install :: nlms FORCE
256
# Any specialized rules here
261
# Include the 'tail' makefile that has targets that depend on variables defined
265
include $(APR_WORK)\build\NWGNUtail.inc
267
# End of NWGNUmakefile for DfTables.nlm (Apache2)