NWGNUmakefile revision a400161a259d6d9fd47a47fd9a4bb413fd85e3bc
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# Declare the sub-directories to be built here
6736c640e65e06990ef33af71ee81fac4df4ff5fjim#
0361488d59792d052a9f8024c0e5a1ef909252e6rpluem
0361488d59792d052a9f8024c0e5a1ef909252e6rpluemSUBDIRS = \
0361488d59792d052a9f8024c0e5a1ef909252e6rpluem $(APR_WORK)/build \
6135cc8178d75a52828ad225b1d568cd1e97799erpluem $(EOLIST)
6135cc8178d75a52828ad225b1d568cd1e97799erpluem
6135cc8178d75a52828ad225b1d568cd1e97799erpluem#
44761f3e3072cf78a4997a88bb9a515ca101a1f4covener# Get the 'head' of the build environment. This includes default targets and
44761f3e3072cf78a4997a88bb9a515ca101a1f4covener# paths to tools
44761f3e3072cf78a4997a88bb9a515ca101a1f4covener#
2ba1586475aa4ec972ca7c19b06d53bf76f0ee7efuankg
2ba1586475aa4ec972ca7c19b06d53bf76f0ee7efuankginclude $(AP_WORK)/build/NWGNUhead.inc
c7502880be24058c7fc03771fda61f95bc238339sf
c7502880be24058c7fc03771fda61f95bc238339sf#
c7502880be24058c7fc03771fda61f95bc238339sf# build this level's files
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf
ca61ccd0c306c2c72df153688ba1b49f3eceed80sfFILES_prebuild_headers = \
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf $(NWOS)/test_char.h \
6bb524f1895f30265a1431afc460977d391cb36bsf $(PCRE)/config.h \
6bb524f1895f30265a1431afc460977d391cb36bsf $(PCRE)/pcre.h \
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf $(EOLIST)
6bb524f1895f30265a1431afc460977d391cb36bsf
8233250a7f6c06225752db92bf32117bd9648c1dsfnlms :: chkapr $(NWOS)/httpd.imp $(NWOS)/chartables.c
8233250a7f6c06225752db92bf32117bd9648c1dsf
8233250a7f6c06225752db92bf32117bd9648c1dsf$(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
b40bfdb714672f972887f9f1f1e154e00125bb68covener @echo Generating $(subst /,\,$@)
b40bfdb714672f972887f9f1f1e154e00125bb68covener $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | sort >$@
b40bfdb714672f972887f9f1f1e154e00125bb68covener
b40bfdb714672f972887f9f1f1e154e00125bb68covenernw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo Generating $(subst /,\,$@)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(CC) $< @cc.opt
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrincc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin $(CHK) $@ $(DEL) $@
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin @echo -P >> $@
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin @echo -EP >> $@
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin @echo -nosyspath >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -w nocmdline >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo $(DEFINES) >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -DCORE_PRIVATE >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -I..\include >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -I..\modules\http >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -I..\modules\aaa >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -I..\modules\core >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -I..\os\netware >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -I..\server\mpm\netware >> $@
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung @echo -I$(APR)\include >> $@
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick @echo -I$(APRUTIL)\include >> $@
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick @echo -ir $(NOVELLLIBC) >> $@
0827cb14e550f6f65018431c22c2c913631c8f25kbrand
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.h.generic
ae600ca541efc686b34f8b1f21bd3d0741d37674covener @echo Creating $(subst /,\,$@)
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick copy $< $(subst /,\,$(PCRE))\$(@F)
cfa64348224b66dd1c9979b809406c4d15b1c137fielding
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim$(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
cfa64348224b66dd1c9979b809406c4d15b1c137fielding @echo Creating $(subst /,\,$@)
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim copy $< $(subst /,\,$(PCRE))\$(@F)
cfa64348224b66dd1c9979b809406c4d15b1c137fielding
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajimifneq "$(BUILDTOOL_AS_NLM)" "1"
cfa64348224b66dd1c9979b809406c4d15b1c137fielding
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim$(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c $(FILES_prebuild_headers)
cfa64348224b66dd1c9979b809406c4d15b1c137fielding @echo Creating $(subst /,\,$@)
@$< $@
%.exe: $(PCRE)/%.c
@echo Creating Build Helper $@
@$(WIN_CC) $(WIN_CFLAGS) -DHAVE_CONFIG_H $< -o $@
$(NWOS)/test_char.h: gen_test_char.exe $(AP_WORK)/server/gen_test_char.c
@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) $(subst /,\,$(PCRE))\config.h $(DEL) $(subst /,\,$(PCRE))\config.h
$(CHK) $(subst /,\,$(PCRE))\pcre.h $(DEL) $(subst /,\,$(PCRE))\pcre.h
$(CHK) $(subst /,\,$(NWOS))\httpd.imp $(DEL) $(subst /,\,$(NWOS))\httpd.imp
$(CHK) nw_export.i $(DEL) nw_export.i
$(CHK) cc.opt $(DEL) cc.opt
$(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