diff --git a/config b/config index 47bc6c6..11fd2ba 100644 --- a/config +++ b/config @@ -1,12 +1,25 @@ ngx_addon_name=ngx_http_execute_module +EXECUTE_SRCS=" \ + $ngx_addon_dir/ngx_http_execute_module.c \ + $ngx_addon_dir/ngx_process.c \ + $ngx_addon_dir/ngx_result.c \ + " + +EXECUTE_DEPS=" \ + $ngx_addon_dir/ngx_str.h \ + $ngx_addon_dir/ngx_result.h \ + " + if test -n "$ngx_module_link"; then ngx_module_type=HTTP ngx_module_name=ngx_http_execute_module - ngx_module_srcs="$ngx_addon_dir/ngx_http_execute_module.c $ngx_addon_dir/ngx_process.c $ngx_addon_dir/ngx_result.c" + ngx_module_deps="$EXECUTE_DEPS" + ngx_module_srcs="$EXECUTE_SRCS" . auto/module else HTTP_MODULES="$HTTP_MODULES ngx_http_execute_module" - NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_execute_module.c $ngx_addon_dir/ngx_process.c $ngx_addon_dir/ngx_result.c" -fi \ No newline at end of file + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $EXECUTE_SRCS" + NGX_ADDON_DEPS="$NGX_ADDON_DEPS $EXECUTE_DEPS" +fi