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