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 :: chkapr $(NWOS)/httpd.imp $(NWOS)/chartables.c
27 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
28 @echo $(DL)GEN $@$(DL)
29 $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | $(SORT) >$@
31 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
32 @echo $(DL)GEN $@$(DL)
35 cc.opt : NWGNUmakefile $(APBUILD)/NWGNUenvironment.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUhead.inc
36 @echo $(DL)-P$(DL)> $@
37 @echo $(DL)-EP$(DL)>> $@
38 @echo $(DL)-nosyspath$(DL)>> $@
39 @echo $(DL)-w nocmdline$(DL)>> $@
40 @echo $(DL)$(DEFINES)$(DL)>> $@
41 @echo $(DL)-I$(SRC)/include$(DL)>> $@
42 @echo $(DL)-I$(HTTPD)$(DL)>> $@
43 @echo $(DL)-I$(STDMOD)/aaa$(DL)>> $@
44 @echo $(DL)-I$(STDMOD)/core$(DL)>> $@
45 @echo $(DL)-I$(NWOS)$(DL)>> $@
46 @echo $(DL)-I$(SERVER)/mpm/netware$(DL)>> $@
47 @echo $(DL)-I$(APR)/include$(DL)>> $@
48 @echo $(DL)-I$(APRUTIL)/include$(DL)>> $@
49 @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@
51 $(PCRE)/%.h: $(PCRE)/%.h.generic
55 $(PCRE)/%.h: $(PCRE)/%.hw
59 ifneq "$(BUILDTOOL_AS_NLM)" "1"
61 $(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c $(FILES_prebuild_headers)
62 @echo $(DL)GEN $@$(DL)
66 @echo $(DL)Creating Build Helper $@$(DL)
67 @$(WIN_CC) $(WIN_CFLAGS) -DHAVE_CONFIG_H $< -o $@
69 $(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
70 @echo $(DL)GEN $@$(DL)
74 @echo $(DL)Creating Build Helper $@$(DL)
75 @$(WIN_CC) $(WIN_CFLAGS) -DCROSS_COMPILE $< -o $@
79 ifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
80 $(error Error: required source $(NWOS)/chartables.c not found!)
83 ifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
84 $(error Error: required header $(NWOS)/test_char.h not found!)
90 # Check for minimum APR version
92 chkapr: $(APR)/build/nw_ver.awk $(APR)/include/apr_version.h
93 @echo $(DL)Checking for APR version...$(DL)
94 @$(AWK) -v WANTED=$(APR_WANTED) -f $^
97 # You can use this target if all that is needed is to copy files to the
100 install :: nlms FORCE
103 $(call DEL,$(PCRE)/config.h)
104 $(call DEL,$(PCRE)/pcre.h)
105 $(call DEL,$(NWOS)/httpd.imp)
106 $(call DEL,nw_export.i)
108 $(call DEL,NWGNUversion.inc)
109 ifneq "$(BUILDTOOL_AS_NLM)" "1"
110 $(call DEL,$(NWOS)/chartables.c)
111 $(call DEL,$(NWOS)/test_char.h)
112 $(call DEL,dftables.exe)
113 $(call DEL,gen_test_char.exe)
117 # Include the 'tail' makefile that has targets that depend on variables defined
121 include $(APBUILD)/NWGNUtail.inc