]> granicus.if.org Git - apache/blob - build/NWGNUmakefile
Added Spanish translation for manual/misc/password_encryptions.xml.es
[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         $(SRC)/include/ap_config_layout.h \
21         $(NWOS)/test_char.h \
22         $(PCRE)/config.h \
23         $(PCRE)/pcre.h \
24         $(EOLIST) 
25     
26 nlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp $(STDMOD)/cache/mod_cache.imp $(STDMOD)/proxy/mod_proxy.imp
27
28 libs :: chkapr $(NWOS)/chartables.c
29
30 $(DAV)/main/dav.imp : make_nw_export.awk $(DAV)/main/mod_dav.h
31         @echo $(DL)GEN  $@$(DL)
32         $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
33
34 $(STDMOD)/cache/mod_cache.imp: make_nw_export.awk $(STDMOD)/cache/mod_cache.h $(STDMOD)/cache/cache_util.h
35         @echo $(DL)GEN  $@$(DL)
36         $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
37
38 $(STDMOD)/proxy/mod_proxy.imp: make_nw_export.awk $(STDMOD)/proxy/mod_proxy.h $(STDMOD)/proxy/proxy_util.h
39         @echo $(DL)GEN  $@$(DL)
40         $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
41
42 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
43         @echo $(DL)GEN  $@$(DL)
44         $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
45     
46 nw_export.i : nw_export.inc $(FILES_prebuild_headers) cc.opt
47         @echo $(DL)GEN  $@$(DL)
48         $(CC) $< @cc.opt
49
50 cc.opt : NWGNUmakefile $(APBUILD)/NWGNUenvironment.inc $(APBUILD)/NWGNUtail.inc $(APBUILD)/NWGNUhead.inc
51         @echo $(DL)-P$(DL)> $@
52         @echo $(DL)-EP$(DL)>> $@
53         @echo $(DL)-nosyspath$(DL)>> $@
54         @echo $(DL)-w nocmdline$(DL)>> $@
55         @echo $(DL)$(DEFINES)$(DL)>> $@
56         @echo $(DL)-I$(SRC)/include$(DL)>> $@
57         @echo $(DL)-I$(HTTPD)$(DL)>> $@
58         @echo $(DL)-I$(STDMOD)/aaa$(DL)>> $@
59         @echo $(DL)-I$(STDMOD)/core$(DL)>> $@
60         @echo $(DL)-I$(NWOS)$(DL)>> $@
61         @echo $(DL)-I$(SERVER)/mpm/netware$(DL)>> $@
62         @echo $(DL)-I$(APR)/include$(DL)>> $@
63         @echo $(DL)-I$(APRUTIL)/include$(DL)>> $@
64         @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@
65
66 $(SRC)/include/ap_config_layout.h: $(NWOS)/netware_config_layout.h
67         @echo Creating $@
68         $(call COPY,$<,$@)
69
70 $(PCRE)/%.h: $(PCRE)/%.h.generic
71         @echo Creating $@
72         $(call COPY,$<,$@)
73
74 $(PCRE)/%.h: $(PCRE)/%.hw
75         @echo Creating $@
76         $(call COPY,$<,$@)
77
78 ifneq "$(BUILDTOOL_AS_NLM)" "1"
79
80 $(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c
81         @echo $(DL)GEN  $@$(DL)
82         $< $@
83
84 %.exe: $(PCRE)/%.c $(PCRE)/config.h $(PCRE)/pcre.h
85         @echo $(DL)Creating Build Helper $@$(DL)
86         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DHAVE_CONFIG_H $< -o $@
87
88 $(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
89         @echo $(DL)GEN  $@$(DL)
90         $< > $@
91
92 %.exe: $(SERVER)/%.c
93         @echo $(DL)Creating Build Helper $@$(DL)
94         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DCROSS_COMPILE $< -o $@
95
96 else
97
98 ifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
99 $(error Error: required source $(NWOS)/chartables.c not found!)
100 endif
101
102 ifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
103 $(error Error: required header $(NWOS)/test_char.h not found!)
104 endif
105
106 endif
107
108 #
109 # Check for minimum APR version
110 #
111 chkapr: $(APR)/build/nw_ver.awk $(APR)/include/apr_version.h
112         @echo $(DL)Checking for APR version...$(DL)
113         $(AWK) -v WANTED=$(APR_WANTED) -f $^
114
115 #
116 # You can use this target if all that is needed is to copy files to the
117 # installation area
118 #
119 install :: nlms FORCE
120
121 clean ::
122         $(call DEL,$(SRC)/include/ap_config_layout.h)
123         $(call DEL,$(PCRE)/config.h)
124         $(call DEL,$(PCRE)/pcre.h)
125         $(call DEL,$(STDMOD)/cache/mod_cache.imp)
126         $(call DEL,$(STDMOD)/proxy/mod_proxy.imp)
127         $(call DEL,$(DAV)/main/dav.imp)
128         $(call DEL,$(NWOS)/httpd.imp)
129         $(call DEL,nw_export.i)
130         $(call DEL,cc.opt)
131         $(call DEL,NWGNUversion.inc)
132 ifneq "$(BUILDTOOL_AS_NLM)" "1"
133         $(call DEL,$(NWOS)/chartables.c)
134         $(call DEL,$(NWOS)/test_char.h)
135         $(call DEL,dftables.exe)
136         $(call DEL,gen_test_char.exe)
137 endif
138
139 #
140 # Include the 'tail' makefile that has targets that depend on variables defined
141 # in this makefile
142 #
143
144 include $(APBUILD)/NWGNUtail.inc
145