NWGNUexpires revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Make sure all needed macro's are defined
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# Get the 'head' of the build environment if necessary. This includes default
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# targets and paths to tools
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesifndef EnvironmentDefined
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesinclude $(AP_WORK)/build/NWGNUhead.inc
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesendif
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These directories will be at the beginning of the include list, followed by
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# INCDIRS
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXINCDIRS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(APR)/include \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(APRUTIL)/include \
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(SRC)/include \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(NWOS) \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These flags will come after CFLAGS
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXCFLAGS += \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(EOLIST)
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# These defines will come after DEFINES
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankgXDEFINES += \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(EOLIST)
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# These flags will be added to the link.opt file
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankgXLFLAGS += \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(EOLIST)
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# These values will be appended to the correct variables based on the value of
16b55a35cff91315d261d1baa776138af465c4e4fuankg# RELEASE
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesifeq "$(RELEASE)" "debug"
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXINCDIRS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXCFLAGS += \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(EOLIST)
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankgXDEFINES += \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(EOLIST)
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankgXLFLAGS += \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesendif
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesifeq "$(RELEASE)" "noopt"
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXINCDIRS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXCFLAGS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXDEFINES += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXLFLAGS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesendif
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesifeq "$(RELEASE)" "release"
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXINCDIRS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
16b55a35cff91315d261d1baa776138af465c4e4fuankgXCFLAGS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXDEFINES += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXLFLAGS += \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesendif
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These are used by the link target if an NLM is being generated
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# TARGET_nlm (see below) will be used.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_NAME = expires
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# This is used by the link '-desc ' directive.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If left blank, NLM_NAME will be used.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Expires Module
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# This is used by the '-threadname' directive. If left blank,
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# NLM_NAME Thread will be used.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_THREAD_NAME = Expires Module
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified, it will override VERSION value in
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# $(AP_WORK)/build/NWGNUenvironment.inc
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_VERSION =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified, it will override the default of 64K
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_STACK_SIZE = 8192
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified it will be used by the link '-entry' directive
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_ENTRY_SYM =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified it will be used by the link '-exit' directive
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_EXIT_SYM =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified it will be used by the link '-check' directive
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_CHECK_SYM =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If these are specified it will be used by the link '-flags' directive
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_FLAGS =
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# If this is specified it will be linked in with the XDCData option in the def
b387b9d37fc71c534f4718777454a8f5a1169017fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
16b55a35cff91315d261d1baa776138af465c4e4fuankg# by setting APACHE_UNIPROC in the environment
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesXDCDATA =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If there is an NLM target, put it here
0b2a6b63977ab27352a0b525bdad1e1982a1c0b1bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesTARGET_nlm = \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(OBJDIR)/expires.nlm \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
0662ed52e814f8f08ef0e09956413a792584eddffuankg
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If there is an LIB target, put it here
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesTARGET_lib = \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# These are the OBJ files needed to create the NLM target above.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# Paths must all use the '/' character
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesFILES_nlm_objs = \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(OBJDIR)/mod_expires.o \
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These are the LIB files needed to create the NLM target above.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These will be added as a library command in the link.opt file.
0662ed52e814f8f08ef0e09956413a792584eddffuankg#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesFILES_nlm_libs = \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(PRELUDE) \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These are the modules that the above NLM target depends on to load.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These will be added as a module command in the link.opt file.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesFILES_nlm_modules = \
0662ed52e814f8f08ef0e09956413a792584eddffuankg aprlib \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg libc \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If the nlm has a msg file, put it's path here
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgFILE_nlm_msg =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If the nlm has a hlp file put it's path here
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesFILE_nlm_hlp =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
0b2a6b63977ab27352a0b525bdad1e1982a1c0b1bnicholesFILE_nlm_copyright =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# Any additional imports go here
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesFILES_nlm_Ximports = \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes @aprlib.imp \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes @httpd.imp \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes @libc.imp \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# Any symbols exported to here
38a5d7d5966cc1b30d0a1cdac9cea0023eabd6f8fuankg#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesFILES_nlm_exports = \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes expires_module \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# These are the OBJ files needed to create the LIB target above.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# Paths must all use the '/' character
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesFILES_lib_objs = \
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $(EOLIST)
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# implement targets and dependancies (leave this section alone)
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankglibs :: $(OBJDIR) $(TARGET_lib)
16b55a35cff91315d261d1baa776138af465c4e4fuankg
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesnlms :: libs $(TARGET_nlm)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# Updated this target to create necessary directories and copy files to the
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesinstall :: nlms FORCE
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# Any specialized rules here
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# Include the 'tail' makefile that has targets that depend on variables defined
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# in this makefile
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesinclude $(APBUILD)/NWGNUtail.inc
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes