win32 794 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (C) Igor Sysoev
  2. # Copyright (C) Nginx, Inc.
  3. have=NGX_WIN32 . auto/have_headers
  4. CORE_INCS="$WIN32_INCS"
  5. CORE_DEPS="$WIN32_DEPS"
  6. CORE_SRCS="$WIN32_SRCS $IOCP_SRCS"
  7. OS_CONFIG="$WIN32_CONFIG"
  8. NGX_ICONS="$NGX_WIN32_ICONS"
  9. SELECT_SRCS=$WIN32_SELECT_SRCS
  10. POLL_SRCS=$WIN32_POLL_SRCS
  11. ngx_pic_opt=
  12. ngx_binext=".exe"
  13. case "$NGX_CC_NAME" in
  14. gcc)
  15. CORE_LIBS="$CORE_LIBS -ladvapi32 -lws2_32"
  16. MAIN_LINK="$MAIN_LINK -Wl,--export-all-symbols"
  17. MAIN_LINK="$MAIN_LINK -Wl,--out-implib=$NGX_OBJS/libnginx.a"
  18. MODULE_LINK="-shared -L $NGX_OBJS -lnginx"
  19. ;;
  20. *)
  21. CORE_LIBS="$CORE_LIBS advapi32.lib ws2_32.lib"
  22. ;;
  23. esac
  24. EVENT_MODULES="$EVENT_MODULES $IOCP_MODULE"
  25. #EVENT_FOUND=YES
  26. have=NGX_HAVE_INET6 . auto/have
  27. have=NGX_HAVE_IOCP . auto/have