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