summaryrefslogtreecommitdiff
path: root/build/NWGNUtail.inc
diff options
context:
space:
mode:
Diffstat (limited to 'build/NWGNUtail.inc')
-rw-r--r--build/NWGNUtail.inc21
1 files changed, 17 insertions, 4 deletions
diff --git a/build/NWGNUtail.inc b/build/NWGNUtail.inc
index 1b34b3f37..6d76df67e 100644
--- a/build/NWGNUtail.inc
+++ b/build/NWGNUtail.inc
@@ -83,19 +83,30 @@ endif
# Generic compiler rules
#
-$(APR_WORK)\build\NWGNUversion.inc : $(APR_WORK)\include\apr_version.h $(APR_WORK)\build\nw_ver.awk
+ifneq ($(MAKECMDGOALS),clean)
+$(APR_WORK)\build\NWGNUversion.inc : $(APR_WORK)\build\nw_ver.awk $(APR_WORK)\include\apr_version.h
@echo Generating $(subst /,\,$@)
- awk -f $(APR_WORK)\build\nw_ver.awk $(APR_WORK)\include\apr_version.h > $(APR_WORK)\build\NWGNUversion.inc
+ @$(AWK) -f $^ > $@
-include $(APR_WORK)\build\NWGNUversion.inc
ifneq "$(strip $(VERSION_STR))" ""
VERSION_INC = $(APR_WORK)\build\NWGNUversion.inc
else
-VERSION = 1,0,0
-VERSION_STR = 1.0.0
+VERSION = 0,9,0
+VERSION_STR = 0.9.0
+endif
+endif
+
+ifeq "$(words $(strip $(TARGET_nlm)))" "1"
+INCLUDE_BLDCMDS=1
endif
+ifeq "$(words $(strip $(TARGET_lib)))" "1"
+INCLUDE_BLDCMDS=1
+endif
+
+ifeq "$(INCLUDE_BLDCMDS)" "1"
$(OBJDIR)/%.o: %.c $(OBJDIR)\$(NLM_NAME)_cc.opt
@echo Compiling $<
@@ -150,6 +161,8 @@ ifneq "$(strip $(XDEFINES))" ""
@echo $(XDEFINES) >> $@
endif
+endif # one target nlm
+
#
# Rules to build libraries
#