blob: a539093cedf8aaa7d3bac90d49ac0e18195dbc2f [file] [log] [blame]
Igor Sysoeva8fa0a62003-11-25 20:44:56 +00001
Igor Sysoevff8da912004-09-29 16:00:49 +00002# Copyright (C) Igor Sysoev
Maxim Konovalovf8d59e32012-01-18 15:07:43 +00003# Copyright (C) Nginx, Inc.
Igor Sysoevff8da912004-09-29 16:00:49 +00004
5
Igor Sysoevab517d52004-05-18 15:29:08 +00006CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +00007
Igor Sysoev11dbe972004-03-29 17:43:58 +00008CORE_INCS="src/core"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +00009
10CORE_DEPS="src/core/nginx.h \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000011 src/core/ngx_config.h \
12 src/core/ngx_core.h \
13 src/core/ngx_log.h \
14 src/core/ngx_palloc.h \
15 src/core/ngx_array.h \
16 src/core/ngx_list.h \
Igor Sysoev02f742b2005-04-08 15:18:55 +000017 src/core/ngx_hash.h \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000018 src/core/ngx_buf.h \
Igor Sysoev48bf9972007-11-23 16:32:50 +000019 src/core/ngx_queue.h \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000020 src/core/ngx_string.h \
21 src/core/ngx_parse.h \
Maxim Dounin1e49bdf2015-06-11 20:42:31 +030022 src/core/ngx_parse_time.h \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000023 src/core/ngx_inet.h \
24 src/core/ngx_file.h \
25 src/core/ngx_crc.h \
Igor Sysoev5864fc02006-10-18 19:00:21 +000026 src/core/ngx_crc32.h \
Igor Sysoev42f1e1c2011-04-15 10:59:24 +000027 src/core/ngx_murmurhash.h \
Igor Sysoevd883df22007-10-16 11:59:47 +000028 src/core/ngx_md5.h \
Igor Sysoev7b4d0262007-10-16 12:16:58 +000029 src/core/ngx_sha1.h \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000030 src/core/ngx_rbtree.h \
Igor Sysoev805d9db2005-02-03 19:33:37 +000031 src/core/ngx_radix_tree.h \
Ruslan Ermilovbd873c12015-03-21 14:05:08 +030032 src/core/ngx_rwlock.h \
Igor Sysoev67cd3362006-11-20 08:51:45 +000033 src/core/ngx_slab.h \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000034 src/core/ngx_times.h \
Igor Sysoevffe71442006-02-08 15:33:12 +000035 src/core/ngx_shmtx.h \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000036 src/core/ngx_connection.h \
37 src/core/ngx_cycle.h \
38 src/core/ngx_conf_file.h \
Maxim Dounin1e8139e2016-02-04 18:30:21 +030039 src/core/ngx_module.h \
Igor Sysoevcb4d5382007-11-23 17:13:26 +000040 src/core/ngx_resolver.h \
Igor Sysoev5dc59452011-05-16 14:54:50 +000041 src/core/ngx_open_file_cache.h \
Roman Arutyunyan0b5f3292014-03-17 17:41:24 +040042 src/core/ngx_crypt.h \
Vladimir Homutov493b8982014-05-12 16:34:15 +040043 src/core/ngx_proxy_protocol.h \
44 src/core/ngx_syslog.h"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000045
Igor Sysoev55168f62004-09-28 20:09:22 +000046
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000047CORE_SRCS="src/core/nginx.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000048 src/core/ngx_log.c \
49 src/core/ngx_palloc.c \
50 src/core/ngx_array.c \
51 src/core/ngx_list.c \
Igor Sysoev02f742b2005-04-08 15:18:55 +000052 src/core/ngx_hash.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000053 src/core/ngx_buf.c \
Igor Sysoev5cdc5112008-05-24 14:10:01 +000054 src/core/ngx_queue.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000055 src/core/ngx_output_chain.c \
56 src/core/ngx_string.c \
57 src/core/ngx_parse.c \
Maxim Dounin1e49bdf2015-06-11 20:42:31 +030058 src/core/ngx_parse_time.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000059 src/core/ngx_inet.c \
60 src/core/ngx_file.c \
Igor Sysoev5864fc02006-10-18 19:00:21 +000061 src/core/ngx_crc32.c \
Igor Sysoev42f1e1c2011-04-15 10:59:24 +000062 src/core/ngx_murmurhash.c \
Igor Sysoevb3451782011-04-15 15:58:06 +000063 src/core/ngx_md5.c \
Maxim Dounin05e6a7c2016-06-09 16:55:38 +030064 src/core/ngx_sha1.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000065 src/core/ngx_rbtree.c \
Igor Sysoev805d9db2005-02-03 19:33:37 +000066 src/core/ngx_radix_tree.c \
Igor Sysoev67cd3362006-11-20 08:51:45 +000067 src/core/ngx_slab.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000068 src/core/ngx_times.c \
Igor Sysoevffe71442006-02-08 15:33:12 +000069 src/core/ngx_shmtx.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000070 src/core/ngx_connection.c \
71 src/core/ngx_cycle.c \
72 src/core/ngx_spinlock.c \
Ruslan Ermilovbd873c12015-03-21 14:05:08 +030073 src/core/ngx_rwlock.c \
Igor Sysoevffe71442006-02-08 15:33:12 +000074 src/core/ngx_cpuinfo.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +000075 src/core/ngx_conf_file.c \
Maxim Dounin1e8139e2016-02-04 18:30:21 +030076 src/core/ngx_module.c \
Igor Sysoevcb4d5382007-11-23 17:13:26 +000077 src/core/ngx_resolver.c \
Igor Sysoev5dc59452011-05-16 14:54:50 +000078 src/core/ngx_open_file_cache.c \
Roman Arutyunyan0b5f3292014-03-17 17:41:24 +040079 src/core/ngx_crypt.c \
Vladimir Homutov493b8982014-05-12 16:34:15 +040080 src/core/ngx_proxy_protocol.c \
81 src/core/ngx_syslog.c"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000082
83
84EVENT_MODULES="ngx_events_module ngx_event_core_module"
85
Igor Sysoev11dbe972004-03-29 17:43:58 +000086EVENT_INCS="src/event src/event/modules"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000087
88EVENT_DEPS="src/event/ngx_event.h \
89 src/event/ngx_event_timer.h \
Igor Sysoev9a864bd2004-04-04 20:32:09 +000090 src/event/ngx_event_posted.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000091 src/event/ngx_event_connect.h \
Vladimir Homutov26d87882022-01-25 15:41:48 +030092 src/event/ngx_event_pipe.h \
93 src/event/ngx_event_udp.h"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000094
95EVENT_SRCS="src/event/ngx_event.c \
96 src/event/ngx_event_timer.c \
Igor Sysoev9a864bd2004-04-04 20:32:09 +000097 src/event/ngx_event_posted.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000098 src/event/ngx_event_accept.c \
Roman Arutyunyan5c4f6492018-06-01 16:55:49 +030099 src/event/ngx_event_udp.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000100 src/event/ngx_event_connect.c \
101 src/event/ngx_event_pipe.c"
102
103
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000104SELECT_MODULE=ngx_select_module
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000105SELECT_SRCS=src/event/modules/ngx_select_module.c
Igor Sysoev6ce6fcd2009-05-06 14:53:54 +0000106WIN32_SELECT_SRCS=src/event/modules/ngx_win32_select_module.c
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000107
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000108POLL_MODULE=ngx_poll_module
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000109POLL_SRCS=src/event/modules/ngx_poll_module.c
Maxim Dounin36e54a02019-01-24 21:51:21 +0300110WIN32_POLL_SRCS=src/event/modules/ngx_win32_poll_module.c
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000111
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000112KQUEUE_MODULE=ngx_kqueue_module
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000113KQUEUE_SRCS=src/event/modules/ngx_kqueue_module.c
114
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000115DEVPOLL_MODULE=ngx_devpoll_module
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000116DEVPOLL_SRCS=src/event/modules/ngx_devpoll_module.c
117
Igor Sysoev4524fb02006-09-26 12:20:12 +0000118EVENTPORT_MODULE=ngx_eventport_module
119EVENTPORT_SRCS=src/event/modules/ngx_eventport_module.c
120
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000121EPOLL_MODULE=ngx_epoll_module
Igor Sysoev10318a22004-01-29 21:45:01 +0000122EPOLL_SRCS=src/event/modules/ngx_epoll_module.c
123
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000124IOCP_MODULE=ngx_iocp_module
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000125IOCP_SRCS=src/event/modules/ngx_iocp_module.c
126
Igor Sysoeva9625062009-08-28 08:12:35 +0000127FILE_AIO_SRCS="src/os/unix/ngx_file_aio_read.c"
128LINUX_AIO_SRCS="src/os/unix/ngx_linux_aio_read.c"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000129
Igor Sysoev11dbe972004-03-29 17:43:58 +0000130UNIX_INCS="$CORE_INCS $EVENT_INCS src/os/unix"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000131
132UNIX_DEPS="$CORE_DEPS $EVENT_DEPS \
133 src/os/unix/ngx_time.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000134 src/os/unix/ngx_errno.h \
Igor Sysoev0ab91b92004-06-06 19:49:18 +0000135 src/os/unix/ngx_alloc.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000136 src/os/unix/ngx_files.h \
Igor Sysoeve0207bb2004-06-23 15:18:17 +0000137 src/os/unix/ngx_channel.h \
Igor Sysoev9e580192006-02-01 18:22:15 +0000138 src/os/unix/ngx_shmem.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000139 src/os/unix/ngx_process.h \
Ruslan Ermilovfbd32d42012-03-21 13:58:51 +0000140 src/os/unix/ngx_setaffinity.h \
Igor Sysoev899b44e2005-05-12 14:58:06 +0000141 src/os/unix/ngx_setproctitle.h \
Igor Sysoev078d1b22004-06-30 15:30:41 +0000142 src/os/unix/ngx_atomic.h \
Igor Sysoev78452232005-10-12 13:50:36 +0000143 src/os/unix/ngx_gcc_atomic_x86.h \
Igor Sysoevb54698b2004-02-23 20:57:12 +0000144 src/os/unix/ngx_thread.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000145 src/os/unix/ngx_socket.h \
Igor Sysoeva5362982004-03-04 07:04:55 +0000146 src/os/unix/ngx_os.h \
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000147 src/os/unix/ngx_user.h \
Maxim Douninc52460c2016-02-04 18:30:21 +0300148 src/os/unix/ngx_dlopen.h \
Igor Sysoeva5362982004-03-04 07:04:55 +0000149 src/os/unix/ngx_process_cycle.h"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000150
Igor Sysoev78452232005-10-12 13:50:36 +0000151# add to UNIX_DEPS
152# src/os/unix/ngx_gcc_atomic_amd64.h \
153# src/os/unix/ngx_gcc_atomic_sparc64.h \
154# src/os/unix/ngx_gcc_atomic_ppc.h \
155# src/os/unix/ngx_sunpro_atomic_sparc64.h \
156# src/os/unix/ngx_sunpro_x86.il \
157# src/os/unix/ngx_sunpro_amd64.il \
158# src/os/unix/ngx_sunpro_sparc64.il \
159
160
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000161UNIX_SRCS="$CORE_SRCS $EVENT_SRCS \
162 src/os/unix/ngx_time.c \
Igor Sysoevdc867cd2003-12-14 20:10:27 +0000163 src/os/unix/ngx_errno.c \
Igor Sysoev0ab91b92004-06-06 19:49:18 +0000164 src/os/unix/ngx_alloc.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000165 src/os/unix/ngx_files.c \
166 src/os/unix/ngx_socket.c \
167 src/os/unix/ngx_recv.c \
168 src/os/unix/ngx_readv_chain.c \
Igor Sysoeve67d4612007-12-03 16:46:46 +0000169 src/os/unix/ngx_udp_recv.c \
Igor Sysoev59cf56c2004-09-07 15:29:22 +0000170 src/os/unix/ngx_send.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000171 src/os/unix/ngx_writev_chain.c \
Roman Arutyunyan850dfaa2016-01-20 19:52:12 +0300172 src/os/unix/ngx_udp_send.c \
Roman Arutyunyan17003b52016-09-15 14:55:46 +0300173 src/os/unix/ngx_udp_sendmsg_chain.c \
Igor Sysoeve0207bb2004-06-23 15:18:17 +0000174 src/os/unix/ngx_channel.c \
Igor Sysoev9e580192006-02-01 18:22:15 +0000175 src/os/unix/ngx_shmem.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000176 src/os/unix/ngx_process.c \
Igor Sysoev415b1ce2004-06-17 17:18:53 +0000177 src/os/unix/ngx_daemon.c \
Ruslan Ermilovfbd32d42012-03-21 13:58:51 +0000178 src/os/unix/ngx_setaffinity.c \
Igor Sysoev924bd792004-10-11 15:07:03 +0000179 src/os/unix/ngx_setproctitle.c \
Igor Sysoeva5362982004-03-04 07:04:55 +0000180 src/os/unix/ngx_posix_init.c \
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000181 src/os/unix/ngx_user.c \
Maxim Douninc52460c2016-02-04 18:30:21 +0300182 src/os/unix/ngx_dlopen.c \
Igor Sysoeva5362982004-03-04 07:04:55 +0000183 src/os/unix/ngx_process_cycle.c"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000184
Igor Sysoevd09f7a12004-06-15 17:47:16 +0000185POSIX_DEPS=src/os/unix/ngx_posix_config.h
186
Valentin Bartenev27e49d72015-03-14 17:37:07 +0300187THREAD_POOL_MODULE=ngx_thread_pool_module
188THREAD_POOL_DEPS=src/core/ngx_thread_pool.h
189THREAD_POOL_SRCS="src/core/ngx_thread_pool.c
190 src/os/unix/ngx_thread_cond.c
191 src/os/unix/ngx_thread_mutex.c
192 src/os/unix/ngx_thread_id.c"
193
Igor Sysoevdc3bbea2007-12-22 10:32:00 +0000194FREEBSD_DEPS="src/os/unix/ngx_freebsd_config.h src/os/unix/ngx_freebsd.h"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000195FREEBSD_SRCS=src/os/unix/ngx_freebsd_init.c
196FREEBSD_SENDFILE_SRCS=src/os/unix/ngx_freebsd_sendfile_chain.c
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000197
Igor Sysoevdc3bbea2007-12-22 10:32:00 +0000198LINUX_DEPS="src/os/unix/ngx_linux_config.h src/os/unix/ngx_linux.h"
Igor Sysoevc0f8d912003-11-26 15:42:18 +0000199LINUX_SRCS=src/os/unix/ngx_linux_init.c
200LINUX_SENDFILE_SRCS=src/os/unix/ngx_linux_sendfile_chain.c
201
202
Igor Sysoevdc3bbea2007-12-22 10:32:00 +0000203SOLARIS_DEPS="src/os/unix/ngx_solaris_config.h src/os/unix/ngx_solaris.h"
Igor Sysoevc0f8d912003-11-26 15:42:18 +0000204SOLARIS_SRCS=src/os/unix/ngx_solaris_init.c
Igor Sysoev0e499db2003-11-27 07:45:22 +0000205SOLARIS_SENDFILEV_SRCS=src/os/unix/ngx_solaris_sendfilev_chain.c
Igor Sysoevc0f8d912003-11-26 15:42:18 +0000206
207
Igor Sysoev74944902008-07-30 12:18:07 +0000208DARWIN_DEPS="src/os/unix/ngx_darwin_config.h src/os/unix/ngx_darwin.h"
209DARWIN_SRCS=src/os/unix/ngx_darwin_init.c
210DARWIN_SENDFILE_SRCS=src/os/unix/ngx_darwin_sendfile_chain.c
211
212
Igor Sysoev11dbe972004-03-29 17:43:58 +0000213WIN32_INCS="$CORE_INCS $EVENT_INCS src/os/win32"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000214
215WIN32_DEPS="$CORE_DEPS $EVENT_DEPS \
216 src/os/win32/ngx_win32_config.h \
217 src/os/win32/ngx_time.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000218 src/os/win32/ngx_errno.h \
Igor Sysoev0ab91b92004-06-06 19:49:18 +0000219 src/os/win32/ngx_alloc.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000220 src/os/win32/ngx_files.h \
Igor Sysoev9e580192006-02-01 18:22:15 +0000221 src/os/win32/ngx_shmem.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000222 src/os/win32/ngx_process.h \
Igor Sysoev078d1b22004-06-30 15:30:41 +0000223 src/os/win32/ngx_atomic.h \
Igor Sysoev1b735832004-11-11 14:07:14 +0000224 src/os/win32/ngx_thread.h \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000225 src/os/win32/ngx_socket.h \
Igor Sysoeva5362982004-03-04 07:04:55 +0000226 src/os/win32/ngx_os.h \
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000227 src/os/win32/ngx_user.h \
Maxim Douninc52460c2016-02-04 18:30:21 +0300228 src/os/win32/ngx_dlopen.h \
Igor Sysoeva5362982004-03-04 07:04:55 +0000229 src/os/win32/ngx_process_cycle.h"
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000230
Igor Sysoevfc5a10a2004-03-09 19:47:07 +0000231WIN32_CONFIG=src/os/win32/ngx_win32_config.h
232
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000233WIN32_SRCS="$CORE_SRCS $EVENT_SRCS \
234 src/os/win32/ngx_errno.c \
Igor Sysoev0ab91b92004-06-06 19:49:18 +0000235 src/os/win32/ngx_alloc.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000236 src/os/win32/ngx_files.c \
Igor Sysoev9e580192006-02-01 18:22:15 +0000237 src/os/win32/ngx_shmem.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000238 src/os/win32/ngx_time.c \
Igor Sysoeva5362982004-03-04 07:04:55 +0000239 src/os/win32/ngx_process.c \
Igor Sysoev1b735832004-11-11 14:07:14 +0000240 src/os/win32/ngx_thread.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000241 src/os/win32/ngx_socket.c \
242 src/os/win32/ngx_wsarecv.c \
243 src/os/win32/ngx_wsarecv_chain.c \
Igor Sysoeve67d4612007-12-03 16:46:46 +0000244 src/os/win32/ngx_udp_wsarecv.c \
Igor Sysoevbd919992009-04-20 06:08:47 +0000245 src/os/win32/ngx_wsasend.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000246 src/os/win32/ngx_wsasend_chain.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000247 src/os/win32/ngx_win32_init.c \
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000248 src/os/win32/ngx_user.c \
Maxim Douninc52460c2016-02-04 18:30:21 +0300249 src/os/win32/ngx_dlopen.c \
Igor Sysoevbd919992009-04-20 06:08:47 +0000250 src/os/win32/ngx_event_log.c \
Igor Sysoeva5362982004-03-04 07:04:55 +0000251 src/os/win32/ngx_process_cycle.c \
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000252 src/event/ngx_event_acceptex.c"
253
Igor Sysoevbd919992009-04-20 06:08:47 +0000254NGX_WIN32_ICONS="src/os/win32/nginx.ico"
Igor Sysoev1b735832004-11-11 14:07:14 +0000255NGX_WIN32_RC="src/os/win32/nginx.rc"
256
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000257
Igor Sysoev6b0de802008-03-12 21:10:48 +0000258HTTP_FILE_CACHE_SRCS=src/http/ngx_http_file_cache.c
Ruslan Ermilovd35dfe22021-12-21 07:54:16 +0300259
260HTTP_HUFF_SRCS="src/http/ngx_http_huff_decode.c
261 src/http/ngx_http_huff_encode.c"