upload http
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr / 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 $(APR_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/apu_want.h \
22         $(APRUTIL)/include/apr_ldap.h \
23         $(APRUTIL)/include/private/apu_config.h \
24         $(APRUTIL)/include/private/apu_select_dbm.h \
25         $(APRUTIL)/xml/expat/lib/expat_config.h \
26         $(APRUTIL)/uri/uri_delims.h \
27         $(EOLIST) 
28
29 nlms :: $(APR)/aprlib.imp
30
31 $(APR)/aprlib.imp : make_nw_export.awk nw_export.i
32         @echo Generating $(subst /,\,$@)
33         awk -f make_nw_export.awk nw_export.i | sort >$(APR)/aprlib.imp
34     
35 nw_export.i : nw_export.inc $(FILES_prebuild_headers) $(NLM_NAME)_cc.opt
36         @echo Generating $(subst /,\,$@)
37         $(CC) $< @$(NLM_NAME)_cc.opt
38
39 $(NLM_NAME)_cc.opt : NWGNUmakefile $(APR_WORK)\build\NWGNUenvironment.inc $(APR_WORK)\build\NWGNUhead.inc $(APR_WORK)\build\NWGNUtail.inc $(CUSTOM_INI)
40         $(CHK) $@ $(DEL) $@
41         @echo -P >> $@
42         @echo -EP >> $@
43         @echo -nosyspath >> $@
44         @echo -w nocmdline >> $@
45         @echo -DNETWARE >> $@
46         @echo -I..\include >> $@
47         @echo -I..\include\arch\netware >> $@
48         @echo -I..\include\arch\unix >> $@
49         @echo -I$(APRUTIL)\include >> $@
50         @echo -ir $(NOVELLLIBC)\include >> $@
51
52 $(APR)/include/%.h: $(subst /,\,$(APR))\include\%.hnw
53         @echo Creating $(subst /,\,$@)
54         copy $< $(subst /,\,$(APR))\include\$(@F)
55
56 $(APRUTIL)/include/%.h: $(subst /,\,$(APRUTIL))\include\%.hnw
57         @echo Creating $(subst /,\,$@)
58         copy $< $(subst /,\,$(APRUTIL))\include\$(@F)
59
60 $(APRUTIL)/include/private/%.h: $(subst /,\,$(APRUTIL))\include\private\%.hw
61         @echo Creating $(subst /,\,$@)
62         copy $< $(subst /,\,$(APRUTIL))\include\private\$(@F)
63
64 $(APRUTIL)/xml/expat/lib/%.h: $(subst /,\,$(APRUTIL))\xml\expat\lib\%.hnw
65         @echo Creating $(subst /,\,$@)
66         copy $< $(subst /,\,$(APRUTIL))\xml\expat\lib\$(@F)
67
68 ifneq "$(BUILDTOOL_AS_NLM)" "1"
69
70 $(APRUTIL)/uri/uri_delims.h: gen_uri_delims.exe $(APRUTIL)/uri/gen_uri_delims.c
71         @echo Creating $(subst /,\,$@)
72         @$< > $@
73
74 %.exe: $(APRUTIL)/uri/%.c
75         @echo Creating $@
76         @$(WIN_CC) $(WIN_CFLAGS) $< -o $@
77
78 else
79
80 ifneq "$(wildcard $(APRUTIL)/uri/uri_delims.h)" "$(APRUTIL)/uri/uri_delims.h"
81 $(error Error: required header $(abspath $(APRUTIL)/uri/uri_delims.h) not found!)
82 endif
83
84 endif
85
86 #
87 # You can use this target if all that is needed is to copy files to the
88 # installation area
89 #
90 install :: nlms FORCE
91
92 clean ::
93         $(CHK) nw_export.i                                              $(DEL) nw_export.i
94         $(CHK) $(NLM_NAME)_cc.opt                                       $(DEL) $(NLM_NAME)_cc.opt
95         $(CHK) NWGNUversion.inc                                         $(DEL) NWGNUversion.inc 
96         $(CHK) $(subst /,\,$(APR))\include\apr.h                        $(DEL) $(subst /,\,$(APR))\include\apr.h
97         $(CHK) $(subst /,\,$(APRUTIL))\include\apu.h                    $(DEL) $(subst /,\,$(APRUTIL))\include\apu.h
98         $(CHK) $(subst /,\,$(APRUTIL))\include\apr_ldap.h               $(DEL) $(subst /,\,$(APRUTIL))\include\apr_ldap.h
99         $(CHK) $(subst /,\,$(APRUTIL))\include\private\apu_config.h     $(DEL) $(subst /,\,$(APRUTIL))\include\private\apu_config.h
100         $(CHK) $(subst /,\,$(APRUTIL))\include\private\apu_select_dbm.h $(DEL) $(subst /,\,$(APRUTIL))\include\private\apu_select_dbm.h
101         $(CHK) $(subst /,\,$(APRUTIL))\xml\expat\lib\expat_config.h     $(DEL) $(subst /,\,$(APRUTIL))\xml\expat\lib\expat_config.h
102         $(CHK) $(subst /,\,$(APR))\aprlib.imp                           $(DEL) $(subst /,\,$(APR))\aprlib.imp
103 ifneq "$(BUILDTOOL_AS_NLM)" "1"
104         $(CHK) $(subst /,\,$(APRUTIL))\uri\uri_delims.h                 $(DEL) $(subst /,\,$(APRUTIL))\uri\uri_delims.h
105         $(CHK) gen_uri_delims.exe                                       $(DEL) gen_uri_delims.exe
106 endif
107