#
# Additional general defines
#
-VERSION = 2,0,0
EnvironmentDefined = 1
endif # ifndef EnvironmentDefined
nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
@echo Generating $(subst /,\,$@)
$(CC) $< @cc.opt
-
+
cc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
$(CHK) $@ $(DEL) $@
@echo -P >> $@
clean ::
$(CHK) nw_export.i $(DEL) nw_export.i
$(CHK) cc.opt $(DEL) cc.opt
+ $(CHK) NWGNUversion.inc $(DEL) NWGNUversion.inc
$(CHK) $(subst /,\,$(APR))\include\apr.h $(DEL) $(subst /,\,$(APR))\include\apr.h
$(CHK) $(subst /,\,$(APRUTIL))\include\apu.h $(DEL) $(subst /,\,$(APRUTIL))\include\apu.h
$(CHK) $(subst /,\,$(APRUTIL))\include\apr_ldap.h $(DEL) $(subst /,\,$(APRUTIL))\include\apr_ldap.h
NWGNUmakefile \
$(AP_WORK)\build\NWGNUtail.inc \
$(CUSTOM_INI) \
+ $(VERSION_INC) \
$(EOLIST)
ifeq "$(words $(strip $(TARGET_lib)))" "1"
# 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
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.