NWGNUmakefile revision a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Declare the sub-directories to be built here
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingSUBDIRS = \
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(APR_WORK)/build \
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(EOLIST)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Get the 'head' of the build environment. This includes default targets and
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# paths to tools
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldinginclude $(AP_WORK)/build/NWGNUhead.inc
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# build this level's files
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingFILES_prebuild_headers = \
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(SRC)/include/ap_config_layout.h \
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(NWOS)/test_char.h \
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(PCRE)/config.h \
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(PCRE)/pcre.h \
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(EOLIST)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingnlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldinglibs :: chkapr $(NWOS)/chartables.c
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(DAV)/main/dav.imp : make_nw_export.awk $(DAV)/main/mod_dav.h
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)GEN $@$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | $(SORT) >$@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)GEN $@$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | $(SORT) >$@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingnw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)GEN $@$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(CC) $< @cc.opt
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingcc.opt : NWGNUmakefile $(APBUILD)/NWGNUenvironment.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUhead.inc
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-P$(DL)> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-EP$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-nosyspath$(DL)>> $@
a1f58f2a65234ffcd427b736eeb777ebfa8699edjwoolley @echo $(DL)-w nocmdline$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)$(DEFINES)$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(SRC)/include$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(HTTPD)$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(STDMOD)/aaa$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(STDMOD)/core$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(NWOS)$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(SERVER)/mpm/netware$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(APR)/include$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-I$(APRUTIL)/include$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(SRC)/include/ap_config_layout.h: $(NWOS)/netware_config_layout.h
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo Creating $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call COPY,$<,$@)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(PCRE)/%.h: $(PCRE)/%.h.generic
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo Creating $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call COPY,$<,$@)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(PCRE)/%.h: $(PCRE)/%.hw
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo Creating $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call COPY,$<,$@)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingifneq "$(BUILDTOOL_AS_NLM)" "1"
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)GEN $@$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $< $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding%.exe: $(PCRE)/%.c $(PCRE)/config.h $(PCRE)/pcre.h
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)Creating Build Helper $@$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(HOST_CC) $(HOST_CFLAGS) -DHAVE_CONFIG_H $< -o $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)GEN $@$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $< > $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding%.exe: $(SERVER)/%.c
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)Creating Build Helper $@$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(HOST_CC) $(HOST_CFLAGS) -DCROSS_COMPILE $< -o $@
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingelse
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(error Error: required source $(NWOS)/chartables.c not found!)
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingendif
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding$(error Error: required header $(NWOS)/test_char.h not found!)
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingendif
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingendif
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Check for minimum APR version
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingchkapr: $(APR)/build/nw_ver.awk $(APR)/include/apr_version.h
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding @echo $(DL)Checking for APR version...$(DL)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(AWK) -v WANTED=$(APR_WANTED) -f $^
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# You can use this target if all that is needed is to copy files to the
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# installation area
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldinginstall :: nlms FORCE
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingclean ::
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,$(SRC)/include/ap_config_layout.h)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,$(PCRE)/config.h)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,$(PCRE)/pcre.h)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,$(DAV)/main/dav.imp)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,$(NWOS)/httpd.imp)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,nw_export.i)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,cc.opt)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,NWGNUversion.inc)
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingifneq "$(BUILDTOOL_AS_NLM)" "1"
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,$(NWOS)/chartables.c)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,$(NWOS)/test_char.h)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,dftables.exe)
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding $(call DEL,gen_test_char.exe)
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingendif
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Include the 'tail' makefile that has targets that depend on variables defined
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# in this makefile
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldinginclude $(APBUILD)/NWGNUtail.inc
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding