1ngx_addon_name=ngx_http_memc_module
2
3MEMC_SRCS="                                                                 \
4        $ngx_addon_dir/src/ngx_http_memc_module.c                           \
5        $ngx_addon_dir/src/ngx_http_memc_request.c                          \
6        $ngx_addon_dir/src/ngx_http_memc_response.c                         \
7        $ngx_addon_dir/src/ngx_http_memc_util.c                             \
8        $ngx_addon_dir/src/ngx_http_memc_handler.c                          \
9        "
10
11MEMC_DEPS="                                                                 \
12        $ngx_addon_dir/src/ddebug.h                                         \
13        $ngx_addon_dir/src/ngx_http_memc_module.h                           \
14        $ngx_addon_dir/src/ngx_http_memc_request.h                          \
15        $ngx_addon_dir/src/ngx_http_memc_response.h                         \
16        $ngx_addon_dir/src/ngx_http_memc_util.h                             \
17        $ngx_addon_dir/src/ngx_http_memc_handler.h                          \
18        "
19
20if [ -n "$ngx_module_link" ]; then
21    ngx_module_type=HTTP
22    ngx_module_name=$ngx_addon_name
23    ngx_module_srcs="$MEMC_SRCS"
24    ngx_module_deps="$MEMC_DEPS"
25
26    . auto/module
27else
28    HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
29    NGX_ADDON_SRCS="$NGX_ADDON_SRCS $MEMC_SRCS"
30    NGX_ADDON_DEPS="$NGX_ADDON_DEPS $MEMC_DEPS"
31fi
32