]> granicus.if.org Git - apache/blob - build/NWGNUmakefile
Improve logged information and fix broken doc.
[apache] / build / NWGNUmakefile
1 #
2 # Declare the sub-directories to be built here
3 #
4
5 SUBDIRS = \
6         $(APR_WORK)\build \
7         $(EOLIST) 
8
9 #
10 # Get the 'head' of the build environment.  This includes default targets and
11 # paths to tools
12 #
13
14 include $(AP_WORK)\build\NWGNUhead.inc
15
16 #
17 # build this level's files
18
19 FILES_prebuild_headers = \
20         $(PCRE)/config.h \
21         $(PCRE)/pcre.h \
22         $(EOLIST) 
23     
24 nlms :: chkapr $(NWOS)/httpd.imp
25
26 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
27         @echo Generating $(subst /,\,$@)
28         $(AWK) -f make_nw_export.awk nw_export.i | sort >$(NWOS)/httpd.imp
29     
30 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
31         @echo Generating $(subst /,\,$@)
32         $(CC) $< @cc.opt
33
34 cc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
35         $(CHK) $@ $(DEL) $@
36         @echo -P >> $@
37         @echo -EP >> $@
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..\os\netware >> $@
46         @echo -I..\server\mpm\netware >> $@
47         @echo -I$(APR)\include >> $@
48         @echo -I$(APRUTIL)\include >> $@
49         @echo -ir $(NOVELLLIBC) >> $@
50
51 $(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
52         @echo Creating $(subst /,\,$@)
53         copy $< $(subst /,\,$(PCRE))\$(@F)
54
55 #
56 # Check for minimum APR version
57 #
58 chkapr: $(APR)\build\nw_ver.awk $(APR)\include\apr_version.h
59         @echo Checking for APR version...
60         @$(AWK) -v WANTED=$(APR_WANTED) -f $^
61
62 #
63 # You can use this target if all that is needed is to copy files to the
64 # installation area
65 #
66 install :: nlms FORCE
67
68 clean ::
69         $(CHK) $(subst /,\,$(PCRE))\config.h                $(DEL) $(subst /,\,$(PCRE))\config.h
70         $(CHK) $(subst /,\,$(PCRE))\pcre.h                  $(DEL) $(subst /,\,$(PCRE))\pcre.h
71         $(CHK) $(subst /,\,$(NWOS))\httpd.imp               $(DEL) $(subst /,\,$(NWOS))\httpd.imp
72         $(CHK) nw_export.i                                  $(DEL) nw_export.i
73         $(CHK) cc.opt                                       $(DEL) cc.opt
74         $(CHK) NWGNUversion.inc                             $(DEL) NWGNUversion.inc
75
76