Mercurial > hg > nginx-quic
annotate auto/make @ 6406:d194cad6dd3a
SSL: fixed SSL_shutdown() comment.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 19 Feb 2016 17:27:23 +0300 |
parents | 85dea406e18f |
children | cfc3cfa434ec |
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 |
4412 | 3 # Copyright (C) Nginx, Inc. |
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
|
4 |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
5 |
2827 | 6 echo "creating $NGX_MAKEFILE" |
7 | |
469 | 8 mkdir -p $NGX_OBJS/src/core $NGX_OBJS/src/event $NGX_OBJS/src/event/modules \ |
9 $NGX_OBJS/src/os/unix $NGX_OBJS/src/os/win32 \ | |
6246
257b51c37c5a
The HTTP/2 implementation (RFC 7240, 7241).
Valentin Bartenev <vbart@nginx.com>
parents:
6164
diff
changeset
|
10 $NGX_OBJS/src/http $NGX_OBJS/src/http/v2 $NGX_OBJS/src/http/modules \ |
6065 | 11 $NGX_OBJS/src/http/modules/perl \ |
1949 | 12 $NGX_OBJS/src/mail \ |
6115 | 13 $NGX_OBJS/src/stream \ |
1949 | 14 $NGX_OBJS/src/misc |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
15 |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
16 |
455 | 17 ngx_objs_dir=$NGX_OBJS$ngx_regex_dirsep |
18 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
|
19 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
20 |
467 | 21 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
|
22 |
455 | 23 CC = $CC |
24 CFLAGS = $CFLAGS | |
25 CPP = $CPP | |
26 LINK = $LINK | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
27 |
455 | 28 END |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
29 |
2825
bb05c0834c8c
remove BMAKE (build make): a cc compiler should use own make
Igor Sysoev <igor@sysoev.ru>
parents:
1949
diff
changeset
|
30 |
681 | 31 if test -n "$NGX_PERL_CFLAGS"; then |
32 echo NGX_PERL_CFLAGS = $NGX_PERL_CFLAGS >> $NGX_MAKEFILE | |
33 echo NGX_PM_CFLAGS = $NGX_PM_CFLAGS >> $NGX_MAKEFILE | |
34 fi | |
35 | |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
36 |
489 | 37 # ALL_INCS, required by the addons and by OpenWatcom C precompiled headers |
455 | 38 |
6118
1bdfceda86a9
Fixed building --with-stream when precompiled headers are used.
Sergey Kandaurov <pluknet@nginx.com>
parents:
6115
diff
changeset
|
39 ngx_incs=`echo $CORE_INCS $NGX_OBJS $HTTP_INCS $MAIL_INCS $STREAM_INCS\ |
455 | 40 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ |
41 -e "s/\//$ngx_regex_dirsep/g"` | |
42 | |
43 cat << END >> $NGX_MAKEFILE | |
44 | |
45 ALL_INCS = $ngx_include_opt$ngx_incs | |
46 | |
47 END | |
48 | |
49 | |
50 ngx_all_srcs="$CORE_SRCS" | |
51 | |
52 | |
6164
4e5dda15f18f
Fixed misspellings of the word "dependencies".
Ruslan Ermilov <ru@nginx.com>
parents:
6118
diff
changeset
|
53 # the core dependencies and include paths |
455 | 54 |
467 | 55 ngx_deps=`echo $CORE_DEPS $NGX_AUTO_CONFIG_H $NGX_PCH \ |
455 | 56 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ |
57 -e "s/\//$ngx_regex_dirsep/g"` | |
58 | |
469 | 59 ngx_incs=`echo $CORE_INCS $NGX_OBJS \ |
455 | 60 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ |
61 -e "s/\//$ngx_regex_dirsep/g"` | |
62 | |
63 cat << END >> $NGX_MAKEFILE | |
64 | |
65 CORE_DEPS = $ngx_deps | |
66 | |
67 | |
68 CORE_INCS = $ngx_include_opt$ngx_incs | |
69 | |
70 END | |
71 | |
72 | |
6164
4e5dda15f18f
Fixed misspellings of the word "dependencies".
Ruslan Ermilov <ru@nginx.com>
parents:
6118
diff
changeset
|
73 # the http dependencies and include paths |
455 | 74 |
75 if [ $HTTP = YES ]; then | |
76 | |
77 ngx_all_srcs="$ngx_all_srcs $HTTP_SRCS" | |
78 | |
79 ngx_deps=`echo $HTTP_DEPS \ | |
80 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ | |
81 -e "s/\//$ngx_regex_dirsep/g"` | |
82 | |
83 ngx_incs=`echo $HTTP_INCS \ | |
84 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ | |
85 -e "s/\//$ngx_regex_dirsep/g"` | |
86 | |
87 cat << END >> $NGX_MAKEFILE | |
88 | |
89 HTTP_DEPS = $ngx_deps | |
90 | |
91 | |
92 HTTP_INCS = $ngx_include_opt$ngx_incs | |
93 | |
94 END | |
95 | |
96 fi | |
97 | |
98 | |
6164
4e5dda15f18f
Fixed misspellings of the word "dependencies".
Ruslan Ermilov <ru@nginx.com>
parents:
6118
diff
changeset
|
99 # the mail dependencies and include paths |
455 | 100 |
6383 | 101 if [ $MAIL != NO ]; then |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
102 |
6383 | 103 if [ $MAIL = YES ]; then |
104 ngx_all_srcs="$ngx_all_srcs $MAIL_SRCS" | |
105 fi | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
106 |
1136 | 107 ngx_deps=`echo $MAIL_DEPS \ |
455 | 108 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ |
109 -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
|
110 |
1136 | 111 ngx_incs=`echo $MAIL_INCS \ |
455 | 112 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ |
113 -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
|
114 |
455 | 115 cat << END >> $NGX_MAKEFILE |
116 | |
1136 | 117 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
|
118 |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
119 |
1136 | 120 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
|
121 |
455 | 122 END |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
123 |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
124 fi |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
125 |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
126 |
6164
4e5dda15f18f
Fixed misspellings of the word "dependencies".
Ruslan Ermilov <ru@nginx.com>
parents:
6118
diff
changeset
|
127 # the stream dependencies and include paths |
6115 | 128 |
6383 | 129 if [ $STREAM != NO ]; then |
6115 | 130 |
6383 | 131 if [ $STREAM = YES ]; then |
132 ngx_all_srcs="$ngx_all_srcs $STREAM_SRCS" | |
133 fi | |
6115 | 134 |
135 ngx_deps=`echo $STREAM_DEPS \ | |
136 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ | |
137 -e "s/\//$ngx_regex_dirsep/g"` | |
138 | |
139 ngx_incs=`echo $STREAM_INCS \ | |
140 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \ | |
141 -e "s/\//$ngx_regex_dirsep/g"` | |
142 | |
143 cat << END >> $NGX_MAKEFILE | |
144 | |
145 STREAM_DEPS = $ngx_deps | |
146 | |
147 | |
148 STREAM_INCS = $ngx_include_opt$ngx_incs | |
149 | |
150 END | |
151 | |
152 fi | |
153 | |
154 | |
6382
392959224560
Dynamic modules: auto/module script.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6246
diff
changeset
|
155 ngx_all_srcs="$ngx_all_srcs $MISC_SRCS" |
1949 | 156 |
157 | |
489 | 158 if test -n "$NGX_ADDON_SRCS"; then |
159 | |
160 cat << END >> $NGX_MAKEFILE | |
161 | |
541 | 162 ADDON_DEPS = \$(CORE_DEPS) $NGX_ADDON_DEPS |
489 | 163 |
164 END | |
165 | |
166 fi | |
167 | |
168 | |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
169 # nginx |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
170 |
455 | 171 ngx_all_srcs=`echo $ngx_all_srcs | sed -e "s/\//$ngx_regex_dirsep/g"` |
489 | 172 |
173 for ngx_src in $NGX_ADDON_SRCS | |
174 do | |
175 ngx_obj="addon/`basename \`dirname $ngx_src\``" | |
176 | |
177 test -d $NGX_OBJS/$ngx_obj || mkdir -p $NGX_OBJS/$ngx_obj | |
178 | |
179 ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \ | |
180 | sed -e "s/\//$ngx_regex_dirsep/g"` | |
181 | |
182 ngx_all_srcs="$ngx_all_srcs $ngx_obj" | |
183 done | |
278
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
267
diff
changeset
|
184 |
455 | 185 ngx_all_objs=`echo $ngx_all_srcs \ |
665 | 186 | sed -e "s#\([^ ]*\.\)cpp#$NGX_OBJS\/\1$ngx_objext#g" \ |
187 -e "s#\([^ ]*\.\)cc#$NGX_OBJS\/\1$ngx_objext#g" \ | |
188 -e "s#\([^ ]*\.\)c#$NGX_OBJS\/\1$ngx_objext#g" \ | |
189 -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
|
190 |
489 | 191 ngx_modules_c=`echo $NGX_MODULES_C | sed -e "s/\//$ngx_regex_dirsep/g"` |
192 | |
455 | 193 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
|
194 |
461 | 195 |
196 if test -n "$NGX_RES"; then | |
197 ngx_res=$NGX_RES | |
198 else | |
199 ngx_res="$NGX_RC $NGX_ICONS" | |
200 ngx_rcc=`echo $NGX_RCC | sed -e "s/\//$ngx_regex_dirsep/g"` | |
201 fi | |
202 | |
203 ngx_deps=`echo $ngx_all_objs $ngx_modules_obj $ngx_res $LINK_DEPS \ | |
455 | 204 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ |
205 -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
|
206 |
455 | 207 ngx_objs=`echo $ngx_all_objs $ngx_modules_obj \ |
573 | 208 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_long_regex_cont\1/g" \ |
455 | 209 -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
|
210 |
6383 | 211 ngx_libs= |
667 | 212 if test -n "$NGX_LD_OPT$CORE_LIBS"; then |
213 ngx_libs=`echo $NGX_LD_OPT $CORE_LIBS \ | |
214 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"` | |
215 fi | |
278
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
267
diff
changeset
|
216 |
455 | 217 ngx_link=${CORE_LINK:+`echo $CORE_LINK \ |
573 | 218 | 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
|
219 |
6383 | 220 ngx_main_link=${MAIN_LINK:+`echo $MAIN_LINK \ |
221 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`} | |
222 | |
461 | 223 |
455 | 224 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
|
225 |
455 | 226 $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}: $ngx_deps$ngx_spacer |
6383 | 227 \$(LINK) ${ngx_long_start}${ngx_binout}$NGX_OBJS${ngx_dirsep}nginx$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_main_link |
461 | 228 $ngx_rcc |
573 | 229 ${ngx_long_end} |
6383 | 230 |
231 modules: | |
455 | 232 END |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
233 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
234 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
235 # ngx_modules.c |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
236 |
455 | 237 if test -n "$NGX_PCH"; then |
238 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
|
239 else |
455 | 240 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
|
241 fi |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
242 |
455 | 243 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
|
244 |
455 | 245 $ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c |
561 | 246 $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
|
247 |
455 | 248 END |
249 | |
250 | |
251 # the core sources | |
252 | |
253 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
|
254 do |
455 | 255 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` |
256 ngx_obj=`echo $ngx_src \ | |
665 | 257 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
258 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
259 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
260 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
455 | 261 |
262 cat << END >> $NGX_MAKEFILE | |
263 | |
264 $ngx_obj: \$(CORE_DEPS)$ngx_cont$ngx_src | |
561 | 265 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
455 | 266 |
267 END | |
268 | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
269 done |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
270 |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
271 |
455 | 272 # 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
|
273 |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
274 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
|
275 |
455 | 276 if test -n "$NGX_PCH"; then |
277 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
|
278 else |
455 | 279 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(HTTP_INCS)" |
681 | 280 ngx_perl_cc="\$(CC) $ngx_compile_opt \$(NGX_PERL_CFLAGS) " |
281 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
|
282 fi |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
283 |
681 | 284 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
|
285 do |
681 | 286 ngx_src=`echo $ngx_source | sed -e "s/\//$ngx_regex_dirsep/g"` |
455 | 287 ngx_obj=`echo $ngx_src \ |
665 | 288 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
289 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
290 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
291 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
455 | 292 |
681 | 293 if [ $ngx_source = src/http/modules/perl/ngx_http_perl_module.c ]; then |
294 | |
295 cat << END >> $NGX_MAKEFILE | |
296 | |
297 $ngx_obj: \$(CORE_DEPS) \$(HTTP_DEPS)$ngx_cont$ngx_src | |
298 $ngx_perl_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX | |
299 | |
300 END | |
301 else | |
302 | |
303 cat << END >> $NGX_MAKEFILE | |
455 | 304 |
305 $ngx_obj: \$(CORE_DEPS) \$(HTTP_DEPS)$ngx_cont$ngx_src | |
561 | 306 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
455 | 307 |
308 END | |
681 | 309 |
310 fi | |
455 | 311 done |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
312 |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
313 fi |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
314 |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
315 |
1136 | 316 # 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
|
317 |
1136 | 318 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
|
319 |
455 | 320 if test -n "$NGX_PCH"; then |
321 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
|
322 else |
1136 | 323 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
|
324 fi |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
325 |
1136 | 326 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
|
327 do |
455 | 328 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` |
329 ngx_obj=`echo $ngx_src \ | |
665 | 330 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
331 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
332 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
333 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
455 | 334 |
335 cat << END >> $NGX_MAKEFILE | |
336 | |
1136 | 337 $ngx_obj: \$(CORE_DEPS) \$(MAIL_DEPS)$ngx_cont$ngx_src |
561 | 338 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
455 | 339 |
340 END | |
489 | 341 done |
455 | 342 |
489 | 343 fi |
344 | |
345 | |
6115 | 346 # the stream sources |
347 | |
348 if [ $STREAM = YES ]; then | |
349 | |
350 if test -n "$NGX_PCH"; then | |
351 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
352 else | |
353 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(STREAM_INCS)" | |
354 fi | |
355 | |
356 for ngx_src in $STREAM_SRCS | |
357 do | |
358 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` | |
359 ngx_obj=`echo $ngx_src \ | |
360 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
361 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
362 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
363 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
364 | |
365 cat << END >> $NGX_MAKEFILE | |
366 | |
367 $ngx_obj: \$(CORE_DEPS) \$(STREAM_DEPS)$ngx_cont$ngx_src | |
368 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX | |
369 | |
370 END | |
371 done | |
372 | |
373 fi | |
374 | |
375 | |
1949 | 376 # the misc sources |
377 | |
6382
392959224560
Dynamic modules: auto/module script.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6246
diff
changeset
|
378 if test -n "$MISC_SRCS"; then |
1949 | 379 |
380 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
381 | |
6382
392959224560
Dynamic modules: auto/module script.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6246
diff
changeset
|
382 for ngx_src in $MISC_SRCS |
1949 | 383 do |
384 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` | |
385 ngx_obj=`echo $ngx_src \ | |
386 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
387 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
388 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
389 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
390 | |
391 cat << END >> $NGX_MAKEFILE | |
392 | |
393 $ngx_obj: \$(CORE_DEPS) $ngx_cont$ngx_src | |
394 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX | |
395 | |
396 END | |
397 done | |
398 | |
399 fi | |
400 | |
401 | |
489 | 402 # the addons sources |
403 | |
404 if test -n "$NGX_ADDON_SRCS"; then | |
405 | |
406 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
407 | |
408 for ngx_src in $NGX_ADDON_SRCS | |
409 do | |
410 ngx_obj="addon/`basename \`dirname $ngx_src\``" | |
411 | |
412 ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \ | |
413 | sed -e "s/\//$ngx_regex_dirsep/g"` | |
414 | |
415 ngx_obj=`echo $ngx_obj \ | |
665 | 416 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ |
417 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
418 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
419 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
489 | 420 |
421 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` | |
422 | |
423 cat << END >> $NGX_MAKEFILE | |
424 | |
425 $ngx_obj: \$(ADDON_DEPS)$ngx_cont$ngx_src | |
561 | 426 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX |
489 | 427 |
428 END | |
455 | 429 done |
417
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
430 |
0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
431 fi |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
432 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
433 |
593 | 434 # the addons config.make |
435 | |
436 if test -n "$NGX_ADDONS"; then | |
437 | |
438 for ngx_addon_dir in $NGX_ADDONS | |
439 do | |
440 if test -f $ngx_addon_dir/config.make; then | |
441 . $ngx_addon_dir/config.make | |
442 fi | |
443 done | |
444 fi | |
445 | |
446 | |
461 | 447 # Win32 resource file |
448 | |
449 if test -n "$NGX_RES"; then | |
450 | |
451 ngx_res=`echo "$NGX_RES: $NGX_RC $NGX_ICONS" \ | |
452 | sed -e "s/\//$ngx_regex_dirsep/g"` | |
453 ngx_rcc=`echo $NGX_RCC | sed -e "s/\//$ngx_regex_dirsep/g"` | |
454 | |
455 cat << END >> $NGX_MAKEFILE | |
456 | |
457 $ngx_res | |
458 $ngx_rcc | |
459 | |
460 END | |
461 | |
462 fi | |
463 | |
464 | |
455 | 465 # 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
|
466 |
455 | 467 if test -n "$NGX_PCH"; then |
469 | 468 echo "#include <ngx_config.h>" > $NGX_OBJS/ngx_pch.c |
455 | 469 |
469 | 470 ngx_pch="src/core/ngx_config.h $OS_CONFIG $NGX_OBJS/ngx_auto_config.h" |
455 | 471 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
|
472 |
455 | 473 ngx_src="\$(CC) \$(CFLAGS) $NGX_BUILD_PCH $ngx_compile_opt \$(ALL_INCS)" |
469 | 474 ngx_src="$ngx_src $ngx_objout$NGX_OBJS/ngx_pch.obj $NGX_OBJS/ngx_pch.c" |
455 | 475 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` |
476 | |
477 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
|
478 |
455 | 479 $ngx_pch |
480 $ngx_src | |
481 | |
482 END | |
483 | |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
281
diff
changeset
|
484 fi |
6383 | 485 |
486 | |
487 # dynamic modules | |
488 | |
489 if test -n "$NGX_PCH"; then | |
490 ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" | |
491 else | |
492 ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) \$(ALL_INCS)" | |
493 fi | |
494 | |
495 ngx_obj_deps="\$(CORE_DEPS)" | |
496 if [ $HTTP != NO ]; then | |
497 ngx_obj_deps="$ngx_obj_deps \$(HTTP_DEPS)" | |
498 fi | |
499 if [ $MAIL != NO ]; then | |
500 ngx_obj_deps="$ngx_obj_deps \$(MAIL_DEPS)" | |
501 fi | |
502 if [ $STREAM != NO ]; then | |
503 ngx_obj_deps="$ngx_obj_deps \$(STREAM_DEPS)" | |
504 fi | |
505 | |
506 for ngx_module in $DYNAMIC_MODULES | |
507 do | |
508 eval ngx_module_srcs="\$${ngx_module}_SRCS" | |
509 eval eval ngx_module_libs="\\\"\$${ngx_module}_LIBS\\\"" | |
510 | |
511 eval ngx_module_modules="\$${ngx_module}_MODULES" | |
512 eval ngx_module_order="\$${ngx_module}_ORDER" | |
513 | |
514 ngx_modules_c=$NGX_OBJS/${ngx_module}_modules.c | |
515 | |
516 cat << END > $ngx_modules_c | |
517 | |
518 #include <ngx_config.h> | |
519 #include <ngx_core.h> | |
520 | |
521 END | |
522 | |
523 for mod in $ngx_module_modules | |
524 do | |
525 echo "extern ngx_module_t $mod;" >> $ngx_modules_c | |
526 done | |
527 | |
528 echo >> $ngx_modules_c | |
529 echo 'ngx_module_t *ngx_modules[] = {' >> $ngx_modules_c | |
530 | |
531 for mod in $ngx_module_modules | |
532 do | |
533 echo " &$mod," >> $ngx_modules_c | |
534 done | |
535 | |
536 cat << END >> $ngx_modules_c | |
537 NULL | |
538 }; | |
539 | |
540 END | |
541 | |
542 echo 'char *ngx_module_names[] = {' >> $ngx_modules_c | |
543 | |
544 for mod in $ngx_module_modules | |
545 do | |
546 echo " \"$mod\"," >> $ngx_modules_c | |
547 done | |
548 | |
549 cat << END >> $ngx_modules_c | |
550 NULL | |
551 }; | |
552 | |
553 END | |
554 | |
555 echo 'char *ngx_module_order[] = {' >> $ngx_modules_c | |
556 | |
557 for mod in $ngx_module_order | |
558 do | |
559 echo " \"$mod\"," >> $ngx_modules_c | |
560 done | |
561 | |
562 cat << END >> $ngx_modules_c | |
563 NULL | |
564 }; | |
565 | |
566 END | |
567 | |
568 ngx_modules_c=`echo $ngx_modules_c | sed -e "s/\//$ngx_regex_dirsep/g"` | |
569 | |
570 ngx_modules_obj=`echo $ngx_modules_c \ | |
571 | sed -e "s/\(.*\.\)c/\1$ngx_objext/"` | |
572 | |
573 ngx_module_objs= | |
574 for ngx_src in $ngx_module_srcs | |
575 do | |
576 case "$ngx_src" in | |
577 src/*) | |
578 ngx_obj=$ngx_src | |
579 ;; | |
580 *) | |
581 ngx_obj="addon/`basename \`dirname $ngx_src\``" | |
582 mkdir -p $NGX_OBJS/$ngx_obj | |
583 ngx_obj="$ngx_obj/`basename $ngx_src`" | |
584 ;; | |
585 esac | |
586 | |
587 ngx_module_objs="$ngx_module_objs $ngx_obj" | |
588 done | |
589 | |
590 ngx_module_objs=`echo $ngx_module_objs \ | |
591 | sed -e "s#\([^ ]*\.\)cpp#$NGX_OBJS\/\1$ngx_objext#g" \ | |
592 -e "s#\([^ ]*\.\)cc#$NGX_OBJS\/\1$ngx_objext#g" \ | |
593 -e "s#\([^ ]*\.\)c#$NGX_OBJS\/\1$ngx_objext#g" \ | |
594 -e "s#\([^ ]*\.\)S#$NGX_OBJS\/\1$ngx_objext#g"` | |
595 | |
596 ngx_deps=`echo $ngx_module_objs $ngx_modules_obj $LINK_DEPS \ | |
597 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \ | |
598 -e "s/\//$ngx_regex_dirsep/g"` | |
599 | |
600 ngx_objs=`echo $ngx_module_objs $ngx_modules_obj \ | |
601 | sed -e "s/ *\([^ ][^ ]*\)/$ngx_long_regex_cont\1/g" \ | |
602 -e "s/\//$ngx_regex_dirsep/g"` | |
603 | |
604 ngx_obj=$NGX_OBJS${ngx_dirsep}${ngx_module}${ngx_modext} | |
605 | |
606 NGX_MODULES="$NGX_MODULES $ngx_obj" | |
607 | |
608 if [ "$NGX_PLATFORM" = win32 ]; then | |
609 ngx_module_libs="$CORE_LIBS $ngx_module_libs" | |
610 fi | |
611 | |
612 ngx_libs= | |
613 if test -n "$NGX_LD_OPT$ngx_module_libs"; then | |
614 ngx_libs=`echo $NGX_LD_OPT $ngx_module_libs \ | |
615 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"` | |
616 fi | |
617 | |
618 ngx_link=${CORE_LINK:+`echo $CORE_LINK \ | |
619 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`} | |
620 | |
621 ngx_module_link=${MODULE_LINK:+`echo $MODULE_LINK \ | |
622 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`} | |
623 | |
624 | |
625 cat << END >> $NGX_MAKEFILE | |
626 | |
627 modules: $ngx_obj | |
628 | |
629 $ngx_obj: $ngx_deps$ngx_spacer | |
630 \$(LINK) $ngx_long_start$ngx_binout$ngx_obj$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_module_link | |
631 $ngx_long_end | |
632 | |
633 $ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c | |
634 $ngx_cc$ngx_tab$ngx_objout$ngx_modules_obj$ngx_tab$ngx_modules_c$NGX_AUX | |
635 | |
636 END | |
637 | |
638 for ngx_src in $ngx_module_srcs | |
639 do | |
640 case "$ngx_src" in | |
641 src/*) | |
642 ngx_obj=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` | |
643 ;; | |
644 *) | |
645 ngx_obj="addon/`basename \`dirname $ngx_src\``" | |
646 ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \ | |
647 | sed -e "s/\//$ngx_regex_dirsep/g"` | |
648 ;; | |
649 esac | |
650 | |
651 ngx_obj=`echo $ngx_obj \ | |
652 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
653 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
654 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ | |
655 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` | |
656 | |
657 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` | |
658 | |
659 cat << END >> $NGX_MAKEFILE | |
660 | |
661 $ngx_obj: $ngx_obj_deps$ngx_cont$ngx_src | |
662 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX | |
663 | |
664 END | |
665 | |
666 done | |
667 done |