]> granicus.if.org Git - apache/blob - build/NWGNUmakefile
enabled setting awk tool from NWGNUenvironment.inc
[apache] / build / NWGNUmakefile
1 #
2 # Declare the sub-directories to be built here
3 #
4
5 SUBDIRS = \
6         $(EOLIST) 
7
8 #
9 # Get the 'head' of the build environment.  This includes default targets and
10 # paths to tools
11 #
12
13 include $(AP_WORK)\build\NWGNUhead.inc
14
15 #
16 # build this level's files
17
18 FILES_prebuild_headers = \
19         $(PCRE)/config.h \
20         $(PCRE)/pcre.h \
21         $(EOLIST) 
22     
23 nlms :: $(NWOS)/httpd.imp
24
25 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
26         @echo Generating $(subst /,\,$@)
27         $(AWK) -f make_nw_export.awk nw_export.i | sort >$(NWOS)/httpd.imp
28     
29 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
30         @echo Generating $(subst /,\,$@)
31         $(CC) $< @cc.opt
32
33 cc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
34         $(CHK) $@ $(DEL) $@
35         @echo -P >> $@
36         @echo -EP >> $@
37         @echo -nosyspath >> $@
38         @echo -w nocmdline >> $@
39         @echo $(DEFINES) >> $@
40         @echo -DCORE_PRIVATE >> $@
41         @echo -I..\include >> $@
42         @echo -I..\modules\http >> $@
43         @echo -I..\modules\aaa >> $@
44         @echo -I..\os\netware >> $@
45         @echo -I..\server\mpm\netware >> $@
46         @echo -I$(APR)\include >> $@
47         @echo -I$(APRUTIL)\include >> $@
48         @echo -ir $(NOVELLLIBC) >> $@
49
50 $(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
51         @echo Creating $(subst /,\,$@)
52         copy $< $(subst /,\,$(PCRE))\$(@F)
53
54 #
55 # You can use this target if all that is needed is to copy files to the
56 # installation area
57 #
58 install :: nlms FORCE
59
60 clean ::
61         $(CHK) $(subst /,\,$(PCRE))\config.h                $(DEL) $(subst /,\,$(PCRE))\config.h
62         $(CHK) $(subst /,\,$(PCRE))\pcre.h                  $(DEL) $(subst /,\,$(PCRE))\pcre.h
63         $(CHK) $(subst /,\,$(NWOS))\httpd.imp               $(DEL) $(subst /,\,$(NWOS))\httpd.imp
64         $(CHK) nw_export.i                                  $(DEL) nw_export.i
65         $(CHK) cc.opt                                       $(DEL) cc.opt
66         $(CHK) NWGNUversion.inc                             $(DEL) NWGNUversion.inc
67
68