ngx_addon_name=ngx_http_memc_module

MEMC_SRCS="                                                                 \
        $ngx_addon_dir/src/ngx_http_memc_module.c                           \
        $ngx_addon_dir/src/ngx_http_memc_request.c                          \
        $ngx_addon_dir/src/ngx_http_memc_response.c                         \
        $ngx_addon_dir/src/ngx_http_memc_util.c                             \
        $ngx_addon_dir/src/ngx_http_memc_handler.c                          \
        "

MEMC_DEPS="                                                                 \
        $ngx_addon_dir/src/ddebug.h                                         \
        $ngx_addon_dir/src/ngx_http_memc_module.h                           \
        $ngx_addon_dir/src/ngx_http_memc_request.h                          \
        $ngx_addon_dir/src/ngx_http_memc_response.h                         \
        $ngx_addon_dir/src/ngx_http_memc_util.h                             \
        $ngx_addon_dir/src/ngx_http_memc_handler.h                          \
        "

if [ -n "$ngx_module_link" ]; then
    ngx_module_type=HTTP
    ngx_module_name=$ngx_addon_name
    ngx_module_srcs="$MEMC_SRCS"
    ngx_module_deps="$MEMC_DEPS"

    . auto/module
else
    HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
    NGX_ADDON_SRCS="$NGX_ADDON_SRCS $MEMC_SRCS"
    NGX_ADDON_DEPS="$NGX_ADDON_DEPS $MEMC_DEPS"
fi