1ngx_addon_name="ngx_http_tnt_module"
2
3__lib_yajl="/usr/local/lib/libyajl.so"
4
5__module_src_dir="$ngx_addon_dir/src"
6
7__include_paths=" \
8          $ngx_addon_dir/src                                       \
9          $ngx_addon_dir/third_party                               \
10          /usr/local/include/msgpuck \
11          /usr/local/include/yajl \
12          "
13
14__sources=" \
15          $__module_src_dir/ngx_http_tnt_module.c   \
16          $__module_src_dir/tp_transcode.c          \
17          $__module_src_dir/ngx_http_tnt_handlers.c \
18          "
19__headers=" \
20          $__module_src_dir/debug.h                 \
21          $__module_src_dir/ngx_http_tnt_handlers.h \
22          $__module_src_dir/tp_ext.h                \
23          $__module_src_dir/tp_transcode.h          \
24          "
25
26__old_style_build=yes
27if test -n "$ngx_module_link"; then
28  __old_style_build=no
29fi
30
31#
32# Old-style build [[
33if test "$__old_style_build" = "yes"; then
34
35  CORE_INCS=" \
36          $CORE_INCS        \
37          $ngx_feature_path \
38          "
39
40  CORE_LIBS=" \
41          $CORE_LIBS        \
42          $ngx_feature_libs \
43          $__lib_yajl       \
44          "
45
46  HTTP_MODULES=" \
47          $HTTP_MODULES   \
48          $ngx_addon_name \
49          "
50
51  NGX_ADDON_SRCS=" \
52          $NGX_ADDON_SRCS \
53          $__sources      \
54          "
55
56  for path in $__include_paths; do
57    CFLAGS="$CFLAGS -I$path"
58  done
59# ]]
60
61# New-style build [[
62else
63
64  ngx_module_type=HTTP
65  ngx_module_name=$ngx_addon_name
66  ngx_module_incs=$__include_paths
67  ngx_module_deps=$__headers
68  ngx_module_srcs=$__sources
69  ngx_module_libs=$__lib_yajl
70
71  . auto/module
72# ]]
73fi
74