2 # Declare the sub-directories to be built here
10 # Get the 'head' of the build environment. This includes default targets and
14 include $(AP_WORK)/build/NWGNUhead.inc
17 # build this level's files
19 FILES_prebuild_headers = \
25 nlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp
27 libs :: chkapr $(NWOS)/chartables.c
29 $(DAV)/main/dav.imp : make_nw_export.awk $(DAV)/main/mod_dav.h
30 @echo $(DL)GEN $@$(DL)
31 $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | $(SORT) >$@
33 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
34 @echo $(DL)GEN $@$(DL)
35 $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | $(SORT) >$@
37 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
38 @echo $(DL)GEN $@$(DL)
41 cc.opt : NWGNUmakefile $(APBUILD)/NWGNUenvironment.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUhead.inc
42 @echo $(DL)-P$(DL)> $@
43 @echo $(DL)-EP$(DL)>> $@
44 @echo $(DL)-nosyspath$(DL)>> $@
45 @echo $(DL)-w nocmdline$(DL)>> $@
46 @echo $(DL)$(DEFINES)$(DL)>> $@
47 @echo $(DL)-I$(SRC)/include$(DL)>> $@
48 @echo $(DL)-I$(HTTPD)$(DL)>> $@
49 @echo $(DL)-I$(STDMOD)/aaa$(DL)>> $@
50 @echo $(DL)-I$(STDMOD)/core$(DL)>> $@
51 @echo $(DL)-I$(NWOS)$(DL)>> $@
52 @echo $(DL)-I$(SERVER)/mpm/netware$(DL)>> $@
53 @echo $(DL)-I$(APR)/include$(DL)>> $@
54 @echo $(DL)-I$(APRUTIL)/include$(DL)>> $@
55 @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@
57 $(PCRE)/%.h: $(PCRE)/%.h.generic
61 $(PCRE)/%.h: $(PCRE)/%.hw
65 ifneq "$(BUILDTOOL_AS_NLM)" "1"
67 $(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c
68 @echo $(DL)GEN $@$(DL)
71 %.exe: $(PCRE)/%.c $(PCRE)/config.h $(PCRE)/pcre.h
72 @echo $(DL)Creating Build Helper $@$(DL)
73 $(HOST_CC) $(HOST_CFLAGS) -DHAVE_CONFIG_H $< -o $@
75 $(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
76 @echo $(DL)GEN $@$(DL)
80 @echo $(DL)Creating Build Helper $@$(DL)
81 $(HOST_CC) $(HOST_CFLAGS) -DCROSS_COMPILE $< -o $@
85 ifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
86 $(error Error: required source $(NWOS)/chartables.c not found!)
89 ifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
90 $(error Error: required header $(NWOS)/test_char.h not found!)
96 # Check for minimum APR version
98 chkapr: $(APR)/build/nw_ver.awk $(APR)/include/apr_version.h
99 @echo $(DL)Checking for APR version...$(DL)
100 $(AWK) -v WANTED=$(APR_WANTED) -f $^
103 # You can use this target if all that is needed is to copy files to the
106 install :: nlms FORCE
109 $(call DEL,$(PCRE)/config.h)
110 $(call DEL,$(PCRE)/pcre.h)
111 $(call DEL,$(DAV)/main/dav.imp)
112 $(call DEL,$(NWOS)/httpd.imp)
113 $(call DEL,nw_export.i)
115 $(call DEL,NWGNUversion.inc)
116 ifneq "$(BUILDTOOL_AS_NLM)" "1"
117 $(call DEL,$(NWOS)/chartables.c)
118 $(call DEL,$(NWOS)/test_char.h)
119 $(call DEL,dftables.exe)
120 $(call DEL,gen_test_char.exe)
124 # Include the 'tail' makefile that has targets that depend on variables defined
128 include $(APBUILD)/NWGNUtail.inc