blob: 8688600410203e5a5d4b5e5aafa5b75c6d684641 [file] [log] [blame]
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00001
2# Copyright (C) Igor Sysoev
3
4
Igor Sysoevd3283ff2005-12-05 13:18:09 +00005# Open Watcom C 1.0, 1.2, 1.3
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00006
7# optimizations
8
9# maximize speed
10CFLAGS="$CFLAGS -ot"
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000011# reorder instructions for best pipeline usage
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000012CFLAGS="$CFLAGS -op"
13# inline intrinsic functions
14CFLAGS="$CFLAGS -oi"
15# inline expansion
16CFLAGS="$CFLAGS -oe"
17# disable stack checking calls
18CFLAGS="$CFLAGS -s"
19
20case $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"
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000027 ;;
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000028
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 ;;
36esac
37
38CFLAGS="$CFLAGS $CPU_OPT"
39
40
41# warnings
42
Igor Sysoev8184d1b2005-03-04 14:06:57 +000043# maximum level
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000044CFLAGS="$CFLAGS -wx"
Igor Sysoev8184d1b2005-03-04 14:06:57 +000045#CFLAGS="$CFLAGS -w3"
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000046
47# stop on warning
48CFLAGS="$CFLAGS -we"
49
50# built target is NT
51CFLAGS="$CFLAGS -bt=nt"
52
53# multithreaded
54CFLAGS="$CFLAGS -bm"
55
56# debug
57CFLAGS="$CFLAGS -d2"
58
59# quiet
60CFLAGS="$CFLAGS -zq"
61
62# Open Watcom C 1.2
Igor Sysoevd3283ff2005-12-05 13:18:09 +000063have=NGX_HAVE_C99_VARIADIC_MACROS . auto/have
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000064
Igor Sysoev1b735832004-11-11 14:07:14 +000065
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000066# the precompiled headers
Igor Sysoevf6906042004-11-25 16:17:31 +000067CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
68NGX_PCH="$NGX_OBJS/ngx_config.pch"
69NGX_BUILD_PCH="-fhq=$NGX_OBJS/ngx_config.pch"
70NGX_USE_PCH="-fh=$NGX_OBJS/ngx_config.pch"
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000071
Igor Sysoev1b735832004-11-11 14:07:14 +000072
Igor Sysoev1b735832004-11-11 14:07:14 +000073# the link flags, built target is NT GUI mode application
74CORE_LINK="$CORE_LINK -l=nt_win"
75
76
77# the resource file
Igor Sysoevf6906042004-11-25 16:17:31 +000078NGX_RCC="wrc \$(CORE_INCS) -fo=$NGX_OBJS/nginx.res "
79NGX_RCC="$NGX_RCC $NGX_WIN32_RC $NGX_OBJS/nginx.exe"
Igor Sysoev1b735832004-11-11 14:07:14 +000080
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000081
82ngx_include_opt="-i="
83ngx_objout="-fo"
84ngx_binout="-fe="
85ngx_objext="obj"
86ngx_binext=".exe"
87
88ngx_regex_dirsep='\\'
89ngx_dirsep="\\"