NWGNUmakefile revision 7995fdac78f2c72195ecd6472b39c889ebc71fe7
#
# Declare the sub-directories to be built here
#
SUBDIRS = \
$(APR_WORK)\build \
$(EOLIST)
#
# Get the 'head' of the build environment. This includes default targets and
# paths to tools
#
include $(AP_WORK)\build\NWGNUhead.inc
#
# build this level's files
FILES_prebuild_headers = \
$(NWOS)/test_char.h \
$(PCRE)/config.h \
$(PCRE)/pcre.h \
$(EOLIST)
nlms :: chkapr $(NWOS)/httpd.imp $(NWOS)/chartables.c
@echo Generating $(subst /,\,$@)
$(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | sort >$@
@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 >> $@
@echo -EP >> $@
@echo -nosyspath >> $@
@echo -w nocmdline >> $@
@echo $(DEFINES) >> $@
@echo -DCORE_PRIVATE >> $@
@echo -I..\include >> $@
@echo -I..\modules\http >> $@
@echo -I..\modules\aaa >> $@
@echo -I..\modules\core >> $@
@echo -I..\os\netware >> $@
@echo -I..\server\mpm\netware >> $@
@echo -I$(APR)\include >> $@
@echo -I$(APRUTIL)\include >> $@
@echo -ir $(NOVELLLIBC) >> $@
$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
@echo Creating $(subst /,\,$@)
copy $< $(subst /,\,$(PCRE))\$(@F)
ifneq "$(BUILDTOOL_AS_NLM)" "1"
@echo Creating $(subst /,\,$@)
@$< $@
%.exe: $(PCRE)/%.c
@echo Creating Build Helper $@
@$(WIN_CC) $(WIN_CFLAGS) $< -o $@
@echo Creating $(subst /,\,$@)
@$< > $@
%.exe: $(AP_WORK)/server/%.c
@echo Creating Build Helper $@
@$(WIN_CC) $(WIN_CFLAGS) -DCROSS_COMPILE $< -o $@
else
ifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
$(error Error: required source $(NWOS)/chartables.c not found!)
endif
ifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
$(error Error: required header $(NWOS)/test_char.h not found!)
endif
endif
#
# Check for minimum APR version
#
chkapr: $(APR)\build\nw_ver.awk $(APR)\include\apr_version.h
@echo Checking for APR version...
@$(AWK) -v WANTED=$(APR_WANTED) -f $^
#
# You can use this target if all that is needed is to copy files to the
# installation area
#
install :: nlms FORCE
clean ::
$(CHK) nw_export.i $(DEL) nw_export.i
$(CHK) NWGNUversion.inc $(DEL) NWGNUversion.inc
ifneq "$(BUILDTOOL_AS_NLM)" "1"
$(CHK) $(subst /,\,$(NWOS))\chartables.c $(DEL) $(subst /,\,$(NWOS))\chartables.c
$(CHK) $(subst /,\,$(NWOS))\test_char.h $(DEL) $(subst /,\,$(NWOS))\test_char.h
$(CHK) dftables.exe $(DEL) dftables.exe
$(CHK) gen_test_char.exe $(DEL) gen_test_char.exe
endif
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc