sources 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. # Copyright (C) Igor Sysoev
  2. CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
  3. CORE_INCS="src/core"
  4. CORE_DEPS="src/core/nginx.h \
  5. src/core/ngx_config.h \
  6. src/core/ngx_core.h \
  7. src/core/ngx_log.h \
  8. src/core/ngx_palloc.h \
  9. src/core/ngx_array.h \
  10. src/core/ngx_list.h \
  11. src/core/ngx_hash.h \
  12. src/core/ngx_buf.h \
  13. src/core/ngx_queue.h \
  14. src/core/ngx_string.h \
  15. src/core/ngx_parse.h \
  16. src/core/ngx_inet.h \
  17. src/core/ngx_file.h \
  18. src/core/ngx_crc.h \
  19. src/core/ngx_crc32.h \
  20. src/core/ngx_md5.h \
  21. src/core/ngx_sha1.h \
  22. src/core/ngx_rbtree.h \
  23. src/core/ngx_radix_tree.h \
  24. src/core/ngx_slab.h \
  25. src/core/ngx_times.h \
  26. src/core/ngx_shmtx.h \
  27. src/core/ngx_connection.h \
  28. src/core/ngx_cycle.h \
  29. src/core/ngx_conf_file.h \
  30. src/core/ngx_resolver.h \
  31. src/core/ngx_open_file_cache.h"
  32. CORE_SRCS="src/core/nginx.c \
  33. src/core/ngx_log.c \
  34. src/core/ngx_palloc.c \
  35. src/core/ngx_array.c \
  36. src/core/ngx_list.c \
  37. src/core/ngx_hash.c \
  38. src/core/ngx_buf.c \
  39. src/core/ngx_queue.c \
  40. src/core/ngx_output_chain.c \
  41. src/core/ngx_string.c \
  42. src/core/ngx_parse.c \
  43. src/core/ngx_inet.c \
  44. src/core/ngx_file.c \
  45. src/core/ngx_crc32.c \
  46. src/core/ngx_rbtree.c \
  47. src/core/ngx_radix_tree.c \
  48. src/core/ngx_slab.c \
  49. src/core/ngx_times.c \
  50. src/core/ngx_shmtx.c \
  51. src/core/ngx_connection.c \
  52. src/core/ngx_cycle.c \
  53. src/core/ngx_spinlock.c \
  54. src/core/ngx_cpuinfo.c \
  55. src/core/ngx_conf_file.c \
  56. src/core/ngx_resolver.c \
  57. src/core/ngx_open_file_cache.c"
  58. REGEX_DEPS=src/core/ngx_regex.h
  59. REGEX_SRCS=src/core/ngx_regex.c
  60. OPENSSL_MODULE=ngx_openssl_module
  61. OPENSSL_DEPS=src/event/ngx_event_openssl.h
  62. OPENSSL_SRCS=src/event/ngx_event_openssl.c
  63. EVENT_MODULES="ngx_events_module ngx_event_core_module"
  64. EVENT_INCS="src/event src/event/modules"
  65. EVENT_DEPS="src/event/ngx_event.h \
  66. src/event/ngx_event_timer.h \
  67. src/event/ngx_event_posted.h \
  68. src/event/ngx_event_busy_lock.h \
  69. src/event/ngx_event_connect.h \
  70. src/event/ngx_event_pipe.h"
  71. EVENT_SRCS="src/event/ngx_event.c \
  72. src/event/ngx_event_timer.c \
  73. src/event/ngx_event_posted.c \
  74. src/event/ngx_event_busy_lock.c \
  75. src/event/ngx_event_accept.c \
  76. src/event/ngx_event_connect.c \
  77. src/event/ngx_event_pipe.c"
  78. SELECT_MODULE=ngx_select_module
  79. SELECT_SRCS=src/event/modules/ngx_select_module.c
  80. WIN32_SELECT_SRCS=src/event/modules/ngx_win32_select_module.c
  81. POLL_MODULE=ngx_poll_module
  82. POLL_SRCS=src/event/modules/ngx_poll_module.c
  83. KQUEUE_MODULE=ngx_kqueue_module
  84. KQUEUE_SRCS=src/event/modules/ngx_kqueue_module.c
  85. DEVPOLL_MODULE=ngx_devpoll_module
  86. DEVPOLL_SRCS=src/event/modules/ngx_devpoll_module.c
  87. EVENTPORT_MODULE=ngx_eventport_module
  88. EVENTPORT_SRCS=src/event/modules/ngx_eventport_module.c
  89. EPOLL_MODULE=ngx_epoll_module
  90. EPOLL_SRCS=src/event/modules/ngx_epoll_module.c
  91. RTSIG_MODULE=ngx_rtsig_module
  92. RTSIG_SRCS=src/event/modules/ngx_rtsig_module.c
  93. IOCP_MODULE=ngx_iocp_module
  94. IOCP_SRCS=src/event/modules/ngx_iocp_module.c
  95. AIO_MODULE=ngx_aio_module
  96. AIO_SRCS="src/event/modules/ngx_aio_module.c \
  97. src/os/unix/ngx_aio_read.c \
  98. src/os/unix/ngx_aio_write.c \
  99. src/os/unix/ngx_aio_read_chain.c \
  100. src/os/unix/ngx_aio_write_chain.c"
  101. UNIX_INCS="$CORE_INCS $EVENT_INCS src/os/unix"
  102. UNIX_DEPS="$CORE_DEPS $EVENT_DEPS \
  103. src/os/unix/ngx_time.h \
  104. src/os/unix/ngx_errno.h \
  105. src/os/unix/ngx_alloc.h \
  106. src/os/unix/ngx_files.h \
  107. src/os/unix/ngx_channel.h \
  108. src/os/unix/ngx_shmem.h \
  109. src/os/unix/ngx_process.h \
  110. src/os/unix/ngx_setproctitle.h \
  111. src/os/unix/ngx_atomic.h \
  112. src/os/unix/ngx_gcc_atomic_x86.h \
  113. src/os/unix/ngx_thread.h \
  114. src/os/unix/ngx_socket.h \
  115. src/os/unix/ngx_os.h \
  116. src/os/unix/ngx_user.h \
  117. src/os/unix/ngx_process_cycle.h"
  118. # add to UNIX_DEPS
  119. # src/os/unix/ngx_gcc_atomic_amd64.h \
  120. # src/os/unix/ngx_gcc_atomic_sparc64.h \
  121. # src/os/unix/ngx_gcc_atomic_ppc.h \
  122. # src/os/unix/ngx_sunpro_atomic_sparc64.h \
  123. # src/os/unix/ngx_sunpro_x86.il \
  124. # src/os/unix/ngx_sunpro_amd64.il \
  125. # src/os/unix/ngx_sunpro_sparc64.il \
  126. UNIX_SRCS="$CORE_SRCS $EVENT_SRCS \
  127. src/os/unix/ngx_time.c \
  128. src/os/unix/ngx_errno.c \
  129. src/os/unix/ngx_alloc.c \
  130. src/os/unix/ngx_files.c \
  131. src/os/unix/ngx_socket.c \
  132. src/os/unix/ngx_recv.c \
  133. src/os/unix/ngx_readv_chain.c \
  134. src/os/unix/ngx_udp_recv.c \
  135. src/os/unix/ngx_send.c \
  136. src/os/unix/ngx_writev_chain.c \
  137. src/os/unix/ngx_channel.c \
  138. src/os/unix/ngx_shmem.c \
  139. src/os/unix/ngx_process.c \
  140. src/os/unix/ngx_daemon.c \
  141. src/os/unix/ngx_setproctitle.c \
  142. src/os/unix/ngx_posix_init.c \
  143. src/os/unix/ngx_user.c \
  144. src/os/unix/ngx_process_cycle.c"
  145. POSIX_DEPS=src/os/unix/ngx_posix_config.h
  146. FREEBSD_DEPS="src/os/unix/ngx_freebsd_config.h src/os/unix/ngx_freebsd.h"
  147. FREEBSD_SRCS=src/os/unix/ngx_freebsd_init.c
  148. FREEBSD_SENDFILE_SRCS=src/os/unix/ngx_freebsd_sendfile_chain.c
  149. FREEBSD_RFORK_DEPS="src/os/unix/ngx_freebsd_rfork_thread.h"
  150. FREEBSD_RFORK_SRCS="src/os/unix/ngx_freebsd_rfork_thread.c"
  151. FREEBSD_RFORK_THREAD_SRCS="src/os/unix/rfork_thread.S"
  152. PTHREAD_SRCS="src/os/unix/ngx_pthread_thread.c"
  153. LINUX_DEPS="src/os/unix/ngx_linux_config.h src/os/unix/ngx_linux.h"
  154. LINUX_SRCS=src/os/unix/ngx_linux_init.c
  155. LINUX_SENDFILE_SRCS=src/os/unix/ngx_linux_sendfile_chain.c
  156. SOLARIS_DEPS="src/os/unix/ngx_solaris_config.h src/os/unix/ngx_solaris.h"
  157. SOLARIS_SRCS=src/os/unix/ngx_solaris_init.c
  158. SOLARIS_SENDFILEV_SRCS=src/os/unix/ngx_solaris_sendfilev_chain.c
  159. DARWIN_DEPS="src/os/unix/ngx_darwin_config.h src/os/unix/ngx_darwin.h"
  160. DARWIN_SRCS=src/os/unix/ngx_darwin_init.c
  161. DARWIN_SENDFILE_SRCS=src/os/unix/ngx_darwin_sendfile_chain.c
  162. WIN32_INCS="$CORE_INCS $EVENT_INCS src/os/win32"
  163. WIN32_DEPS="$CORE_DEPS $EVENT_DEPS \
  164. src/os/win32/ngx_win32_config.h \
  165. src/os/win32/ngx_time.h \
  166. src/os/win32/ngx_errno.h \
  167. src/os/win32/ngx_alloc.h \
  168. src/os/win32/ngx_files.h \
  169. src/os/win32/ngx_shmem.h \
  170. src/os/win32/ngx_process.h \
  171. src/os/win32/ngx_atomic.h \
  172. src/os/win32/ngx_thread.h \
  173. src/os/win32/ngx_socket.h \
  174. src/os/win32/ngx_os.h \
  175. src/os/win32/ngx_user.h \
  176. src/os/win32/ngx_process_cycle.h"
  177. WIN32_CONFIG=src/os/win32/ngx_win32_config.h
  178. WIN32_SRCS="$CORE_SRCS $EVENT_SRCS \
  179. src/os/win32/ngx_errno.c \
  180. src/os/win32/ngx_alloc.c \
  181. src/os/win32/ngx_files.c \
  182. src/os/win32/ngx_shmem.c \
  183. src/os/win32/ngx_time.c \
  184. src/os/win32/ngx_process.c \
  185. src/os/win32/ngx_thread.c \
  186. src/os/win32/ngx_socket.c \
  187. src/os/win32/ngx_wsarecv.c \
  188. src/os/win32/ngx_wsarecv_chain.c \
  189. src/os/win32/ngx_udp_wsarecv.c \
  190. src/os/win32/ngx_wsasend.c \
  191. src/os/win32/ngx_wsasend_chain.c \
  192. src/os/win32/ngx_win32_init.c \
  193. src/os/win32/ngx_user.c \
  194. src/os/win32/ngx_event_log.c \
  195. src/os/win32/ngx_process_cycle.c \
  196. src/event/ngx_event_acceptex.c"
  197. NGX_WIN32_ICONS="src/os/win32/nginx.ico"
  198. NGX_WIN32_RC="src/os/win32/nginx.rc"
  199. # the http modules that have their logging formats
  200. # must be after ngx_http_log_module
  201. HTTP_MODULES="ngx_http_module \
  202. ngx_http_core_module \
  203. ngx_http_log_module \
  204. ngx_http_upstream_module"
  205. HTTP_WRITE_FILTER_MODULE="ngx_http_write_filter_module"
  206. HTTP_HEADER_FILTER_MODULE="ngx_http_header_filter_module"
  207. HTTP_POSTPONE_FILTER_MODULE=ngx_http_postpone_filter_module
  208. HTTP_COPY_FILTER_MODULE=ngx_http_copy_filter_module
  209. HTTP_CHUNKED_FILTER_MODULE=ngx_http_chunked_filter_module
  210. HTTP_HEADERS_FILTER_MODULE=ngx_http_headers_filter_module
  211. HTTP_RANGE_HEADER_FILTER_MODULE=ngx_http_range_header_filter_module
  212. HTTP_RANGE_BODY_FILTER_MODULE=ngx_http_range_body_filter_module
  213. HTTP_NOT_MODIFIED_FILTER_MODULE=ngx_http_not_modified_filter_module
  214. HTTP_STATIC_MODULE=ngx_http_static_module
  215. HTTP_INDEX_MODULE=ngx_http_index_module
  216. HTTP_INCS="src/http src/http/modules"
  217. HTTP_DEPS="src/http/ngx_http.h \
  218. src/http/ngx_http_request.h \
  219. src/http/ngx_http_config.h \
  220. src/http/ngx_http_core_module.h \
  221. src/http/ngx_http_cache.h \
  222. src/http/ngx_http_variables.h \
  223. src/http/ngx_http_script.h \
  224. src/http/ngx_http_upstream.h \
  225. src/http/ngx_http_upstream_round_robin.h \
  226. src/http/ngx_http_busy_lock.h"
  227. HTTP_SRCS="src/http/ngx_http.c \
  228. src/http/ngx_http_core_module.c \
  229. src/http/ngx_http_special_response.c \
  230. src/http/ngx_http_request.c \
  231. src/http/ngx_http_parse.c \
  232. src/http/ngx_http_header_filter_module.c \
  233. src/http/ngx_http_write_filter_module.c \
  234. src/http/ngx_http_copy_filter_module.c \
  235. src/http/modules/ngx_http_log_module.c \
  236. src/http/ngx_http_request_body.c \
  237. src/http/ngx_http_variables.c \
  238. src/http/ngx_http_script.c \
  239. src/http/ngx_http_upstream.c \
  240. src/http/ngx_http_upstream_round_robin.c \
  241. src/http/ngx_http_parse_time.c \
  242. src/http/modules/ngx_http_static_module.c \
  243. src/http/modules/ngx_http_index_module.c \
  244. src/http/modules/ngx_http_chunked_filter_module.c \
  245. src/http/modules/ngx_http_range_filter_module.c \
  246. src/http/modules/ngx_http_headers_filter_module.c \
  247. src/http/modules/ngx_http_not_modified_filter_module.c"
  248. # STUB
  249. HTTP_SRCS="$HTTP_SRCS src/http/ngx_http_busy_lock.c"
  250. HTTP_POSTPONE_FILTER_SRCS=src/http/ngx_http_postpone_filter_module.c
  251. HTTP_FILE_CACHE_SRCS=src/http/ngx_http_file_cache.c
  252. HTTP_CHARSET_FILTER_MODULE=ngx_http_charset_filter_module
  253. HTTP_CHARSET_SRCS=src/http/modules/ngx_http_charset_filter_module.c
  254. HTTP_GZIP_FILTER_MODULE=ngx_http_gzip_filter_module
  255. HTTP_GZIP_SRCS=src/http/modules/ngx_http_gzip_filter_module.c
  256. HTTP_SSI_FILTER_MODULE=ngx_http_ssi_filter_module
  257. HTTP_SSI_DEPS=src/http/modules/ngx_http_ssi_filter_module.h
  258. HTTP_SSI_SRCS=src/http/modules/ngx_http_ssi_filter_module.c
  259. HTTP_XSLT_FILTER_MODULE=ngx_http_xslt_filter_module
  260. HTTP_XSLT_SRCS=src/http/modules/ngx_http_xslt_filter_module.c
  261. HTTP_IMAGE_FILTER_MODULE=ngx_http_image_filter_module
  262. HTTP_IMAGE_SRCS=src/http/modules/ngx_http_image_filter_module.c
  263. HTTP_SUB_FILTER_MODULE=ngx_http_sub_filter_module
  264. HTTP_SUB_SRCS=src/http/modules/ngx_http_sub_filter_module.c
  265. HTTP_USERID_FILTER_MODULE=ngx_http_userid_filter_module
  266. HTTP_USERID_SRCS=src/http/modules/ngx_http_userid_filter_module.c
  267. HTTP_REALIP_MODULE=ngx_http_realip_module
  268. HTTP_REALIP_SRCS=src/http/modules/ngx_http_realip_module.c
  269. HTTP_ADDITION_FILTER_MODULE=ngx_http_addition_filter_module
  270. HTTP_ADDITION_SRCS=src/http/modules/ngx_http_addition_filter_module.c
  271. HTTP_DAV_MODULE=ngx_http_dav_module
  272. HTTP_DAV_SRCS=src/http/modules/ngx_http_dav_module.c
  273. HTTP_ACCESS_MODULE=ngx_http_access_module
  274. HTTP_ACCESS_SRCS=src/http/modules/ngx_http_access_module.c
  275. HTTP_AUTH_BASIC_MODULE=ngx_http_auth_basic_module
  276. HTTP_AUTH_BASIC_SRCS=src/http/modules/ngx_http_auth_basic_module.c
  277. HTTP_AUTOINDEX_MODULE=ngx_http_autoindex_module
  278. HTTP_AUTOINDEX_SRCS=src/http/modules/ngx_http_autoindex_module.c
  279. HTTP_RANDOM_INDEX_MODULE=ngx_http_random_index_module
  280. HTTP_RANDOM_INDEX_SRCS=src/http/modules/ngx_http_random_index_module.c
  281. HTTP_STATUS_MODULE=ngx_http_status_module
  282. HTTP_STATUS_SRCS=src/http/modules/ngx_http_status_module.c
  283. HTTP_GEO_MODULE=ngx_http_geo_module
  284. HTTP_GEO_SRCS=src/http/modules/ngx_http_geo_module.c
  285. HTTP_GEOIP_MODULE=ngx_http_geoip_module
  286. HTTP_GEOIP_SRCS=src/http/modules/ngx_http_geoip_module.c
  287. HTTP_MAP_MODULE=ngx_http_map_module
  288. HTTP_MAP_SRCS=src/http/modules/ngx_http_map_module.c
  289. HTTP_REFERER_MODULE=ngx_http_referer_module
  290. HTTP_REFERER_SRCS=src/http/modules/ngx_http_referer_module.c
  291. HTTP_REWRITE_MODULE=ngx_http_rewrite_module
  292. HTTP_REWRITE_SRCS=src/http/modules/ngx_http_rewrite_module.c
  293. HTTP_SSL_MODULE=ngx_http_ssl_module
  294. HTTP_SSL_DEPS=src/http/modules/ngx_http_ssl_module.h
  295. HTTP_SSL_SRCS=src/http/modules/ngx_http_ssl_module.c
  296. HTTP_PROXY_MODULE=ngx_http_proxy_module
  297. HTTP_PROXY_SRCS=src/http/modules/ngx_http_proxy_module.c
  298. HTTP_FASTCGI_MODULE=ngx_http_fastcgi_module
  299. HTTP_FASTCGI_SRCS=src/http/modules/ngx_http_fastcgi_module.c
  300. HTTP_PERL_MODULE=ngx_http_perl_module
  301. HTTP_PERL_INCS=src/http/modules/perl
  302. HTTP_PERL_DEPS=src/http/modules/perl/ngx_http_perl_module.h
  303. HTTP_PERL_SRCS=src/http/modules/perl/ngx_http_perl_module.c
  304. HTTP_MEMCACHED_MODULE=ngx_http_memcached_module
  305. HTTP_MEMCACHED_SRCS=src/http/modules/ngx_http_memcached_module.c
  306. HTTP_LIMIT_ZONE_MODULE=ngx_http_limit_zone_module
  307. HTTP_LIMIT_ZONE_SRCS=src/http/modules/ngx_http_limit_zone_module.c
  308. HTTP_LIMIT_REQ_MODULE=ngx_http_limit_req_module
  309. HTTP_LIMIT_REQ_SRCS=src/http/modules/ngx_http_limit_req_module.c
  310. HTTP_EMPTY_GIF_MODULE=ngx_http_empty_gif_module
  311. HTTP_EMPTY_GIF_SRCS=src/http/modules/ngx_http_empty_gif_module.c
  312. HTTP_BROWSER_MODULE=ngx_http_browser_module
  313. HTTP_BROWSER_SRCS=src/http/modules/ngx_http_browser_module.c
  314. HTTP_SECURE_LINK_MODULE=ngx_http_secure_link_module
  315. HTTP_SECURE_LINK_SRCS=src/http/modules/ngx_http_secure_link_module.c
  316. HTTP_FLV_MODULE=ngx_http_flv_module
  317. HTTP_FLV_SRCS=src/http/modules/ngx_http_flv_module.c
  318. HTTP_GZIP_STATIC_MODULE=ngx_http_gzip_static_module
  319. HTTP_GZIP_STATIC_SRCS=src/http/modules/ngx_http_gzip_static_module.c
  320. HTTP_UPSTREAM_IP_HASH_MODULE=ngx_http_upstream_ip_hash_module
  321. HTTP_UPSTREAM_IP_HASH_SRCS=src/http/modules/ngx_http_upstream_ip_hash_module.c
  322. MAIL_INCS="src/mail"
  323. MAIL_DEPS="src/mail/ngx_mail.h"
  324. MAIL_MODULES="ngx_mail_module ngx_mail_core_module"
  325. MAIL_SRCS="src/mail/ngx_mail.c \
  326. src/mail/ngx_mail_core_module.c \
  327. src/mail/ngx_mail_handler.c \
  328. src/mail/ngx_mail_parse.c"
  329. MAIL_POP3_MODULE="ngx_mail_pop3_module"
  330. MAIL_POP3_DEPS="src/mail/ngx_mail_pop3_module.h"
  331. MAIL_POP3_SRCS="src/mail/ngx_mail_pop3_module.c \
  332. src/mail/ngx_mail_pop3_handler.c"
  333. MAIL_IMAP_MODULE="ngx_mail_imap_module"
  334. MAIL_IMAP_DEPS="src/mail/ngx_mail_imap_module.h"
  335. MAIL_IMAP_SRCS="src/mail/ngx_mail_imap_module.c \
  336. src/mail/ngx_mail_imap_handler.c"
  337. MAIL_SMTP_MODULE="ngx_mail_smtp_module"
  338. MAIL_SMTP_DEPS="src/mail/ngx_mail_smtp_module.h"
  339. MAIL_SMTP_SRCS="src/mail/ngx_mail_smtp_module.c \
  340. src/mail/ngx_mail_smtp_handler.c"
  341. MAIL_SSL_MODULE="ngx_mail_ssl_module"
  342. MAIL_SSL_DEPS="src/mail/ngx_mail_ssl_module.h"
  343. MAIL_SSL_SRCS="src/mail/ngx_mail_ssl_module.c"
  344. MAIL_AUTH_HTTP_MODULE="ngx_mail_auth_http_module"
  345. MAIL_AUTH_HTTP_SRCS="src/mail/ngx_mail_auth_http_module.c"
  346. MAIL_PROXY_MODULE="ngx_mail_proxy_module"
  347. MAIL_PROXY_SRCS="src/mail/ngx_mail_proxy_module.c"
  348. NGX_GOOGLE_PERFTOOLS_MODULE=ngx_google_perftools_module
  349. NGX_GOOGLE_PERFTOOLS_SRCS=src/misc/ngx_google_perftools_module.c
  350. NGX_CPP_TEST_SRCS=src/misc/ngx_cpp_test_module.cpp