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