NWGNUmakefile revision bb2b38cd44b032118359afbc743efbea12f48e61
183bea41fa640dc8117f3eb45ff935cd81377a84Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# Declare the sub-directories to be built here
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenSUBDIRS = \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# Get the 'head' of the build environment. This includes default targets and
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# paths to tools
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# build this level's files
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# Make sure all needed macro's are defined
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These directories will be at the beginning of the include list, followed by
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# INCDIRS
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXINCDIRS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These flags will come after CFLAGS
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXCFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These defines will come after DEFINES
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXDEFINES += \
d8702d15ee7721ed1fcfc8f00a589970bd6b3598Timo Sirainen $(EOLIST)
d8702d15ee7721ed1fcfc8f00a589970bd6b3598Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These flags will be added to the link.opt file
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXLFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These values will be appended to the correct variables based on the value of
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# RELEASE
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenifeq "$(RELEASE)" "debug"
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXINCDIRS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXCFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXDEFINES += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXLFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenendif
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenifeq "$(RELEASE)" "noopt"
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXINCDIRS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXCFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXDEFINES += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXLFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenendif
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenifeq "$(RELEASE)" "release"
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXINCDIRS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXCFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXDEFINES += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXLFLAGS += \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenendif
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These are used by the link target if an NLM is being generated
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# TARGET_nlm (see below) will be used.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenNLM_NAME =
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# This is used by the link '-desc ' directive.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If left blank, NLM_NAME will be used.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenNLM_DESCRIPTION =
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# This is used by the '-threadname' directive. If left blank,
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# NLM_NAME Thread will be used.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenNLM_THREAD_NAME =
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If this is specified, it will override VERSION value in
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenNLM_VERSION =
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen#
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen# If this is specified, it will override the default of 64K
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen#
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo SirainenNLM_STACK_SIZE =
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen
57593ca3c443884bac880b8deff7c0655ddd9a30Timo Sirainen#
57593ca3c443884bac880b8deff7c0655ddd9a30Timo Sirainen# If this is specified it will be used by the link '-entry' directive
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen#
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo SirainenNLM_ENTRY_SYM =
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If this is specified it will be used by the link '-exit' directive
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenNLM_EXIT_SYM =
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo Sirainen# If this is specified it will be used by the link '-check' directive
7c849dbc7be089175c1a83a84ee7249ed695810dTimo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenNLM_CHECK_SYM =
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If these are specified it will be used by the link '-flags' directive
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenNLM_FLAGS =
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If this is specified it will be linked in with the XDCData option in the def
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# by setting APACHE_UNIPROC in the environment
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenXDCDATA =
66c3f635f2f33905af527d49b27f95322aa7dfa7Timo Sirainen
66c3f635f2f33905af527d49b27f95322aa7dfa7Timo Sirainen#
66c3f635f2f33905af527d49b27f95322aa7dfa7Timo Sirainen# If there is an NLM target, put it here
66c3f635f2f33905af527d49b27f95322aa7dfa7Timo Sirainen#
66c3f635f2f33905af527d49b27f95322aa7dfa7Timo SirainenTARGET_nlm = \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(OBJDIR)/authanon.nlm \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(OBJDIR)/authdbm.nlm \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(OBJDIR)/digest.nlm \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If there is an LIB target, put it here
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenTARGET_lib = \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These are the OBJ files needed to create the NLM target above.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# Paths must all use the '/' character
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenFILES_nlm_objs = \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These are the LIB files needed to create the NLM target above.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These will be added as a library command in the link.opt file.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenFILES_nlm_libs = \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen $(EOLIST)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These are the modules that the above NLM target depends on to load.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# These will be added as a module command in the link.opt file.
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenFILES_nlm_modules = \
7c849dbc7be089175c1a83a84ee7249ed695810dTimo Sirainen $(EOLIST)
7c849dbc7be089175c1a83a84ee7249ed695810dTimo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If the nlm has a msg file, put it's path here
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
4a0641e1ff10f0b0299fd36baf38057c54268e48Timo SirainenFILE_nlm_msg =
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen# If the nlm has a hlp file put it's path here
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen#
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo SirainenFILE_nlm_hlp =
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen#
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen#
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo SirainenFILE_nlm_copyright =
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
$(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
copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc