NWGNUpolicy revision eff68915baacc246f5ec7256f498b3d1dbbcf683
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff#
39a8abdb83d00eb57e2395dbd3931c129391a951Automatic Updater# Declare the sub-directories to be built here
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
ec5347e2c775f027573ce5648b910361aa926c01Automatic UpdaterSUBDIRS = \
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff $(EOLIST)
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Get the 'head' of the build environment. This includes default targets and
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# paths to tools
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewsinclude $(AP_WORK)/build/NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff# build this level's files
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff
28a8f5b0de57d269cf2845c69cb6abe18cbd3b3aMark Andrews#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# Make sure all needed macro's are defined
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff#
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff#
12178c86525332bb0ab66155feb61fbf32eca6acEvan Hunt# These directories will be at the beginning of the include list, followed by
307d2084502eddc7ce921e5ce439aec3531d90e0Tatuya JINMEI 神明達哉# INCDIRS
307d2084502eddc7ce921e5ce439aec3531d90e0Tatuya JINMEI 神明達哉#
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark AndrewsXINCDIRS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(APR)/include \
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence $(APRUTIL)/include \
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence $(SRC)/include \
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff $(NWOS) \
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence $(EOLIST)
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence#
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence# These flags will come after CFLAGS
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence#
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid LawrenceXCFLAGS += \
5c02d3183f46ba8621a4bdecc71facda5f8e0717Michael Graff $(EOLIST)
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence#
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence# These defines will come after DEFINES
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid Lawrence#
b9fcdde267398d4f94e5cc5fe280eba738191247Bob HalleyXDEFINES += \
b9fcdde267398d4f94e5cc5fe280eba738191247Bob Halley $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
b9fcdde267398d4f94e5cc5fe280eba738191247Bob Halley#
307d2084502eddc7ce921e5ce439aec3531d90e0Tatuya JINMEI 神明達哉# These flags will be added to the link.opt file
a27fe4c990f96bd792f2a07ca4d38c78d5b9df2cTatuya JINMEI 神明達哉#
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXLFLAGS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# These values will be appended to the correct variables based on the value of
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# RELEASE
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinifeq "$(RELEASE)" "debug"
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXINCDIRS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXCFLAGS += \
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews $(EOLIST)
bfcc5ae79a46c5c55e6cf1a9fe4d70a957712d2bTatuya JINMEI 神明達哉
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark AndrewsXDEFINES += \
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews $(EOLIST)
bfcc5ae79a46c5c55e6cf1a9fe4d70a957712d2bTatuya JINMEI 神明達哉
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXLFLAGS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinendif
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinifeq "$(RELEASE)" "noopt"
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXINCDIRS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXCFLAGS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXDEFINES += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
386d3a99c190bad55edf44d076e6bd087e230ab8Tatuya JINMEI 神明達哉
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXLFLAGS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinendif
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinifeq "$(RELEASE)" "release"
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXINCDIRS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXCFLAGS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
d9059b0c38bd630c367d81424d72b1308cd74b04Tatuya JINMEI 神明達哉XDEFINES += \
d9059b0c38bd630c367d81424d72b1308cd74b04Tatuya JINMEI 神明達哉 $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXLFLAGS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinendif
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# These are used by the link target if an NLM is being generated
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# This is used by the link 'name' directive to name the nlm. If left blank
b9fcdde267398d4f94e5cc5fe280eba738191247Bob Halley# TARGET_nlm (see below) will be used.
b9fcdde267398d4f94e5cc5fe280eba738191247Bob Halley#
bafa76b324e2336d707a158cccdb309df30bca65Shawn RouthierNLM_NAME = policy
bfcc5ae79a46c5c55e6cf1a9fe4d70a957712d2bTatuya JINMEI 神明達哉
bfcc5ae79a46c5c55e6cf1a9fe4d70a957712d2bTatuya JINMEI 神明達哉#
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews# This is used by the link '-desc ' directive.
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews# If left blank, NLM_NAME will be used.
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews#
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Policy Module
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews#
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews# This is used by the '-threadname' directive. If left blank,
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews# NLM_NAME Thread will be used.
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews#
bfcc5ae79a46c5c55e6cf1a9fe4d70a957712d2bTatuya JINMEI 神明達哉NLM_THREAD_NAME = $(NLM_NAME) Module
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence# If this is specified, it will override VERSION value in
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence# $(AP_WORK)/build/NWGNUenvironment.inc
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence#
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid LawrenceNLM_VERSION =
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence#
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence# If this is specified, it will override the default of 64K
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence#
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid LawrenceNLM_STACK_SIZE = 8192
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence
d653744935f98ace7e5a6423c93ed77bcea34b4aDavid Lawrence#
0e0b744f611e1ffc2432ef0bf66bfc6ff90a556cMichael Graff# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM =
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM =
#
# If this is specified it will be used by the link '-check' directive
#
NLM_CHECK_SYM =
#
# If these are specified it will be used by the link '-flags' directive
#
NLM_FLAGS =
#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/$(NLM_NAME).nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/mod_policy.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
$(PRELUDE) \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
libc \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@aprlib.imp \
@httpd.imp \
@libc.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
policy_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc