]> granicus.if.org Git - apache/blob - build/NWGNUmakefile
next step for fixing NetWare exports list.
[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) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ | sort >$@
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..\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) >> $@
51
52 $(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
53         @echo Creating $(subst /,\,$@)
54         copy $< $(subst /,\,$(PCRE))\$(@F)
55
56 #
57 # Check for minimum APR version
58 #
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 $^
62
63 #
64 # You can use this target if all that is needed is to copy files to the
65 # installation area
66 #
67 install :: nlms FORCE
68
69 clean ::
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
76
77 #
78 # Include the 'tail' makefile that has targets that depend on variables defined
79 # in this makefile
80 #
81
82 include $(AP_WORK)\build\NWGNUtail.inc
83