NWGNUmakefile revision a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Declare the sub-directories to be built here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSUBDIRS = \
8492a2583e10c69f40de92f9d5da884b64d9f379fuankg $(APR_WORK)/build \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Get the 'head' of the build environment. This includes default targets and
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# paths to tools
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
8492a2583e10c69f40de92f9d5da884b64d9f379fuankginclude $(AP_WORK)/build/NWGNUhead.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# build this level's files
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILES_prebuild_headers = \
a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60fuankg $(SRC)/include/ap_config_layout.h \
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg $(NWOS)/test_char.h \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(PCRE)/config.h \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(PCRE)/pcre.h \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
943fe3052a481f6980c5a489ff767c6effb581e2fuankgnlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp
8d6e239d0e0aa0593fd93b4fef193d8c51b61b3cfuankg
8d6e239d0e0aa0593fd93b4fef193d8c51b61b3cfuankglibs :: chkapr $(NWOS)/chartables.c
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
943fe3052a481f6980c5a489ff767c6effb581e2fuankg$(DAV)/main/dav.imp : make_nw_export.awk $(DAV)/main/mod_dav.h
943fe3052a481f6980c5a489ff767c6effb581e2fuankg @echo $(DL)GEN $@$(DL)
943fe3052a481f6980c5a489ff767c6effb581e2fuankg $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | $(SORT) >$@
943fe3052a481f6980c5a489ff767c6effb581e2fuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)GEN $@$(DL)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | $(SORT) >$@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesnw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)GEN $@$(DL)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CC) $< @cc.opt
b73cd3195994247cfba2842f4b794058384114cdfuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankgcc.opt : NWGNUmakefile $(APBUILD)/NWGNUenvironment.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUhead.inc
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-P$(DL)> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-EP$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-nosyspath$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-w nocmdline$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)$(DEFINES)$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(SRC)/include$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(HTTPD)$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(STDMOD)/aaa$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(STDMOD)/core$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(NWOS)$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(SERVER)/mpm/netware$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(APR)/include$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-I$(APRUTIL)/include$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg
a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60fuankg$(SRC)/include/ap_config_layout.h: $(NWOS)/netware_config_layout.h
a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60fuankg @echo Creating $@
a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60fuankg $(call COPY,$<,$@)
a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60fuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankg$(PCRE)/%.h: $(PCRE)/%.h.generic
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo Creating $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call COPY,$<,$@)
0662ed52e814f8f08ef0e09956413a792584eddffuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankg$(PCRE)/%.h: $(PCRE)/%.hw
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo Creating $@
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call COPY,$<,$@)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgifneq "$(BUILDTOOL_AS_NLM)" "1"
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
8d6e239d0e0aa0593fd93b4fef193d8c51b61b3cfuankg$(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)GEN $@$(DL)
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg $< $@
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
8d6e239d0e0aa0593fd93b4fef193d8c51b61b3cfuankg%.exe: $(PCRE)/%.c $(PCRE)/config.h $(PCRE)/pcre.h
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)Creating Build Helper $@$(DL)
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg $(HOST_CC) $(HOST_CFLAGS) -DHAVE_CONFIG_H $< -o $@
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankg$(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)GEN $@$(DL)
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg $< > $@
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankg%.exe: $(SERVER)/%.c
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)Creating Build Helper $@$(DL)
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg $(HOST_CC) $(HOST_CFLAGS) -DCROSS_COMPILE $< -o $@
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgelse
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
7995fdac78f2c72195ecd6472b39c889ebc71fe7fuankg$(error Error: required source $(NWOS)/chartables.c not found!)
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgendif
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
7995fdac78f2c72195ecd6472b39c889ebc71fe7fuankg$(error Error: required header $(NWOS)/test_char.h not found!)
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgendif
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgendif
cc319b1efed8edecf2e68e4109406f48ca5af6effuankg
fc6b42a7c93753249b9b6ceb5186a804bf314c22fuankg#
fc6b42a7c93753249b9b6ceb5186a804bf314c22fuankg# Check for minimum APR version
fc6b42a7c93753249b9b6ceb5186a804bf314c22fuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgchkapr: $(APR)/build/nw_ver.awk $(APR)/include/apr_version.h
0662ed52e814f8f08ef0e09956413a792584eddffuankg @echo $(DL)Checking for APR version...$(DL)
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg $(AWK) -v WANTED=$(APR_WANTED) -f $^
fc6b42a7c93753249b9b6ceb5186a804bf314c22fuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can use this target if all that is needed is to copy files to the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# installation area
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall :: nlms FORCE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean ::
a98bbfa5321ae1a34a6cdfb3881bd6e4cee73f60fuankg $(call DEL,$(SRC)/include/ap_config_layout.h)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,$(PCRE)/config.h)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,$(PCRE)/pcre.h)
943fe3052a481f6980c5a489ff767c6effb581e2fuankg $(call DEL,$(DAV)/main/dav.imp)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,$(NWOS)/httpd.imp)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,nw_export.i)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,cc.opt)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,NWGNUversion.inc)
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgifneq "$(BUILDTOOL_AS_NLM)" "1"
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,$(NWOS)/chartables.c)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,$(NWOS)/test_char.h)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,dftables.exe)
0662ed52e814f8f08ef0e09956413a792584eddffuankg $(call DEL,gen_test_char.exe)
cc319b1efed8edecf2e68e4109406f48ca5af6effuankgendif
b73cd3195994247cfba2842f4b794058384114cdfuankg
34a74d61abaed4080bd369454c1f2f9730aeabaefuankg#
34a74d61abaed4080bd369454c1f2f9730aeabaefuankg# Include the 'tail' makefile that has targets that depend on variables defined
34a74d61abaed4080bd369454c1f2f9730aeabaefuankg# in this makefile
34a74d61abaed4080bd369454c1f2f9730aeabaefuankg#
34a74d61abaed4080bd369454c1f2f9730aeabaefuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes