]> granicus.if.org Git - apache/blob - build/NWGNUmakefile
Fix --with-apr=/usr and/or --with-apr-util=/usr.
[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         $(APR)/include/apr.h \
20         $(APRUTIL)/include/apu.h \
21         $(APRUTIL)/include/apr_ldap.h \
22         $(PCRE)/config.h \
23         $(PCRE)/pcre.h \
24         $(EOLIST) 
25     
26 nlms :: $(NWOS)/httpd.imp
27
28 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
29         @echo Generating $(subst /,\,$@)
30         awk -f make_nw_export.awk nw_export.i | sort >$(NWOS)/httpd.imp
31     
32 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
33         @echo Generating $(subst /,\,$@)
34         $(CC) $< @cc.opt
35         
36 cc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
37         $(CHK) $@ $(DEL) $@
38         @echo -P >> $@
39         @echo -EP >> $@
40         @echo -nosyspath >> $@
41         @echo -w nocmdline >> $@
42         @echo -DNETWARE >> $@
43         @echo -DCORE_PRIVATE >> $@
44         @echo -I..\include >> $@
45         @echo -I..\modules\http >> $@
46         @echo -I..\modules\aaa >> $@
47         @echo -I..\os\netware >> $@
48         @echo -I..\server\mpm\netware >> $@
49         @echo -I$(APR)\include >> $@
50         @echo -I$(APRUTIL)\include >> $@
51         @echo -ir $(NOVELLLIBC) >> $@
52
53 $(APR)/include/%.h: $(subst /,\,$(APR))\include\%.hnw
54         @echo Creating $(subst /,\,$@)
55         copy $< $(subst /,\,$(APR))\include\$(@F)
56
57 $(APRUTIL)/include/%.h: $(subst /,\,$(APRUTIL))\include\%.hnw
58         @echo Creating $(subst /,\,$@)
59         copy $< $(subst /,\,$(APRUTIL))\include\$(@F)
60
61 $(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
62         @echo Creating $(subst /,\,$@)
63         copy $< $(subst /,\,$(PCRE))\$(@F)
64
65 #
66 # You can use this target if all that is needed is to copy files to the
67 # installation area
68 #
69 install :: nlms FORCE
70         
71
72 clean ::
73         $(CHK) nw_export.i                                  $(DEL) nw_export.i
74         $(CHK) cc.opt                                       $(DEL) cc.opt
75         $(CHK) NWGNUversion.inc                             $(DEL) NWGNUversion.inc
76         $(CHK) $(subst /,\,$(APR))\include\apr.h            $(DEL) $(subst /,\,$(APR))\include\apr.h
77         $(CHK) $(subst /,\,$(APRUTIL))\include\apu.h        $(DEL) $(subst /,\,$(APRUTIL))\include\apu.h
78         $(CHK) $(subst /,\,$(APRUTIL))\include\apr_ldap.h   $(DEL) $(subst /,\,$(APRUTIL))\include\apr_ldap.h
79         $(CHK) $(subst /,\,$(PCRE))\config.h                $(DEL) $(subst /,\,$(PCRE))\config.h
80         $(CHK) $(subst /,\,$(PCRE))\pcre.h                  $(DEL) $(subst /,\,$(PCRE))\pcre.h
81         $(CHK) $(subst /,\,$(NWOS))\httpd.imp               $(DEL) $(subst /,\,$(NWOS))\httpd.imp
82