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