2 # Declare the sub-directories to be built here
9 # Get the 'head' of the build environment. This includes default targets and
13 include $(AP_WORK)/build/NWGNUhead.inc
16 # build this level's files
19 # Make sure all needed macro's are defined
21 ifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
22 WITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
28 # These directories will be at the beginning of the include list, followed by
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.
118 # If this is specified, it will override VERSION value in
119 # $(AP_WORK)/build/NWGNUenvironment.inc
124 # 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
135 # If this is specified it will be used by the link '-exit' directive
140 # If this is specified it will be used by the link '-check' directive
145 # If these are specified it will be used by the link '-flags' directive
150 # If this is specified it will be linked in with the XDCData option in the def
151 # file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
152 # by setting APACHE_UNIPROC in the environment
157 # If there is an NLM target, put it here
160 $(OBJDIR)/authbasc.nlm \
161 $(OBJDIR)/authdigt.nlm \
162 $(OBJDIR)/authform.nlm \
163 $(OBJDIR)/authnano.nlm \
164 $(OBJDIR)/authndbd.nlm \
165 $(OBJDIR)/authndbm.nlm \
166 $(OBJDIR)/authnfil.nlm \
167 $(OBJDIR)/authnsocache.nlm \
168 $(OBJDIR)/authzdbd.nlm \
169 $(OBJDIR)/authzdbm.nlm \
170 $(OBJDIR)/authzgrp.nlm \
171 $(OBJDIR)/authzusr.nlm \
172 $(OBJDIR)/allowhandlers.nlm \
173 $(OBJDIR)/allowmethods.nlm \
174 $(OBJDIR)/accesscompat.nlm \
177 # If WITH_LDAP and LDAPSDK have been defined then build the authnz_ldap module
178 ifeq "$(WITH_LDAP)" "1"
179 ifneq "$(LDAPSDK)" ""
180 TARGET_nlm += $(OBJDIR)/authnzldap.nlm
185 # If there is an LIB target, put it here
191 # These are the OBJ files needed to create the NLM target above.
192 # Paths must all use the '/' character
198 # These are the LIB files needed to create the NLM target above.
199 # These will be added as a library command in the link.opt file.
205 # These are the modules that the above NLM target depends on to load.
206 # These will be added as a module command in the link.opt file.
208 FILES_nlm_modules = \
212 # If the nlm has a msg file, put it's path here
217 # If the nlm has a hlp file put it's path here
222 # If this is specified, it will override $(NWOS)\copyright.txt.
227 # Any additional imports go here
229 FILES_nlm_Ximports = \
233 # Any symbols exported to here
235 FILES_nlm_exports = \
239 # These are the OBJ files needed to create the LIB target above.
240 # Paths must all use the '/' character
246 # implement targets and dependancies (leave this section alone)
249 libs :: $(OBJDIR) $(TARGET_lib)
251 nlms :: libs $(TARGET_nlm)
254 # Updated this target to create necessary directories and copy files to the
255 # correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
257 install :: nlms FORCE
258 $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
261 # Any specialized rules here
265 # Include the 'tail' makefile that has targets that depend on variables defined
269 include $(APBUILD)/NWGNUtail.inc