NWGNUmakefile revision cc319b1efed8edecf2e68e4109406f48ca5af6ef
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala# Declare the sub-directories to be built here
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg $(APR_WORK)\build \
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala# Get the 'head' of the build environment. This includes default targets and
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala# paths to tools
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosińskiinclude $(AP_WORK)\build\NWGNUhead.inc
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński# build this level's files
e6c36b3bb9fa1c5be9ecb416ec7ebbd6fec74620jucabluesFILES_prebuild_headers = \
239d123ab0295968f8af7fd8227a1cf1ebb27002kiiralanlms :: chkapr $(NWOS)/httpd.imp $(NWOS)/chartables.c
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala @echo Generating $(subst /,\,$@)
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | sort >$@
239d123ab0295968f8af7fd8227a1cf1ebb27002kiiralanw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala @echo Generating $(subst /,\,$@)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskicc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński $(CHK) $@ $(DEL) $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -P >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -EP >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -nosyspath >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -w nocmdline >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo $(DEFINES) >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -DCORE_PRIVATE >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -I..\include >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -I..\modules\http >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -I..\modules\aaa >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -I..\modules\core >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -I..\os\netware >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -I..\server\mpm\netware >> $@
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński @echo -I$(APR)\include >> $@
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński @echo -I$(APRUTIL)\include >> $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo -ir $(NOVELLLIBC) >> $@
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating $(subst /,\,$@)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński copy $< $(subst /,\,$(PCRE))\$(@F)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiifneq "$(BUILDTOOL_AS_NLM)" "1"
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński$(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c $(FILES_prebuild_headers)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating $(subst /,\,$@)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński%.exe: $(PCRE)/%.c
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating Build Helper $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @$(WIN_CC) $(WIN_CFLAGS) $< -o $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński$(NWOS)/test_char.h: gen_test_char.exe $(AP_WORK)/server/gen_test_char.c
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating $(subst /,\,$@)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński%.exe: $(AP_WORK)/server/%.c
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating Build Helper $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @$(WIN_CC) $(WIN_CFLAGS) -DCROSS_COMPILE $< -o $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński$(error Error: required source $(abspath $(NWOS)/chartables.c) not found!)
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosińskiifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński$(error Error: required header $(abspath $(NWOS)/test_char.h) not found!)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński# Check for minimum APR version
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskichkapr: $(APR)\build\nw_ver.awk $(APR)\include\apr_version.h
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Checking for APR version...
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @$(AWK) -v WANTED=$(APR_WANTED) -f $^
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński# You can use this target if all that is needed is to copy files to the
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński# installation area
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiinstall :: nlms FORCE
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński $(CHK) $(subst /,\,$(PCRE))\config.h $(DEL) $(subst /,\,$(PCRE))\config.h
49d5f79a53a49f94f221ef19257bd2577a384b68Krzysztof Kosiński $(CHK) $(subst /,\,$(PCRE))\pcre.h $(DEL) $(subst /,\,$(PCRE))\pcre.h
49d5f79a53a49f94f221ef19257bd2577a384b68Krzysztof Kosiński $(CHK) $(subst /,\,$(NWOS))\httpd.imp $(DEL) $(subst /,\,$(NWOS))\httpd.imp
61e85378bd8a5f62fc61100353ae32890127ddabKrzysztof Kosiński $(CHK) NWGNUversion.inc $(DEL) NWGNUversion.inc
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdgifneq "$(BUILDTOOL_AS_NLM)" "1"
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg $(CHK) $(subst /,\,$(NWOS))\chartables.c $(DEL) $(subst /,\,$(NWOS))\chartables.c
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński $(CHK) $(subst /,\,$(NWOS))\test_char.h $(DEL) $(subst /,\,$(NWOS))\test_char.h
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg# Include the 'tail' makefile that has targets that depend on variables defined
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński# in this makefile
b0fc1b5cad067af61ffdc6ff82667bfea7ef3f77kiiralainclude $(AP_WORK)\build\NWGNUtail.inc