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 = \
20 $(SRC)/include/ap_config_layout.h \
26 nlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp
28 libs :: chkapr $(NWOS)/chartables.c
30 $(DAV)/main/dav.imp : make_nw_export.awk $(DAV)/main/mod_dav.h
31 @echo $(DL)GEN $@$(DL)
32 $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
34 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
35 @echo $(DL)GEN $@$(DL)
36 $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
38 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
39 @echo $(DL)GEN $@$(DL)
42 cc.opt : NWGNUmakefile $(APBUILD)/NWGNUenvironment.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUhead.inc
43 @echo $(DL)-P$(DL)> $@
44 @echo $(DL)-EP$(DL)>> $@
45 @echo $(DL)-nosyspath$(DL)>> $@
46 @echo $(DL)-w nocmdline$(DL)>> $@
47 @echo $(DL)$(DEFINES)$(DL)>> $@
48 @echo $(DL)-I$(SRC)/include$(DL)>> $@
49 @echo $(DL)-I$(HTTPD)$(DL)>> $@
50 @echo $(DL)-I$(STDMOD)/aaa$(DL)>> $@
51 @echo $(DL)-I$(STDMOD)/core$(DL)>> $@
52 @echo $(DL)-I$(NWOS)$(DL)>> $@
53 @echo $(DL)-I$(SERVER)/mpm/netware$(DL)>> $@
54 @echo $(DL)-I$(APR)/include$(DL)>> $@
55 @echo $(DL)-I$(APRUTIL)/include$(DL)>> $@
56 @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@
58 $(SRC)/include/ap_config_layout.h: $(NWOS)/netware_config_layout.h
62 $(PCRE)/%.h: $(PCRE)/%.h.generic
66 $(PCRE)/%.h: $(PCRE)/%.hw
70 ifneq "$(BUILDTOOL_AS_NLM)" "1"
72 $(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c
73 @echo $(DL)GEN $@$(DL)
76 %.exe: $(PCRE)/%.c $(PCRE)/config.h $(PCRE)/pcre.h
77 @echo $(DL)Creating Build Helper $@$(DL)
78 $(HOST_CC) $(HOST_CFLAGS) -DHAVE_CONFIG_H $< -o $@
80 $(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
81 @echo $(DL)GEN $@$(DL)
85 @echo $(DL)Creating Build Helper $@$(DL)
86 $(HOST_CC) $(HOST_CFLAGS) -DCROSS_COMPILE $< -o $@
90 ifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
91 $(error Error: required source $(NWOS)/chartables.c not found!)
94 ifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
95 $(error Error: required header $(NWOS)/test_char.h not found!)
101 # Check for minimum APR version
103 chkapr: $(APR)/build/nw_ver.awk $(APR)/include/apr_version.h
104 @echo $(DL)Checking for APR version...$(DL)
105 $(AWK) -v WANTED=$(APR_WANTED) -f $^
108 # You can use this target if all that is needed is to copy files to the
111 install :: nlms FORCE
114 $(call DEL,$(SRC)/include/ap_config_layout.h)
115 $(call DEL,$(PCRE)/config.h)
116 $(call DEL,$(PCRE)/pcre.h)
117 $(call DEL,$(DAV)/main/dav.imp)
118 $(call DEL,$(NWOS)/httpd.imp)
119 $(call DEL,nw_export.i)
121 $(call DEL,NWGNUversion.inc)
122 ifneq "$(BUILDTOOL_AS_NLM)" "1"
123 $(call DEL,$(NWOS)/chartables.c)
124 $(call DEL,$(NWOS)/test_char.h)
125 $(call DEL,dftables.exe)
126 $(call DEL,gen_test_char.exe)
130 # Include the 'tail' makefile that has targets that depend on variables defined
134 include $(APBUILD)/NWGNUtail.inc