summaryrefslogtreecommitdiffstats
path: root/build/NWGNUtail.inc
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2002-10-17 01:50:01 +0200
committerBradley Nicholes <bnicholes@apache.org>2002-10-17 01:50:01 +0200
commit62195dae7f1cee42a77d45b76688bd7849043ef6 (patch)
treec084de8762c222d72c1dc9821b62a2531819113f /build/NWGNUtail.inc
parentAWK script that extracts the version string to be later used in the link of each (diff)
downloadapache2-62195dae7f1cee42a77d45b76688bd7849043ef6.tar.xz
apache2-62195dae7f1cee42a77d45b76688bd7849043ef6.zip
General make file changes to extract the version string and
create NWGNUversion.inc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97250 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/NWGNUtail.inc')
-rw-r--r--build/NWGNUtail.inc17
1 files changed, 16 insertions, 1 deletions
diff --git a/build/NWGNUtail.inc b/build/NWGNUtail.inc
index a5ed71ba22..40c6069d58 100644
--- a/build/NWGNUtail.inc
+++ b/build/NWGNUtail.inc
@@ -50,6 +50,7 @@ $(NLM_NAME)_LINKOPT_DEPENDS = \
NWGNUmakefile \
$(AP_WORK)\build\NWGNUtail.inc \
$(CUSTOM_INI) \
+ $(VERSION_INC) \
$(EOLIST)
ifeq "$(words $(strip $(TARGET_lib)))" "1"
@@ -77,6 +78,20 @@ endif
# Generic compiler rules
#
+$(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\include\ap_release.h $(AP_WORK)\build\nw_ver.awk
+ @echo Generating $(subst /,\,$@)
+ awk -f $(AP_WORK)\build\nw_ver.awk $(AP_WORK)\include\ap_release.h > $(AP_WORK)\build\NWGNUversion.inc
+
+-include $(AP_WORK)\build\NWGNUversion.inc
+
+ifneq "$(strip $(VERSION_STR))" ""
+VERSION_INC = $(AP_WORK)\build\NWGNUversion.inc
+else
+VERSION = 2,0,0
+VERSION_STR = 2.0.0
+endif
+
+
$(OBJDIR)/%.o: %.c $(OBJDIR)\cc.opt
@echo Compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
@@ -279,7 +294,7 @@ else # more than one target so look for individual makefiles.
ifndef NO_LICENSE_FILE
-$(OBJDIR)/%.nlm: NWGNU% $(AP_WORK)\build\NWGNUhead.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUenvironment.inc $(CUSTOM_INI) FORCE
+$(OBJDIR)/%.nlm: NWGNU% $(AP_WORK)\build\NWGNUhead.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUenvironment.inc $(CUSTOM_INI) $(VERSION_INC) FORCE
@echo Calling $<
$(MAKE) -f $< $(MAKECMDGOALS) RELEASE=$(RELEASE)
$(CMD) echo.