NWGNUmakefile revision 9b761068843e8072da6d00a5d59972bdba793426
883N/A#
883N/A# Declare the sub-directories to be built here
883N/A#
883N/A
883N/ASUBDIRS = \
883N/A $(APR_WORK)/build \
883N/A $(EOLIST)
883N/A
883N/A#
883N/A# Get the 'head' of the build environment. This includes default targets and
883N/A# paths to tools
883N/A#
883N/A
883N/Ainclude $(AP_WORK)/build/NWGNUhead.inc
883N/A
883N/A#
883N/A# build this level's files
883N/A
883N/AFILES_prebuild_headers = \
883N/A $(SRC)/include/ap_config_layout.h \
883N/A $(NWOS)/test_char.h \
883N/A $(PCRE)/config.h \
883N/A $(PCRE)/pcre.h \
883N/A $(EOLIST)
883N/A
883N/Anlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp
883N/A
883N/Alibs :: chkapr $(NWOS)/chartables.c
883N/A
883N/A$(DAV)/main/dav.imp : make_nw_export.awk $(DAV)/main/mod_dav.h
883N/A @echo $(DL)GEN $@$(DL)
883N/A $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
883N/A
883N/A$(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
883N/A @echo $(DL)GEN $@$(DL)
883N/A $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
883N/A
883N/Anw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
883N/A @echo $(DL)GEN $@$(DL)
883N/A $(CC) $< @cc.opt
883N/A
883N/Acc.opt : NWGNUmakefile $(APBUILD)/NWGNUenvironment.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUhead.inc
883N/A @echo $(DL)-P$(DL)> $@
883N/A @echo $(DL)-EP$(DL)>> $@
883N/A @echo $(DL)-nosyspath$(DL)>> $@
883N/A @echo $(DL)-w nocmdline$(DL)>> $@
883N/A @echo $(DL)$(DEFINES)$(DL)>> $@
883N/A @echo $(DL)-I$(SRC)/include$(DL)>> $@
883N/A @echo $(DL)-I$(HTTPD)$(DL)>> $@
883N/A @echo $(DL)-I$(STDMOD)/aaa$(DL)>> $@
883N/A @echo $(DL)-I$(STDMOD)/core$(DL)>> $@
883N/A @echo $(DL)-I$(NWOS)$(DL)>> $@
883N/A @echo $(DL)-I$(SERVER)/mpm/netware$(DL)>> $@
883N/A @echo $(DL)-I$(APR)/include$(DL)>> $@
883N/A @echo $(DL)-I$(APRUTIL)/include$(DL)>> $@
883N/A @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@
883N/A
883N/A$(SRC)/include/ap_config_layout.h: $(NWOS)/netware_config_layout.h
883N/A @echo Creating $@
883N/A $(call COPY,$<,$@)
887N/A
887N/A$(PCRE)/%.h: $(PCRE)/%.h.generic
887N/A @echo Creating $@
913N/A $(call COPY,$<,$@)
913N/A
913N/A$(PCRE)/%.h: $(PCRE)/%.hw
913N/A @echo Creating $@
883N/A $(call COPY,$<,$@)
883N/A
883N/Aifneq "$(BUILDTOOL_AS_NLM)" "1"
883N/A
$(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c
@echo $(DL)GEN $@$(DL)
$< $@
%.exe: $(PCRE)/%.c $(PCRE)/config.h $(PCRE)/pcre.h
@echo $(DL)Creating Build Helper $@$(DL)
$(HOST_CC) $(HOST_CFLAGS) -DHAVE_CONFIG_H $< -o $@
$(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
@echo $(DL)GEN $@$(DL)
$< > $@
%.exe: $(SERVER)/%.c
@echo $(DL)Creating Build Helper $@$(DL)
$(HOST_CC) $(HOST_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 $(DL)Checking for APR version...$(DL)
$(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 ::
$(call DEL,$(SRC)/include/ap_config_layout.h)
$(call DEL,$(PCRE)/config.h)
$(call DEL,$(PCRE)/pcre.h)
$(call DEL,$(DAV)/main/dav.imp)
$(call DEL,$(NWOS)/httpd.imp)
$(call DEL,nw_export.i)
$(call DEL,cc.opt)
$(call DEL,NWGNUversion.inc)
ifneq "$(BUILDTOOL_AS_NLM)" "1"
$(call DEL,$(NWOS)/chartables.c)
$(call DEL,$(NWOS)/test_char.h)
$(call DEL,dftables.exe)
$(call DEL,gen_test_char.exe)
endif
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc