2 # Declare the sub-directories to be built here
9 # Get the 'head' of the build environment. This includes default targets and
13 ifndef EnvironmentDefined
14 include $(APR_WORK)/build/NWGNUhead.inc
17 #include $(APR)\build\NWGNUcustom.inc
20 # build this level's files
23 # Make sure all needed macro's are defined
28 # for now defined here - should finally go into build/NWGNUenvironment.inc
29 PGSQL_INC = $(PGSQLSDK)/inc
35 # These directories will be at the beginning of the include list, followed by
39 $(APR)/include/arch/netware \
42 $(APU)/include/private \
48 # These flags will come after CFLAGS
54 # These defines will come after DEFINES
57 -DAPU_DSO_MODULE_BUILD \
63 # These flags will be added to the link.opt file
79 # These values will be appended to the correct variables based on the value of
82 ifeq "$(RELEASE)" "debug"
96 ifeq "$(RELEASE)" "noopt"
110 ifeq "$(RELEASE)" "release"
125 # These are used by the link target if an NLM is being generated
126 # This is used by the link 'name' directive to name the nlm. If left blank
127 # TARGET_nlm (see below) will be used.
132 # This is used by the link '-desc ' directive.
133 # If left blank, NLM_NAME will be used.
135 NLM_DESCRIPTION = Apache Portability Runtime Library $(VERSION_STR) DBD PostgreSQL Driver Module
138 # This is used by the '-threadname' directive. If left blank,
139 # NLM_NAME Thread will be used.
141 NLM_THREAD_NAME = dbdpgsql
144 # If this is specified, it will override VERSION value in
145 # $(AP_WORK)\build\NWGNUenvironment.inc
150 # If this is specified, it will override the default of 64K
152 NLM_STACK_SIZE = 8192
156 # If this is specified it will be used by the link '-entry' directive
161 # If this is specified it will be used by the link '-exit' directive
166 # If this is specified it will be used by the link '-check' directive
171 # If these are specified it will be used by the link '-flags' directive
176 # If this is specified it will be linked in with the XDCData option in the def
177 # file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
178 # by setting APACHE_UNIPROC in the environment
183 # If there is an NLM target, put it here
186 $(OBJDIR)/$(NLM_NAME).nlm \
190 # If there is an LIB target, put it here
196 # These are the OBJ files needed to create the NLM target above.
197 # Paths must all use the '/' character
200 $(OBJDIR)/apr_dbd_pgsql.o \
204 # These are the LIB files needed to create the NLM target above.
205 # These will be added as a library command in the link.opt file.
211 ifeq ($(LINK_STATIC),1)
218 # These are the modules that the above NLM target depends on to load.
219 # These will be added as a module command in the link.opt file.
221 FILES_nlm_modules = \
226 ifneq ($(LINK_STATIC),1)
227 FILES_nlm_modules += \
233 # If the nlm has a msg file, put it's path here
238 # If the nlm has a hlp file put it's path here
243 # If this is specified, it will override $(NWOS)\copyright.txt.
248 # Any additional imports go here
250 FILES_nlm_Ximports = \
255 ifneq ($(LINK_STATIC),1)
256 FILES_nlm_Ximports += \
262 # Any symbols exported to here
264 FILES_nlm_exports = \
265 apr_dbd_pgsql_driver \
269 # These are the OBJ files needed to create the LIB target above.
270 # Paths must all use the '/' character
276 # implement targets and dependancies (leave this section alone)
279 libs :: $(OBJDIR) $(TARGET_lib)
281 nlms :: libs $(TARGET_nlm)
284 # Updated this target to create necessary directories and copy files to the
285 # correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
287 install :: nlms FORCE
290 # Any specialized rules here
294 # Include the 'tail' makefile that has targets that depend on variables defined
298 include $(APRBUILD)/NWGNUtail.inc