Update and clean Tomato RAF files
[tomato.git] / release / src / router / nginx / auto / cc / owc
blob22eb4c1259a22b04529186b27b02a8537822ffd5
2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 # Open Watcom C 1.0, 1.2, 1.3
8 # optimizations
10 # maximize speed
11 CFLAGS="$CFLAGS -ot"
12 # reorder instructions for best pipeline usage
13 CFLAGS="$CFLAGS -op"
14 # inline intrinsic functions
15 CFLAGS="$CFLAGS -oi"
16 # inline expansion
17 CFLAGS="$CFLAGS -oe"
18 # disable stack checking calls
19 CFLAGS="$CFLAGS -s"
21 case $CPU in
22     pentium)
23         # optimize for Pentium and Athlon
24         # register-based arguments passing conventions
25         CPU_OPT="-5r"
26         # stack-based arguments passing conventions
27         #CPU_OPT="-5s"
28     ;;
30     pentiumpro)
31         # optimize for Pentium Pro, Pentium II and Pentium III
32         # register-based arguments passing conventions
33         CPU_OPT="-6r"
34         # stack-based arguments passing conventions
35         #CPU_OPT="-6s"
36     ;;
37 esac
39 CFLAGS="$CFLAGS $CPU_OPT"
42 # warnings
44 # maximum level
45 CFLAGS="$CFLAGS -wx"
46 #CFLAGS="$CFLAGS -w3"
48 # stop on warning
49 CFLAGS="$CFLAGS -we"
51 # built target is NT
52 CFLAGS="$CFLAGS -bt=nt"
54 # multithreaded
55 CFLAGS="$CFLAGS -bm"
57 # debug
58 CFLAGS="$CFLAGS -d2"
60 # quiet
61 CFLAGS="$CFLAGS -zq"
63 # Open Watcom C 1.2
64 have=NGX_HAVE_C99_VARIADIC_MACROS . auto/have
67 # the precompiled headers
68 CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
69 NGX_PCH="$NGX_OBJS/ngx_config.pch"
70 NGX_BUILD_PCH="-fhq=$NGX_OBJS/ngx_config.pch"
71 NGX_USE_PCH="-fh=$NGX_OBJS/ngx_config.pch"
74 # the link flags, built target is NT GUI mode application
75 #CORE_LINK="$CORE_LINK -l=nt_win"
78 # the resource file
79 NGX_RCC="wrc \$(CORE_INCS) -fo=$NGX_OBJS/nginx.res "
80 NGX_RCC="$NGX_RCC $NGX_WIN32_RC $NGX_OBJS/nginx.exe"
83 ngx_include_opt="-i="
84 ngx_objout="-fo"
85 ngx_binout="-fe="
86 ngx_objext="obj"
87 ngx_binext=".exe"
89 ngx_regex_dirsep='\\'
90 ngx_dirsep="\\"
92 ngx_long_start=' '
93 ngx_long_end=' '
94 ngx_long_regex_cont=' \&\
95         '
96 ngx_long_cont=' &
97         '
99 ngx_regex_cont=' \&\
100         '
101 ngx_cont=' &
102         '
103 ngx_tab=' &
104                 '