NWGNUautoindex revision ac7985784d08a3655291f24f711812b4d8b1cbcf
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco#
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco# Make sure all needed macro's are defined
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# Get the 'head' of the build environment if necessary. This includes default
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# targets and paths to tools
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Koscoifndef EnvironmentDefined
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Koscoinclude $(AP_WORK)\build\NWGNUhead.inc
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbyeendif
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco# These directories will be at the beginning of the include list, followed by
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco# INCDIRS
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco#
2a335dc8289c2018c8311c41a05286a205e754c4Lubos KoscoXINCDIRS += \
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos Kosco $(AP_WORK)/include \
67b14513c549ae0027ba7590e736b3dd3281db7cLubos Kosco $(NWOS) \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(AP_WORK)/modules/arch/netware \
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco $(AP_WORK)/modules/http \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(APR)/include \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(APRUTIL)/include \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(APR) \
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# These flags will come after CFLAGS
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXCFLAGS += \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# These defines will come after DEFINES
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXDEFINES += \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# These flags will be added to the link.opt file
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXLFLAGS += \
37187cd476e30232cba3afb116e079cb640f984eLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# These values will be appended to the correct variables based on the value of
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco# RELEASE
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco#
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Koscoifeq "$(RELEASE)" "debug"
2a335dc8289c2018c8311c41a05286a205e754c4Lubos KoscoXINCDIRS += \
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco $(EOLIST)
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco
2a335dc8289c2018c8311c41a05286a205e754c4Lubos KoscoXCFLAGS += \
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco $(EOLIST)
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXDEFINES += \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXLFLAGS += \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(EOLIST)
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlenendif
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Koscoifeq "$(RELEASE)" "noopt"
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXINCDIRS += \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeXCFLAGS += \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXDEFINES += \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
2a335dc8289c2018c8311c41a05286a205e754c4Lubos KoscoXLFLAGS += \
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco $(EOLIST)
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Koscoendif
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Koscoifeq "$(RELEASE)" "release"
2a335dc8289c2018c8311c41a05286a205e754c4Lubos KoscoXINCDIRS += \
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco $(EOLIST)
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco
2a335dc8289c2018c8311c41a05286a205e754c4Lubos KoscoXCFLAGS += \
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco $(EOLIST)
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXDEFINES += \
7224b1456affc41e89cf46eda1e0b74a044bcc93Lubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoXLFLAGS += \
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco $(EOLIST)
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Koscoendif
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# These are used by the link target if an NLM is being generated
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# This is used by the link 'name' directive to name the nlm. If left blank
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# TARGET_nlm (see below) will be used.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoNLM_NAME = autoindex
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# This is used by the link '-desc ' directive.
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# If left blank, NLM_NAME will be used.
2a335dc8289c2018c8311c41a05286a205e754c4Lubos Kosco#
2a335dc8289c2018c8311c41a05286a205e754c4Lubos KoscoNLM_DESCRIPTION = Apache $(VERSION_STR) Autoindex Module
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# This is used by the '-threadname' directive. If left blank,
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# NLM_NAME Thread will be used.
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoNLM_THREAD_NAME = Autoindex Module
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco# If this is specified, it will override VERSION value in
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# $(AP_WORK)\build\NWGNUenvironment.inc
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoNLM_VERSION =
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# If this is specified, it will override the default of 64K
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos Kosco#
fb96d0f1ab431db23ef75c52867d8261acda9b0aLubos KoscoNLM_STACK_SIZE = 8192
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM = _LibCPrelude
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM = _LibCPostlude
#
# 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 = AUTOUNLOAD, PSEUDOPREEMPTION
#
# 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)/autoindex.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_autoindex.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 = \
libcpre.o \
$(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 = \
@$(APR)/aprlib.imp \
@$(NWOS)/httpd.imp \
@libc.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
autoindex_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 $(AP_WORK)\build\NWGNUtail.inc