NWGNUmakefile revision 8492a2583e10c69f40de92f9d5da884b64d9f379
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankg# Declare the sub-directories to be built here
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankg $(APR_WORK)/build \
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankg# Get the 'head' of the build environment. This includes default targets and
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankg# paths to tools
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankginclude $(AP_WORK)/build/NWGNUhead.inc
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankg# build this level's files
7190e58eec40192c9719d2f2593471eda14e7e7cfuankgFILES_prebuild_headers = \
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankg @echo Generating $(subst /,\,$@)
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankg $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | sort >$@
95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1fuankgnw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo Generating $(subst /,\,$@)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholescc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CHK) $@ $(DEL) $@
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes @echo -P >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -EP >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -nosyspath >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -w nocmdline >> $@
ce22ce4743d79a889dca64df4459c598e2c188c7fuankg @echo $(DEFINES) >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -DCORE_PRIVATE >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I..\include >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I..\modules\http >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I..\modules\aaa >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I..\modules\core >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I..\os\netware >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I..\server\mpm\netware >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I$(APR)\include >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -I$(APRUTIL)\include >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo -ir $(NOVELLLIBC) >> $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.h.generic
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo Creating $(subst /,\,$@)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes copy $< $(subst /,\,$(PCRE))\$(@F)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo Creating $(subst /,\,$@)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes copy $< $(subst /,\,$(PCRE))\$(@F)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifneq "$(BUILDTOOL_AS_NLM)" "1"
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes$(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c $(FILES_prebuild_headers)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo Creating $(subst /,\,$@)
b387b9d37fc71c534f4718777454a8f5a1169017fuankg%.exe: $(PCRE)/%.c
b387b9d37fc71c534f4718777454a8f5a1169017fuankg @echo Creating Build Helper $@
b387b9d37fc71c534f4718777454a8f5a1169017fuankg @$(WIN_CC) $(WIN_CFLAGS) -DHAVE_CONFIG_H $< -o $@
b387b9d37fc71c534f4718777454a8f5a1169017fuankg$(NWOS)/test_char.h: gen_test_char.exe $(AP_WORK)/server/gen_test_char.c
b387b9d37fc71c534f4718777454a8f5a1169017fuankg @echo Creating $(subst /,\,$@)
cfb941e9ad5276eef7bc8f3eedcd270f30cfec35fuankg%.exe: $(AP_WORK)/server/%.c
bfd312b5e6b4bf7113ef8f655b044f93f5c18f28fuankg @echo Creating Build Helper $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(WIN_CC) $(WIN_CFLAGS) -DCROSS_COMPILE $< -o $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(error Error: required source $(NWOS)/chartables.c not found!)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(error Error: required header $(NWOS)/test_char.h not found!)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Check for minimum APR version
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeschkapr: $(APR)\build\nw_ver.awk $(APR)\include\apr_version.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo Checking for APR version...
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(AWK) -v WANTED=$(APR_WANTED) -f $^
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can use this target if all that is needed is to copy files to the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# installation area
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall :: nlms FORCE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CHK) $(subst /,\,$(PCRE))\config.h $(DEL) $(subst /,\,$(PCRE))\config.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CHK) $(subst /,\,$(PCRE))\pcre.h $(DEL) $(subst /,\,$(PCRE))\pcre.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CHK) $(subst /,\,$(NWOS))\httpd.imp $(DEL) $(subst /,\,$(NWOS))\httpd.imp
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifneq "$(BUILDTOOL_AS_NLM)" "1"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CHK) $(subst /,\,$(NWOS))\chartables.c $(DEL) $(subst /,\,$(NWOS))\chartables.c
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CHK) $(subst /,\,$(NWOS))\test_char.h $(DEL) $(subst /,\,$(NWOS))\test_char.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# in this makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(AP_WORK)/build/NWGNUtail.inc