owc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Copyright (C) Igor Sysoev
  2. # Copyright (C) Nginx, Inc.
  3. # Open Watcom C 1.0, 1.2, 1.3
  4. # optimizations
  5. # maximize speed
  6. CFLAGS="$CFLAGS -ot"
  7. # reorder instructions for best pipeline usage
  8. CFLAGS="$CFLAGS -op"
  9. # inline intrinsic functions
  10. CFLAGS="$CFLAGS -oi"
  11. # inline expansion
  12. CFLAGS="$CFLAGS -oe"
  13. # disable stack checking calls
  14. CFLAGS="$CFLAGS -s"
  15. case $CPU in
  16. pentium)
  17. # optimize for Pentium and Athlon
  18. # register-based arguments passing conventions
  19. CPU_OPT="-5r"
  20. # stack-based arguments passing conventions
  21. #CPU_OPT="-5s"
  22. ;;
  23. pentiumpro)
  24. # optimize for Pentium Pro, Pentium II and Pentium III
  25. # register-based arguments passing conventions
  26. CPU_OPT="-6r"
  27. # stack-based arguments passing conventions
  28. #CPU_OPT="-6s"
  29. ;;
  30. esac
  31. CFLAGS="$CFLAGS $CPU_OPT"
  32. # warnings
  33. # maximum level
  34. CFLAGS="$CFLAGS -wx"
  35. #CFLAGS="$CFLAGS -w3"
  36. # stop on warning
  37. CFLAGS="$CFLAGS -we"
  38. # built target is NT
  39. CFLAGS="$CFLAGS -bt=nt"
  40. # multithreaded
  41. CFLAGS="$CFLAGS -bm"
  42. # debug
  43. CFLAGS="$CFLAGS -d2"
  44. # quiet
  45. CFLAGS="$CFLAGS -zq"
  46. # Open Watcom C 1.2
  47. have=NGX_HAVE_C99_VARIADIC_MACROS . auto/have
  48. # the precompiled headers
  49. #CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
  50. #NGX_PCH="$NGX_OBJS/ngx_config.pch"
  51. #NGX_BUILD_PCH="-fhq=$NGX_OBJS/ngx_config.pch"
  52. #NGX_USE_PCH="-fh=$NGX_OBJS/ngx_config.pch"
  53. # the link flags, built target is NT GUI mode application
  54. #CORE_LINK="$CORE_LINK -l=nt_win"
  55. # the resource file
  56. NGX_RCC="wrc \$(CORE_INCS) -fo=$NGX_OBJS/nginx.res "
  57. NGX_RCC="$NGX_RCC $NGX_WIN32_RC $NGX_OBJS/nginx.exe"
  58. ngx_include_opt="-i="
  59. ngx_objout="-fo"
  60. ngx_binout="-fe="
  61. ngx_objext="obj"
  62. ngx_regex_dirsep='\\'
  63. ngx_dirsep="\\"
  64. ngx_long_start=' '
  65. ngx_long_end=' '
  66. ngx_long_regex_cont=' \&\
  67. '
  68. ngx_long_cont=' &
  69. '
  70. ngx_regex_cont=' \&\
  71. '
  72. ngx_cont=' &
  73. '
  74. ngx_tab=' &
  75. '