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 = \
24 nlms :: chkapr $(NWOS)/httpd.imp
26 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
27 @echo Generating $(subst /,\,$@)
28 $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | sort >$@
30 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
31 @echo Generating $(subst /,\,$@)
34 cc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
38 @echo -nosyspath >> $@
39 @echo -w nocmdline >> $@
40 @echo $(DEFINES) >> $@
41 @echo -DCORE_PRIVATE >> $@
42 @echo -I..\include >> $@
43 @echo -I..\modules\http >> $@
44 @echo -I..\modules\aaa >> $@
45 @echo -I..\modules\core >> $@
46 @echo -I..\os\netware >> $@
47 @echo -I..\server\mpm\netware >> $@
48 @echo -I$(APR)\include >> $@
49 @echo -I$(APRUTIL)\include >> $@
50 @echo -ir $(NOVELLLIBC) >> $@
52 $(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
53 @echo Creating $(subst /,\,$@)
54 copy $< $(subst /,\,$(PCRE))\$(@F)
57 # Check for minimum APR version
59 chkapr: $(APR)\build\nw_ver.awk $(APR)\include\apr_version.h
60 @echo Checking for APR version...
61 @$(AWK) -v WANTED=$(APR_WANTED) -f $^
64 # You can use this target if all that is needed is to copy files to the
70 $(CHK) $(subst /,\,$(PCRE))\config.h $(DEL) $(subst /,\,$(PCRE))\config.h
71 $(CHK) $(subst /,\,$(PCRE))\pcre.h $(DEL) $(subst /,\,$(PCRE))\pcre.h
72 $(CHK) $(subst /,\,$(NWOS))\httpd.imp $(DEL) $(subst /,\,$(NWOS))\httpd.imp
73 $(CHK) nw_export.i $(DEL) nw_export.i
74 $(CHK) cc.opt $(DEL) cc.opt
75 $(CHK) NWGNUversion.inc $(DEL) NWGNUversion.inc
78 # Include the 'tail' makefile that has targets that depend on variables defined
82 include $(AP_WORK)\build\NWGNUtail.inc