Mercurial > hg > nginx-quic
annotate auto/make @ 1947:94b03bbd328e
use ngx_ext_rename_file() in proxy/fastcgi_store
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 17 Mar 2008 13:07:35 +0000 |
parents | 68f30ab68bb7 |
children | e5ce4e2de846 |
rev | line source |
---|---|
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
417
diff
changeset
|
1 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
417
diff
changeset
|
2 # Copyright (C) Igor Sysoev |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
417
diff
changeset
|
3 |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
4 |
469 | 5 mkdir -p $NGX_OBJS/src/core $NGX_OBJS/src/event $NGX_OBJS/src/event/modules \ |
6 $NGX_OBJS/src/os/unix $NGX_OBJS/src/os/win32 \ | |
7 $NGX_OBJS/src/http $NGX_OBJS/src/http/modules \ | |
599 | 8 $NGX_OBJS/src/http/modules/perl \ |
1136 | 9 $NGX_OBJS/src/mail |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
10 |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
11 |
455 | 12 ngx_objs_dir=$NGX_OBJS$ngx_regex_dirsep |
13 ngx_use_pch=`echo $NGX_USE_PCH | sed -e "s/\//$ngx_regex_dirsep/g"` | |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
14 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
15 |
467 | 16 cat << END > $NGX_MAKEFILE |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
17 |
455 | 18 CC = $CC |
19 CFLAGS = $CFLAGS | |
20 CPP = $CPP | |
21 LINK = $LINK | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
22 |
455 | 23 END |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
24 |
681 | 25 if test -n "$NGX_PERL_CFLAGS"; then |
26 echo NGX_PERL_CFLAGS = $NGX_PERL_CFLAGS >> $NGX_MAKEFILE | |
27 echo NGX_PM_CFLAGS = $NGX_PM_CFLAGS >> $NGX_MAKEFILE | |
28 fi | |
29 | |
633 | 30 if [ "$BMAKE" = wmake ]; then |
455 | 31 echo MAKE = wmake >> $NGX_MAKEFILE |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
32 |
455 | 33 ngx_regex_cont=' ' |
573 | 34 ngx_long_regex_cont=' ' |
455 | 35 ngx_cont=' ' |
573 | 36 ngx_long_cont=' ' |
455 | 37 ngx_tab=' ' |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
38 |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
39 fi |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
40 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
41 |
489 | 42 # ALL_INCS, required by the addons and by OpenWatcom C precompiled headers |
455 | 43 |
1136 | 44 ngx_incs=`echo $CORE_INCS $NGX_OBJS $HTTP_INCS $MAIL_INCS\ |
455 | 45 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ |
46 -e "s/\//$ngx_regex_dirsep/g"` | |
47 | |
48 cat << END >> $NGX_MAKEFILE | |
49 | |
50 ALL_INCS = $ngx_include_opt$ngx_incs | |
51 | |
52 END | |
53 | |
54 | |
55 ngx_all_srcs="$CORE_SRCS" | |
56 | |
57 | |
58 # the core dependences and include pathes | |
59 | |
467 | 60 ngx_deps=`echo $CORE_DEPS $NGX_AUTO_CONFIG_H $NGX_PCH \ |
455 | 61 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ |
62 -e "s/\//$ngx_regex_dirsep/g"` | |
63 | |
469 | 64 ngx_incs=`echo $CORE_INCS $NGX_OBJS \ |
455 | 65 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ |
66 -e "s/\//$ngx_regex_dirsep/g"` | |
67 | |
68 cat << END >> $NGX_MAKEFILE | |
69 | |
70 CORE_DEPS = $ngx_deps | |
71 | |
72 | |
73 CORE_INCS = $ngx_include_opt$ngx_incs | |
74 | |
75 END | |
76 | |
77 | |
78 # the http dependences and include pathes | |
79 | |
80 if [ $HTTP = YES ]; then | |
81 | |
82 ngx_all_srcs="$ngx_all_srcs $HTTP_SRCS" | |
83 | |
84 ngx_deps=`echo $HTTP_DEPS \ | |
85 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ | |
86 -e "s/\//$ngx_regex_dirsep/g"` | |
87 | |
88 ngx_incs=`echo $HTTP_INCS \ | |
89 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ | |
90 -e "s/\//$ngx_regex_dirsep/g"` | |
91 | |
92 cat << END >> $NGX_MAKEFILE | |
93 | |
94 HTTP_DEPS = $ngx_deps | |
95 | |
96 | |
97 HTTP_INCS = $ngx_include_opt$ngx_incs | |
98 | |
99 END | |
100 | |
101 fi | |
102 | |
103 | |
1136 | 104 # the mail dependences and include pathes |
455 | 105 |
1136 | 106 if [ $MAIL = YES ]; then |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
107 |
1136 | 108 ngx_all_srcs="$ngx_all_srcs $MAIL_SRCS" |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
109 |
1136 | 110 ngx_deps=`echo $MAIL_DEPS \ |
455 | 111 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ |
112 -e "s/\//$ngx_regex_dirsep/g"` | |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
113 |
1136 | 114 ngx_incs=`echo $MAIL_INCS \ |
455 | 115 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ |
116 -e "s/\//$ngx_regex_dirsep/g"` | |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
117 |
455 | 118 cat << END >> $NGX_MAKEFILE |
119 | |
1136 | 120 MAIL_DEPS = $ngx_deps |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
121 |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
122 |
1136 | 123 MAIL_INCS = $ngx_include_opt$ngx_incs |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
124 |
455 | 125 END |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
126 |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
127 fi |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
128 |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
129 |
489 | 130 if test -n "$NGX_ADDON_SRCS"; then |
131 | |
132 cat << END >> $NGX_MAKEFILE | |
133 | |
541 | 134 ADDON_DEPS = \$(CORE_DEPS) $NGX_ADDON_DEPS |
489 | 135 |
136 END | |
137 | |
138 fi | |
139 | |
140 | |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
141 # nginx |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
142 |
455 | 143 ngx_all_srcs=`echo $ngx_all_srcs | sed -e "s/\//$ngx_regex_dirsep/g"` |
489 | 144 |
145 for ngx_src in $NGX_ADDON_SRCS | |
146 do | |
147 ngx_obj="addon/`basename \`dirname $ngx_src\``" | |
148 | |
149 test -d $NGX_OBJS/$ngx_obj || mkdir -p $NGX_OBJS/$ngx_obj | |
150 | |
151 ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \ | |
152 | sed -e "s/\//$ngx_regex_dirsep/g"` | |
153 | |
154 ngx_all_srcs="$ngx_all_srcs $ngx_obj" | |
155 done | |
278
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
267
diff
changeset
|
156 |
455 | 157 ngx_all_objs=`echo $ngx_all_srcs \ |
665 | 158 | sed -e "s#\([^ ]*\.\)cpp#$NGX_OBJS\/\1$ngx_objext#g" \ |
159 -e "s#\([^ ]*\.\)cc#$NGX_OBJS\/\1$ngx_objext#g" \ | |
160 -e "s#\([^ ]*\.\)c#$NGX_OBJS\/\1$ngx_objext#g" \ | |
161 -e "s#\([^ ]*\.\)S#$NGX_OBJS\/\1$ngx_objext#g"` | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
162 |
489 | 163 ngx_modules_c=`echo $NGX_MODULES_C | sed -e "s/\//$ngx_regex_dirsep/g"` |
164 | |
455 | 165 ngx_modules_obj=`echo $ngx_modules_c | sed -e "s/\(.*\.\)c/\1$ngx_objext/"` |
278
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
267
diff
changeset
|
166 |
461 | 167 |
168 if test -n "$NGX_RES"; then | |
169 ngx_res=$NGX_RES | |
170 else | |
171 ngx_res="$NGX_RC $NGX_ICONS" | |
172 ngx_rcc=`echo $NGX_RCC | sed -e "s/\//$ngx_regex_dirsep/g"` | |
173 fi | |
174 | |
175 ngx_deps=`echo $ngx_all_objs $ngx_modules_obj $ngx_res $LINK_DEPS \ | |
455 | 176 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ |
177 -e "s/\//$ngx_regex_dirsep/g"` | |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
178 |
455 | 179 ngx_objs=`echo $ngx_all_objs $ngx_modules_obj \ |
573 | 180 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_long_regex_cont\1/g" \ |
455 | 181 -e "s/\//$ngx_regex_dirsep/g"` |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
182 |
667 | 183 if test -n "$NGX_LD_OPT$CORE_LIBS"; then |
184 ngx_libs=`echo $NGX_LD_OPT $CORE_LIBS \ | |
185 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"` | |
186 fi | |
278
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
267
diff
changeset
|
187 |
455 | 188 ngx_link=${CORE_LINK:+`echo $CORE_LINK \ |
573 | 189 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`} |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
190 |
461 | 191 |
455 | 192 cat << END >> $NGX_MAKEFILE |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
193 |
455 | 194 $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}: $ngx_deps$ngx_spacer |
573 | 195 \$(LINK) ${ngx_long_start}${ngx_binout}$NGX_OBJS${ngx_dirsep}nginx$ngx_long_cont$ngx_objs$ngx_libs$ngx_link |
461 | 196 $ngx_rcc |
573 | 197 ${ngx_long_end} |
455 | 198 END |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
199 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
200 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
201 # ngx_modules.c |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
202 |
455 | 203 if test -n "$NGX_PCH"; then |
204 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
205 else |
455 | 206 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS)" |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
207 fi |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
208 |
455 | 209 cat << END >> $NGX_MAKEFILE |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
210 |
455 | 211 $ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c |
561 | 212 $ngx_cc$ngx_tab$ngx_objout$ngx_modules_obj$ngx_tab$ngx_modules_c$NGX_AUX |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
213 |
455 | 214 END |
215 | |
216 | |
217 # the core sources | |
218 | |
219 for ngx_src in $CORE_SRCS | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
220 do |
455 | 221 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` |
222 ngx_obj=`echo $ngx_src \ | |
665 | 223 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
224 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
225 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
226 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
455 | 227 |
228 cat << END >> $NGX_MAKEFILE | |
229 | |
230 $ngx_obj: \$(CORE_DEPS)$ngx_cont$ngx_src | |
561 | 231 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
455 | 232 |
233 END | |
234 | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
235 done |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
236 |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
237 |
455 | 238 # the http sources |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
239 |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
240 if [ $HTTP = YES ]; then |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
241 |
455 | 242 if test -n "$NGX_PCH"; then |
243 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
244 else |
455 | 245 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(HTTP_INCS)" |
681 | 246 ngx_perl_cc="\$(CC) $ngx_compile_opt \$(NGX_PERL_CFLAGS) " |
247 ngx_perl_cc="$ngx_perl_cc \$(CORE_INCS) \$(HTTP_INCS)" | |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
248 fi |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
249 |
681 | 250 for ngx_source in $HTTP_SRCS |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
251 do |
681 | 252 ngx_src=`echo $ngx_source | sed -e "s/\//$ngx_regex_dirsep/g"` |
455 | 253 ngx_obj=`echo $ngx_src \ |
665 | 254 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
255 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
256 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
257 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
455 | 258 |
681 | 259 if [ $ngx_source = src/http/modules/perl/ngx_http_perl_module.c ]; then |
260 | |
261 cat << END >> $NGX_MAKEFILE | |
262 | |
263 $ngx_obj: \$(CORE_DEPS) \$(HTTP_DEPS)$ngx_cont$ngx_src | |
264 $ngx_perl_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX | |
265 | |
266 END | |
267 else | |
268 | |
269 cat << END >> $NGX_MAKEFILE | |
455 | 270 |
271 $ngx_obj: \$(CORE_DEPS) \$(HTTP_DEPS)$ngx_cont$ngx_src | |
561 | 272 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
455 | 273 |
274 END | |
681 | 275 |
276 fi | |
455 | 277 done |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
278 |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
279 fi |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
280 |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
281 |
1136 | 282 # the mail sources |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
283 |
1136 | 284 if [ $MAIL = YES ]; then |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
285 |
455 | 286 if test -n "$NGX_PCH"; then |
287 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
288 else |
1136 | 289 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(MAIL_INCS)" |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
290 fi |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
291 |
1136 | 292 for ngx_src in $MAIL_SRCS |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
293 do |
455 | 294 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` |
295 ngx_obj=`echo $ngx_src \ | |
665 | 296 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
297 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
298 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
299 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
455 | 300 |
301 cat << END >> $NGX_MAKEFILE | |
302 | |
1136 | 303 $ngx_obj: \$(CORE_DEPS) \$(MAIL_DEPS)$ngx_cont$ngx_src |
561 | 304 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
455 | 305 |
306 END | |
489 | 307 done |
455 | 308 |
489 | 309 fi |
310 | |
311 | |
312 # the addons sources | |
313 | |
314 if test -n "$NGX_ADDON_SRCS"; then | |
315 | |
316 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
317 | |
318 for ngx_src in $NGX_ADDON_SRCS | |
319 do | |
320 ngx_obj="addon/`basename \`dirname $ngx_src\``" | |
321 | |
322 ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \ | |
323 | sed -e "s/\//$ngx_regex_dirsep/g"` | |
324 | |
325 ngx_obj=`echo $ngx_obj \ | |
665 | 326 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
327 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
328 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
329 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
489 | 330 |
331 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` | |
332 | |
333 cat << END >> $NGX_MAKEFILE | |
334 | |
335 $ngx_obj: \$(ADDON_DEPS)$ngx_cont$ngx_src | |
561 | 336 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
489 | 337 |
338 END | |
455 | 339 done |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
340 |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
341 fi |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
342 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
343 |
593 | 344 # the addons config.make |
345 | |
346 if test -n "$NGX_ADDONS"; then | |
347 | |
348 for ngx_addon_dir in $NGX_ADDONS | |
349 do | |
350 if test -f $ngx_addon_dir/config.make; then | |
351 . $ngx_addon_dir/config.make | |
352 fi | |
353 done | |
354 fi | |
355 | |
356 | |
461 | 357 # Win32 resource file |
358 | |
359 if test -n "$NGX_RES"; then | |
360 | |
361 ngx_res=`echo "$NGX_RES: $NGX_RC $NGX_ICONS" \ | |
362 | sed -e "s/\//$ngx_regex_dirsep/g"` | |
363 ngx_rcc=`echo $NGX_RCC | sed -e "s/\//$ngx_regex_dirsep/g"` | |
364 | |
365 cat << END >> $NGX_MAKEFILE | |
366 | |
367 $ngx_res | |
368 $ngx_rcc | |
369 | |
370 END | |
371 | |
372 fi | |
373 | |
374 | |
455 | 375 # the precompiled headers |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
376 |
455 | 377 if test -n "$NGX_PCH"; then |
469 | 378 echo "#include <ngx_config.h>" > $NGX_OBJS/ngx_pch.c |
455 | 379 |
469 | 380 ngx_pch="src/core/ngx_config.h $OS_CONFIG $NGX_OBJS/ngx_auto_config.h" |
455 | 381 ngx_pch=`echo "$NGX_PCH: $ngx_pch" | sed -e "s/\//$ngx_regex_dirsep/g"` |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
382 |
455 | 383 ngx_src="\$(CC) \$(CFLAGS) $NGX_BUILD_PCH $ngx_compile_opt \$(ALL_INCS)" |
469 | 384 ngx_src="$ngx_src $ngx_objout$NGX_OBJS/ngx_pch.obj $NGX_OBJS/ngx_pch.c" |
455 | 385 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` |
386 | |
387 cat << END >> $NGX_MAKEFILE | |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
388 |
455 | 389 $ngx_pch |
390 $ngx_src | |
391 | |
392 END | |
393 | |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
394 fi |