NWGNUmakefile revision cc319b1efed8edecf2e68e4109406f48ca5af6ef
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala#
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala# Declare the sub-directories to be built here
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala#
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala
5ef6cb9428f2e6f5457e890a1c3b37f53730c07aFelipe C. da S. SanchesSUBDIRS = \
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg $(APR_WORK)\build \
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala $(EOLIST)
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala#
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala# Get the 'head' of the build environment. This includes default targets and
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala# paths to tools
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala#
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosińskiinclude $(AP_WORK)\build\NWGNUhead.inc
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala#
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński# build this level's files
fb86717633bfcfe161571aed7058ea6a39b7a69bkiirala
e6c36b3bb9fa1c5be9ecb416ec7ebbd6fec74620jucabluesFILES_prebuild_headers = \
fb86717633bfcfe161571aed7058ea6a39b7a69bkiirala $(NWOS)/test_char.h \
d9a7c806ee7f408ddb61ff4f233c9d96111ee2b5johanengelen $(PCRE)/config.h \
d9a7c806ee7f408ddb61ff4f233c9d96111ee2b5johanengelen $(PCRE)/pcre.h \
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala $(EOLIST)
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala
239d123ab0295968f8af7fd8227a1cf1ebb27002kiiralanlms :: chkapr $(NWOS)/httpd.imp $(NWOS)/chartables.c
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala$(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala @echo Generating $(subst /,\,$@)
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | sort >$@
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala
239d123ab0295968f8af7fd8227a1cf1ebb27002kiiralanw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala @echo Generating $(subst /,\,$@)
239d123ab0295968f8af7fd8227a1cf1ebb27002kiirala $(CC) $< @cc.opt
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
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
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating $(subst /,\,$@)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński copy $< $(subst /,\,$(PCRE))\$(@F)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiifneq "$(BUILDTOOL_AS_NLM)" "1"
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński$(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c $(FILES_prebuild_headers)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating $(subst /,\,$@)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @$< $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński%.exe: $(PCRE)/%.c
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @echo Creating Build Helper $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński @$(WIN_CC) $(WIN_CFLAGS) $< -o $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
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 @$< > $@
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
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ński
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskielse
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński$(error Error: required source $(abspath $(NWOS)/chartables.c) not found!)
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiendif
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński
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ńskiendif
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiendif
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński#
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński# Check for minimum APR version
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński#
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 $^
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński#
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński# You can use this target if all that is needed is to copy files to the
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński# installation area
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński#
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiinstall :: nlms FORCE
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosińskiclean ::
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) nw_export.i $(DEL) nw_export.i
61e85378bd8a5f62fc61100353ae32890127ddabKrzysztof Kosiński $(CHK) cc.opt $(DEL) cc.opt
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 $(CHK) dftables.exe $(DEL) dftables.exe
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg $(CHK) gen_test_char.exe $(DEL) gen_test_char.exe
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdgendif
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg#
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg# Include the 'tail' makefile that has targets that depend on variables defined
dab1e6a83f6d076b087a6eeec1c4fac0bb2ea202Krzysztof Kosiński# in this makefile
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński#
69ace948e6245fbb2ca7b4fa450087f7563201aajaspervdg
b0fc1b5cad067af61ffdc6ff82667bfea7ef3f77kiiralainclude $(AP_WORK)\build\NWGNUtail.inc
9f6f7e74a1ded383518676e0ecb2ccc5caa73d25tavmjong-free
c8f3a5b154d376f64172bfd35e712fa2356c1b6bKrzysztof Kosiński