2 # Copyright (C) Igor Sysoev
5 CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
9 CORE_DEPS="src/core/nginx.h \
10 src/core/ngx_config.h \
13 src/core/ngx_palloc.h \
14 src/core/ngx_array.h \
18 src/core/ngx_queue.h \
19 src/core/ngx_string.h \
20 src/core/ngx_parse.h \
24 src/core/ngx_crc32.h \
27 src/core/ngx_rbtree.h \
28 src/core/ngx_radix_tree.h \
30 src/core/ngx_times.h \
31 src/core/ngx_shmtx.h \
32 src/core/ngx_connection.h \
33 src/core/ngx_cycle.h \
34 src/core/ngx_conf_file.h \
35 src/core/ngx_resolver.h \
36 src/core/ngx_open_file_cache.h \
37 src/core/ngx_garbage_collector.h"
40 CORE_SRCS="src/core/nginx.c \
42 src/core/ngx_palloc.c \
43 src/core/ngx_array.c \
47 src/core/ngx_queue.c \
48 src/core/ngx_output_chain.c \
49 src/core/ngx_string.c \
50 src/core/ngx_parse.c \
53 src/core/ngx_crc32.c \
54 src/core/ngx_rbtree.c \
55 src/core/ngx_radix_tree.c \
57 src/core/ngx_times.c \
58 src/core/ngx_shmtx.c \
59 src/core/ngx_connection.c \
60 src/core/ngx_cycle.c \
61 src/core/ngx_spinlock.c \
62 src/core/ngx_cpuinfo.c \
63 src/core/ngx_conf_file.c \
64 src/core/ngx_resolver.c \
65 src/core/ngx_open_file_cache.c \
66 src/core/ngx_garbage_collector.c"
69 REGEX_DEPS=src/core/ngx_regex.h
70 REGEX_SRCS=src/core/ngx_regex.c
73 OPENSSL_MODULE=ngx_openssl_module
74 OPENSSL_DEPS=src/event/ngx_event_openssl.h
75 OPENSSL_SRCS=src/event/ngx_event_openssl.c
78 EVENT_MODULES="ngx_events_module ngx_event_core_module"
80 EVENT_INCS="src/event src/event/modules"
82 EVENT_DEPS="src/event/ngx_event.h \
83 src/event/ngx_event_timer.h \
84 src/event/ngx_event_posted.h \
85 src/event/ngx_event_busy_lock.h \
86 src/event/ngx_event_connect.h \
87 src/event/ngx_event_pipe.h"
89 EVENT_SRCS="src/event/ngx_event.c \
90 src/event/ngx_event_timer.c \
91 src/event/ngx_event_posted.c \
92 src/event/ngx_event_busy_lock.c \
93 src/event/ngx_event_accept.c \
94 src/event/ngx_event_connect.c \
95 src/event/ngx_event_pipe.c"
98 SELECT_MODULE=ngx_select_module
99 SELECT_SRCS=src/event/modules/ngx_select_module.c
101 POLL_MODULE=ngx_poll_module
102 POLL_SRCS=src/event/modules/ngx_poll_module.c
104 KQUEUE_MODULE=ngx_kqueue_module
105 KQUEUE_SRCS=src/event/modules/ngx_kqueue_module.c
107 DEVPOLL_MODULE=ngx_devpoll_module
108 DEVPOLL_SRCS=src/event/modules/ngx_devpoll_module.c
110 EVENTPORT_MODULE=ngx_eventport_module
111 EVENTPORT_SRCS=src/event/modules/ngx_eventport_module.c
113 EPOLL_MODULE=ngx_epoll_module
114 EPOLL_SRCS=src/event/modules/ngx_epoll_module.c
116 RTSIG_MODULE=ngx_rtsig_module
117 RTSIG_SRCS=src/event/modules/ngx_rtsig_module.c
119 IOCP_MODULE=ngx_iocp_module
120 IOCP_SRCS=src/event/modules/ngx_iocp_module.c
122 AIO_MODULE=ngx_aio_module
123 AIO_SRCS="src/event/modules/ngx_aio_module.c \
124 src/os/unix/ngx_aio_read.c \
125 src/os/unix/ngx_aio_write.c \
126 src/os/unix/ngx_aio_read_chain.c \
127 src/os/unix/ngx_aio_write_chain.c"
130 UNIX_INCS="$CORE_INCS $EVENT_INCS src/os/unix"
132 UNIX_DEPS="$CORE_DEPS $EVENT_DEPS \
133 src/os/unix/ngx_time.h \
134 src/os/unix/ngx_errno.h \
135 src/os/unix/ngx_alloc.h \
136 src/os/unix/ngx_files.h \
137 src/os/unix/ngx_channel.h \
138 src/os/unix/ngx_shmem.h \
139 src/os/unix/ngx_process.h \
140 src/os/unix/ngx_setproctitle.h \
141 src/os/unix/ngx_atomic.h \
142 src/os/unix/ngx_gcc_atomic_x86.h \
143 src/os/unix/ngx_thread.h \
144 src/os/unix/ngx_socket.h \
145 src/os/unix/ngx_os.h \
146 src/os/unix/ngx_user.h \
147 src/os/unix/ngx_process_cycle.h"
150 # src/os/unix/ngx_gcc_atomic_amd64.h \
151 # src/os/unix/ngx_gcc_atomic_sparc64.h \
152 # src/os/unix/ngx_gcc_atomic_ppc.h \
153 # src/os/unix/ngx_sunpro_atomic_sparc64.h \
154 # src/os/unix/ngx_sunpro_x86.il \
155 # src/os/unix/ngx_sunpro_amd64.il \
156 # src/os/unix/ngx_sunpro_sparc64.il \
159 UNIX_SRCS="$CORE_SRCS $EVENT_SRCS \
160 src/os/unix/ngx_time.c \
161 src/os/unix/ngx_errno.c \
162 src/os/unix/ngx_alloc.c \
163 src/os/unix/ngx_files.c \
164 src/os/unix/ngx_socket.c \
165 src/os/unix/ngx_recv.c \
166 src/os/unix/ngx_readv_chain.c \
167 src/os/unix/ngx_udp_recv.c \
168 src/os/unix/ngx_send.c \
169 src/os/unix/ngx_writev_chain.c \
170 src/os/unix/ngx_channel.c \
171 src/os/unix/ngx_shmem.c \
172 src/os/unix/ngx_process.c \
173 src/os/unix/ngx_daemon.c \
174 src/os/unix/ngx_setproctitle.c \
175 src/os/unix/ngx_posix_init.c \
176 src/os/unix/ngx_user.c \
177 src/os/unix/ngx_process_cycle.c"
179 POSIX_DEPS=src/os/unix/ngx_posix_config.h
181 FREEBSD_DEPS="src/os/unix/ngx_freebsd_config.h src/os/unix/ngx_freebsd.h"
182 FREEBSD_SRCS=src/os/unix/ngx_freebsd_init.c
183 FREEBSD_SENDFILE_SRCS=src/os/unix/ngx_freebsd_sendfile_chain.c
184 FREEBSD_RFORK_DEPS="src/os/unix/ngx_freebsd_rfork_thread.h"
185 FREEBSD_RFORK_SRCS="src/os/unix/ngx_freebsd_rfork_thread.c"
186 FREEBSD_RFORK_THREAD_SRCS="src/os/unix/rfork_thread.S"
188 PTHREAD_SRCS="src/os/unix/ngx_pthread_thread.c"
190 LINUX_DEPS="src/os/unix/ngx_linux_config.h src/os/unix/ngx_linux.h"
191 LINUX_SRCS=src/os/unix/ngx_linux_init.c
192 LINUX_SENDFILE_SRCS=src/os/unix/ngx_linux_sendfile_chain.c
195 SOLARIS_DEPS="src/os/unix/ngx_solaris_config.h src/os/unix/ngx_solaris.h"
196 SOLARIS_SRCS=src/os/unix/ngx_solaris_init.c
197 SOLARIS_SENDFILEV_SRCS=src/os/unix/ngx_solaris_sendfilev_chain.c
200 DARWIN_DEPS="src/os/unix/ngx_darwin_config.h src/os/unix/ngx_darwin.h"
201 DARWIN_SRCS=src/os/unix/ngx_darwin_init.c
202 DARWIN_SENDFILE_SRCS=src/os/unix/ngx_darwin_sendfile_chain.c
205 WIN32_INCS="$CORE_INCS $EVENT_INCS src/os/win32"
207 WIN32_DEPS="$CORE_DEPS $EVENT_DEPS \
208 src/os/win32/ngx_win32_config.h \
209 src/os/win32/ngx_time.h \
210 src/os/win32/ngx_errno.h \
211 src/os/win32/ngx_alloc.h \
212 src/os/win32/ngx_files.h \
213 src/os/win32/ngx_shmem.h \
214 src/os/win32/ngx_process.h \
215 src/os/win32/ngx_atomic.h \
216 src/os/win32/ngx_thread.h \
217 src/os/win32/ngx_socket.h \
218 src/os/win32/ngx_os.h \
219 src/os/win32/ngx_user.h \
220 src/os/win32/ngx_gui.h \
221 src/os/win32/ngx_gui_resources.h \
222 src/os/win32/ngx_process_cycle.h"
224 WIN32_CONFIG=src/os/win32/ngx_win32_config.h
226 WIN32_SRCS="$CORE_SRCS $EVENT_SRCS \
227 src/os/win32/ngx_errno.c \
228 src/os/win32/ngx_alloc.c \
229 src/os/win32/ngx_files.c \
230 src/os/win32/ngx_shmem.c \
231 src/os/win32/ngx_time.c \
232 src/os/win32/ngx_process.c \
233 src/os/win32/ngx_thread.c \
234 src/os/win32/ngx_socket.c \
235 src/os/win32/ngx_wsarecv.c \
236 src/os/win32/ngx_wsarecv_chain.c \
237 src/os/win32/ngx_udp_wsarecv.c \
238 src/os/win32/ngx_wsasend_chain.c \
239 src/os/win32/ngx_win32_init.c \
240 src/os/win32/ngx_user.c \
241 src/os/win32/ngx_gui.c \
242 src/os/win32/ngx_process_cycle.c \
243 src/event/ngx_event_acceptex.c"
245 NGX_WIN32_ICONS="src/os/win32/nginx.ico src/os/win32/nginx_tray.ico"
246 NGX_WIN32_RC="src/os/win32/nginx.rc"
249 # the http modules that have their logging formats
250 # must be after ngx_http_log_module
252 HTTP_MODULES="ngx_http_module \
253 ngx_http_core_module \
254 ngx_http_log_module \
255 ngx_http_upstream_module"
257 HTTP_CACHE_MODULE=ngx_http_cache_module
259 HTTP_WRITE_FILTER_MODULE="ngx_http_write_filter_module"
260 HTTP_HEADER_FILTER_MODULE="ngx_http_header_filter_module"
262 HTTP_POSTPONE_FILTER_MODULE=ngx_http_postpone_filter_module
263 HTTP_COPY_FILTER_MODULE=ngx_http_copy_filter_module
265 HTTP_CHUNKED_FILTER_MODULE=ngx_http_chunked_filter_module
266 HTTP_HEADERS_FILTER_MODULE=ngx_http_headers_filter_module
268 HTTP_RANGE_HEADER_FILTER_MODULE=ngx_http_range_header_filter_module
269 HTTP_RANGE_BODY_FILTER_MODULE=ngx_http_range_body_filter_module
271 HTTP_NOT_MODIFIED_FILTER_MODULE=ngx_http_not_modified_filter_module
273 HTTP_STATIC_MODULE=ngx_http_static_module
274 HTTP_INDEX_MODULE=ngx_http_index_module
276 HTTP_INCS="src/http src/http/modules"
278 HTTP_DEPS="src/http/ngx_http.h \
279 src/http/ngx_http_request.h \
280 src/http/ngx_http_config.h \
281 src/http/ngx_http_core_module.h \
282 src/http/ngx_http_cache.h \
283 src/http/ngx_http_variables.h \
284 src/http/ngx_http_script.h \
285 src/http/ngx_http_upstream.h \
286 src/http/ngx_http_upstream_round_robin.h \
287 src/http/ngx_http_busy_lock.h"
289 HTTP_SRCS="src/http/ngx_http.c \
290 src/http/ngx_http_core_module.c \
291 src/http/ngx_http_special_response.c \
292 src/http/ngx_http_request.c \
293 src/http/ngx_http_parse.c \
294 src/http/ngx_http_header_filter_module.c \
295 src/http/ngx_http_write_filter_module.c \
296 src/http/ngx_http_copy_filter_module.c \
297 src/http/modules/ngx_http_log_module.c \
298 src/http/ngx_http_request_body.c \
299 src/http/ngx_http_variables.c \
300 src/http/ngx_http_script.c \
301 src/http/ngx_http_upstream.c \
302 src/http/ngx_http_upstream_round_robin.c \
303 src/http/ngx_http_parse_time.c \
304 src/http/modules/ngx_http_static_module.c \
305 src/http/modules/ngx_http_index_module.c \
306 src/http/modules/ngx_http_chunked_filter_module.c \
307 src/http/modules/ngx_http_range_filter_module.c \
308 src/http/modules/ngx_http_headers_filter_module.c \
309 src/http/modules/ngx_http_not_modified_filter_module.c"
312 HTTP_SRCS="$HTTP_SRCS src/http/ngx_http_busy_lock.c"
314 HTTP_POSTPONE_FILTER_SRCS=src/http/ngx_http_postpone_filter_module.c
316 HTTP_CACHE_SRCS=src/http/ngx_http_cache.c
317 HTTP_FILE_CACHE_SRCS=src/http/ngx_http_file_cache.c
320 HTTP_CHARSET_FILTER_MODULE=ngx_http_charset_filter_module
321 HTTP_CHARSET_SRCS=src/http/modules/ngx_http_charset_filter_module.c
324 HTTP_GZIP_FILTER_MODULE=ngx_http_gzip_filter_module
325 HTTP_GZIP_SRCS=src/http/modules/ngx_http_gzip_filter_module.c
328 HTTP_SSI_FILTER_MODULE=ngx_http_ssi_filter_module
329 HTTP_SSI_DEPS=src/http/modules/ngx_http_ssi_filter_module.h
330 HTTP_SSI_SRCS=src/http/modules/ngx_http_ssi_filter_module.c
333 HTTP_XSLT_FILTER_MODULE=ngx_http_xslt_filter_module
334 HTTP_XSLT_SRCS=src/http/modules/ngx_http_xslt_filter_module.c
337 HTTP_SUB_FILTER_MODULE=ngx_http_sub_filter_module
338 HTTP_SUB_SRCS=src/http/modules/ngx_http_sub_filter_module.c
341 HTTP_USERID_FILTER_MODULE=ngx_http_userid_filter_module
342 HTTP_USERID_SRCS=src/http/modules/ngx_http_userid_filter_module.c
345 HTTP_REALIP_MODULE=ngx_http_realip_module
346 HTTP_REALIP_SRCS=src/http/modules/ngx_http_realip_module.c
349 HTTP_ADDITION_FILTER_MODULE=ngx_http_addition_filter_module
350 HTTP_ADDITION_SRCS=src/http/modules/ngx_http_addition_filter_module.c
353 HTTP_DAV_MODULE=ngx_http_dav_module
354 HTTP_DAV_SRCS=src/http/modules/ngx_http_dav_module.c
357 HTTP_ACCESS_MODULE=ngx_http_access_module
358 HTTP_ACCESS_SRCS=src/http/modules/ngx_http_access_module.c
361 HTTP_AUTH_BASIC_MODULE=ngx_http_auth_basic_module
362 HTTP_AUTH_BASIC_SRCS=src/http/modules/ngx_http_auth_basic_module.c
365 HTTP_AUTOINDEX_MODULE=ngx_http_autoindex_module
366 HTTP_AUTOINDEX_SRCS=src/http/modules/ngx_http_autoindex_module.c
369 HTTP_RANDOM_INDEX_MODULE=ngx_http_random_index_module
370 HTTP_RANDOM_INDEX_SRCS=src/http/modules/ngx_http_random_index_module.c
373 HTTP_STATUS_MODULE=ngx_http_status_module
374 HTTP_STATUS_SRCS=src/http/modules/ngx_http_status_module.c
377 HTTP_GEO_MODULE=ngx_http_geo_module
378 HTTP_GEO_SRCS=src/http/modules/ngx_http_geo_module.c
381 HTTP_MAP_MODULE=ngx_http_map_module
382 HTTP_MAP_SRCS=src/http/modules/ngx_http_map_module.c
385 HTTP_REFERER_MODULE=ngx_http_referer_module
386 HTTP_REFERER_SRCS=src/http/modules/ngx_http_referer_module.c
389 HTTP_REWRITE_MODULE=ngx_http_rewrite_module
390 HTTP_REWRITE_SRCS=src/http/modules/ngx_http_rewrite_module.c
393 HTTP_SSL_MODULE=ngx_http_ssl_module
394 HTTP_SSL_DEPS=src/http/modules/ngx_http_ssl_module.h
395 HTTP_SSL_SRCS=src/http/modules/ngx_http_ssl_module.c
398 HTTP_PROXY_MODULE=ngx_http_proxy_module
399 HTTP_PROXY_SRCS=src/http/modules/ngx_http_proxy_module.c
402 HTTP_FASTCGI_MODULE=ngx_http_fastcgi_module
403 HTTP_FASTCGI_SRCS=src/http/modules/ngx_http_fastcgi_module.c
406 HTTP_PERL_MODULE=ngx_http_perl_module
407 HTTP_PERL_INCS=src/http/modules/perl
408 HTTP_PERL_DEPS=src/http/modules/perl/ngx_http_perl_module.h
409 HTTP_PERL_SRCS=src/http/modules/perl/ngx_http_perl_module.c
412 HTTP_MEMCACHED_MODULE=ngx_http_memcached_module
413 HTTP_MEMCACHED_SRCS=src/http/modules/ngx_http_memcached_module.c
416 HTTP_LIMIT_ZONE_MODULE=ngx_http_limit_zone_module
417 HTTP_LIMIT_ZONE_SRCS=src/http/modules/ngx_http_limit_zone_module.c
420 HTTP_LIMIT_REQ_MODULE=ngx_http_limit_req_module
421 HTTP_LIMIT_REQ_SRCS=src/http/modules/ngx_http_limit_req_module.c
424 HTTP_EMPTY_GIF_MODULE=ngx_http_empty_gif_module
425 HTTP_EMPTY_GIF_SRCS=src/http/modules/ngx_http_empty_gif_module.c
428 HTTP_BROWSER_MODULE=ngx_http_browser_module
429 HTTP_BROWSER_SRCS=src/http/modules/ngx_http_browser_module.c
432 HTTP_SECURE_LINK_MODULE=ngx_http_secure_link_module
433 HTTP_SECURE_LINK_SRCS=src/http/modules/ngx_http_secure_link_module.c
436 HTTP_FLV_MODULE=ngx_http_flv_module
437 HTTP_FLV_SRCS=src/http/modules/ngx_http_flv_module.c
440 HTTP_GZIP_STATIC_MODULE=ngx_http_gzip_static_module
441 HTTP_GZIP_STATIC_SRCS=src/http/modules/ngx_http_gzip_static_module.c
444 HTTP_UPSTREAM_IP_HASH_MODULE=ngx_http_upstream_ip_hash_module
445 HTTP_UPSTREAM_IP_HASH_SRCS=src/http/modules/ngx_http_upstream_ip_hash_module.c
450 MAIL_DEPS="src/mail/ngx_mail.h"
452 MAIL_MODULES="ngx_mail_module ngx_mail_core_module"
454 MAIL_SRCS="src/mail/ngx_mail.c \
455 src/mail/ngx_mail_core_module.c \
456 src/mail/ngx_mail_handler.c \
457 src/mail/ngx_mail_parse.c"
459 MAIL_POP3_MODULE="ngx_mail_pop3_module"
460 MAIL_POP3_DEPS="src/mail/ngx_mail_pop3_module.h"
461 MAIL_POP3_SRCS="src/mail/ngx_mail_pop3_module.c \
462 src/mail/ngx_mail_pop3_handler.c"
464 MAIL_IMAP_MODULE="ngx_mail_imap_module"
465 MAIL_IMAP_DEPS="src/mail/ngx_mail_imap_module.h"
466 MAIL_IMAP_SRCS="src/mail/ngx_mail_imap_module.c \
467 src/mail/ngx_mail_imap_handler.c"
469 MAIL_SMTP_MODULE="ngx_mail_smtp_module"
470 MAIL_SMTP_DEPS="src/mail/ngx_mail_smtp_module.h"
471 MAIL_SMTP_SRCS="src/mail/ngx_mail_smtp_module.c \
472 src/mail/ngx_mail_smtp_handler.c"
474 MAIL_SSL_MODULE="ngx_mail_ssl_module"
475 MAIL_SSL_DEPS="src/mail/ngx_mail_ssl_module.h"
476 MAIL_SSL_SRCS="src/mail/ngx_mail_ssl_module.c"
478 MAIL_AUTH_HTTP_MODULE="ngx_mail_auth_http_module"
479 MAIL_AUTH_HTTP_SRCS="src/mail/ngx_mail_auth_http_module.c"
481 MAIL_PROXY_MODULE="ngx_mail_proxy_module"
482 MAIL_PROXY_SRCS="src/mail/ngx_mail_proxy_module.c"
484 NGX_GOOGLE_PERFTOOLS_MODULE=ngx_google_perftools_module
485 NGX_GOOGLE_PERFTOOLS_SRCS=src/misc/ngx_google_perftools_module.c
487 NGX_CPP_TEST_SRCS=src/misc/ngx_cpp_test_module.cpp