win32 revision e18a033b
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) Nginx, Inc.
4
5
6have=NGX_WIN32 . auto/have_headers
7
8CORE_INCS="$WIN32_INCS"
9CORE_DEPS="$WIN32_DEPS"
10CORE_SRCS="$WIN32_SRCS $IOCP_SRCS"
11OS_CONFIG="$WIN32_CONFIG"
12NGX_ICONS="$NGX_WIN32_ICONS"
13SELECT_SRCS=$WIN32_SELECT_SRCS
14
15ngx_pic_opt=
16
17case "$NGX_CC_NAME" in
18
19    gcc)
20        CORE_LIBS="$CORE_LIBS -ladvapi32 -lws2_32"
21        MAIN_LINK="$MAIN_LINK -Wl,--export-all-symbols"
22        MAIN_LINK="$MAIN_LINK -Wl,--out-implib=$NGX_OBJS/libnginx.a"
23        MODULE_LINK="-shared -L $NGX_OBJS -lnginx"
24    ;;
25
26    *)
27        CORE_LIBS="$CORE_LIBS advapi32.lib ws2_32.lib"
28    ;;
29
30esac
31
32EVENT_MODULES="$EVENT_MODULES $IOCP_MODULE"
33EVENT_FOUND=YES
34
35if [ $EVENT_SELECT = NO ]; then
36    CORE_SRCS="$CORE_SRCS $SELECT_SRCS"
37    EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
38fi
39
40have=NGX_HAVE_INET6 . auto/have
41
42have=NGX_HAVE_IOCP . auto/have
43