# Create dependency lists based on the files available
#
-CCOPT_DEPENDS = \
+STANDARD_DEPENDS = \
$(APBUILD)/NWGNUhead.inc \
$(APBUILD)/NWGNUenvironment.inc \
$(APBUILD)/NWGNUtail.inc \
- NWGNUmakefile \
$(CUSTOM_INI) \
$(EOLIST)
-CPPOPT_DEPENDS = \
- $(APBUILD)/NWGNUhead.inc \
- $(APBUILD)/NWGNUenvironment.inc \
- $(APBUILD)/NWGNUtail.inc \
- NWGNUmakefile \
- $(CUSTOM_INI) \
- $(EOLIST)
+CCOPT_DEPENDS = $(STANDARD_DEPENDS)
$(NLM_NAME)_LINKOPT_DEPENDS = \
$(TARGET_lib) \
- $(APBUILD)/NWGNUenvironment.inc \
- NWGNUmakefile \
- $(APBUILD)/NWGNUtail.inc \
- $(CUSTOM_INI) \
+ $(STANDARD_DEPENDS) \
$(VERSION_INC) \
$(EOLIST)
LIB_NAME = $(basename $(notdir $(TARGET_lib)))
$(LIB_NAME)_LIBLST_DEPENDS = \
$(FILES_lib_objs) \
- $(APBUILD)/NWGNUenvironment.inc \
- NWGNUmakefile \
- $(APBUILD)/NWGNUtail.inc \
+ $(STANDARD_DEPENDS) \
$(CUSTOM_INI) \
$(EOLIST)
endif
ifeq "$(wildcard NWGNU$(LIB_NAME))" "NWGNU$(LIB_NAME)"
$(LIB_NAME)_LIBLST_DEPENDS += NWGNU$(LIB_NAME)
+CCOPT_DEPENDS += NWGNU$(LIB_NAME)
+else
+CCOPT_DEPENDS += NWGNUmakefile
endif
ifeq "$(wildcard NWGNU$(NLM_NAME))" "NWGNU$(NLM_NAME)"
$(NLM_NAME)_LINKOPT_DEPENDS += NWGNU$(NLM_NAME)
-CCOPT_DEPENDS += NWGNU$(NLM_NAME)
-CPPOPT_DEPENDS += NWGNU$(NLM_NAME)
+CCOPT_DEPENDS += NWGNU$(NLM_NAME)
+else
+CCOPT_DEPENDS += NWGNUmakefile
endif
+CPPOPT_DEPENDS = $(CCOPT_DEPENDS)
+
#
# Generic compiler rules
#
@echo $(DL)GEN $@$(DL)
$(AWK) -f $^ > $@
--include $(AP_WORK)/build/NWGNUversion.inc
+-include $(APBUILD)/NWGNUversion.inc
ifneq "$(strip $(VERSION_STR))" ""
-VERSION_INC = $(AP_WORK)/build/NWGNUversion.inc
+VERSION_INC = $(APBUILD)/NWGNUversion.inc
else
VERSION = 2,3,0
VERSION_STR = 2.3.0
else # We must have more than one target library so load the individual makefiles
-$(OBJDIR)/%.lib: NWGNU% $(APBUILD)/NWGNUhead.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUenvironment.inc FORCE
+$(OBJDIR)/%.lib: NWGNU% $(STANDARD_DEPENDS) FORCE
@echo $(DL)Calling $<$(DL)
$(MAKE) -f $< $(MAKECMDGOALS) RELEASE=$(RELEASE)
ifndef NO_LICENSE_FILE
-$(OBJDIR)/%.nlm: NWGNU% $(APBUILD)/NWGNUhead.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUenvironment.inc $(CUSTOM_INI) $(VERSION_INC) FORCE
+$(OBJDIR)/%.nlm: NWGNU% $($(NLM_NAME)_LINKOPT_DEPENDS) FORCE
@echo $(DL)Calling $<$(DL)
$(MAKE) -f $< $(MAKECMDGOALS) RELEASE=$(RELEASE)
@$(ECHONL)
# This is used by the link 'name' directive to name the nlm. If left blank
# TARGET_nlm (see below) will be used.
#
-NLM_NAME = modDAVFS
+NLM_NAME = moddavfs
#
# This is used by the link '-desc ' directive.
#
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
-#
-NLM_THREAD_NAME = modDAVFS Thread
+NLM_THREAD_NAME = $(NLM_NAME) Thread
#
# If this is specified, it will override VERSION value in
# If there is an NLM target, put it here
#
TARGET_nlm = \
- $(OBJDIR)/moddavfs.nlm \
+ $(OBJDIR)/$(NLM_NAME).nlm \
$(EOLIST)
#
# This is used by the link 'name' directive to name the nlm. If left blank
# TARGET_nlm (see below) will be used.
#
-NLM_NAME = modDAVLK
+NLM_NAME = moddavlk
#
# This is used by the link '-desc ' directive.
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
#
-NLM_THREAD_NAME = modDAVLK Thread
+NLM_THREAD_NAME = $(NLM_NAME) Thread
#
# If this is specified, it will override VERSION value in
# If there is an NLM target, put it here
#
TARGET_nlm = \
- $(OBJDIR)/moddavlk.nlm \
+ $(OBJDIR)/$(NLM_NAME).nlm \
$(EOLIST)
#
# This is used by the link 'name' directive to name the nlm. If left blank
# TARGET_nlm (see below) will be used.
#
-NLM_NAME = mod_DAV
+NLM_NAME = mod_dav
#
# This is used by the link '-desc ' directive.
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
#
-NLM_THREAD_NAME = mod_DAV
+NLM_THREAD_NAME = $(NLM_NAME) Thread
#
# If this is specified, it will override VERSION value in
# If there is an NLM target, put it here
#
TARGET_nlm = \
- $(OBJDIR)/mod_dav.nlm \
+ $(OBJDIR)/$(NLM_NAME).nlm \
$(EOLIST)
#
#
FILES_nlm_objs = \
$(OBJDIR)/mod_dav.o \
- $(OBJDIR)/props.o \
- $(OBJDIR)/util.o \
- $(OBJDIR)/util_lock.o \
$(OBJDIR)/liveprop.o \
+ $(OBJDIR)/props.o \
$(OBJDIR)/providers.o \
$(OBJDIR)/std_liveprop.o \
+ $(OBJDIR)/util.o \
+ $(OBJDIR)/util_lock.o \
$(EOLIST)
#