NWGNUmakefile revision 00d1c0c914426a97022d8205a875c48b211001c2
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Declare the sub-directories to be built here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesSUBDIRS = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Get the 'head' of the build environment. This includes default targets and
9b2bd54c98edb185a3985410367754ab33217362bnicholes# paths to tools
0662ed52e814f8f08ef0e09956413a792584eddffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude $(AP_WORK)/build/NWGNUhead.inc
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# build this level's files
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Make sure all needed macro's are defined
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# These directories will be at the beginning of the include list, followed by
9b2bd54c98edb185a3985410367754ab33217362bnicholes# INCDIRS
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These flags will come after CFLAGS
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These defines will come after DEFINES
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These flags will be added to the link.opt file
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These values will be appended to the correct variables based on the value of
9b2bd54c98edb185a3985410367754ab33217362bnicholes# RELEASE
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesifeq "$(RELEASE)" "debug"
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesifeq "$(RELEASE)" "noopt"
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesifeq "$(RELEASE)" "release"
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are used by the link target if an NLM is being generated
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link 'name' directive to name the nlm. If left blank
9b2bd54c98edb185a3985410367754ab33217362bnicholes# TARGET_nlm (see below) will be used.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# This is used by the link '-desc ' directive.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If left blank, NLM_NAME will be used.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_DESCRIPTION =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# This is used by the '-threadname' directive. If left blank,
9b2bd54c98edb185a3985410367754ab33217362bnicholes# NLM_NAME Thread will be used.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_THREAD_NAME =
0662ed52e814f8f08ef0e09956413a792584eddffuankg
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
9b2bd54c98edb185a3985410367754ab33217362bnicholes# $(AP_WORK)/build/NWGNUenvironment.inc
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_VERSION =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified, it will override the default of 64K
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_STACK_SIZE =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes
0662ed52e814f8f08ef0e09956413a792584eddffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified it will be used by the link '-entry' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_ENTRY_SYM =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
0662ed52e814f8f08ef0e09956413a792584eddffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified it will be used by the link '-exit' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_EXIT_SYM =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified it will be used by the link '-check' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_CHECK_SYM =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
0662ed52e814f8f08ef0e09956413a792584eddffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If these are specified it will be used by the link '-flags' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_FLAGS =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified it will be linked in with the XDCData option in the def
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
9b2bd54c98edb185a3985410367754ab33217362bnicholes# by setting APACHE_UNIPROC in the environment
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDCDATA =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If there is an NLM target, put it here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesTARGET_nlm = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxy.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxycon.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxyftp.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxyhtp.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxybalancer.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxyajp.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxyfcgi.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxyscgi.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If WITH_MOD_SERF and SERFSRC have been defined then build the mod_serf module
bf1e7c075ccc3e6597d17de7641332ff6ff92e8astrikerifdef WITH_MOD_SERF
9b2bd54c98edb185a3985410367754ab33217362bnicholesifneq "$(SERFSRC)" ""
9b2bd54c98edb185a3985410367754ab33217362bnicholesifneq "$(ZLIBSDK)" ""
9b2bd54c98edb185a3985410367754ab33217362bnicholesTARGET_nlm += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/serf.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If there is an LIB target, put it here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesTARGET_lib = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the OBJ files needed to create the NLM target above.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Paths must all use the '/' character
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_objs = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the LIB files needed to create the NLM target above.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These will be added as a library command in the link.opt file.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgFILES_nlm_libs = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the modules that the above NLM target depends on to load.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These will be added as a module command in the link.opt file.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_modules = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If the nlm has a msg file, put it's path here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILE_nlm_msg =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If the nlm has a hlp file put it's path here
0cb770e9049c8e85ede0bbe3d47904785b15f868fuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILE_nlm_hlp =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes#
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesFILE_nlm_copyright =
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Any additional imports go here
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_Ximports = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Any symbols exported to here
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgFILES_nlm_exports = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the OBJ files needed to create the LIB target above.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Paths must all use the '/' character
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_lib_objs = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# implement targets and dependancies (leave this section alone)
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgnlms :: libs $(TARGET_nlm)
0662ed52e814f8f08ef0e09956413a792584eddffuankg
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Updated this target to create necessary directories and copy files to the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall :: nlms FORCE
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Any specialized rules here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
9b2bd54c98edb185a3985410367754ab33217362bnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankginclude $(APBUILD)/NWGNUtail.inc