mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
110 lines
2.3 KiB
Plaintext
110 lines
2.3 KiB
Plaintext
|
|
case $CC in
|
|
|
|
*gcc)
|
|
|
|
# optimization
|
|
#CFLAGS="$CFLAGS -O2 -fomit-frame-pointer"
|
|
|
|
# warnings
|
|
CFLAGS="$CFLAGS -O -W"
|
|
CFLAGS="$CFLAGS -Wall -Wpointer-arith"
|
|
#CFLAGS="$CFLAGS -Wconversion"
|
|
#CFLAGS="$CFLAGS -Winline"
|
|
|
|
# we have a lot of the unused function arguments
|
|
CFLAGS="$CFLAGS -Wno-unused"
|
|
|
|
# stop on warning
|
|
CFLAGS="$CFLAGS -Werror"
|
|
|
|
# ANSI C warnings
|
|
#CFLAGS="$CFLAGS -pedantic"
|
|
|
|
# debug
|
|
CFLAGS="$CFLAGS -g"
|
|
|
|
OBJEXT=o
|
|
OBJOUT="-o "
|
|
BINOUT="-o "
|
|
|
|
CC_STRONG="$CC -Wall -Werror"
|
|
;;
|
|
|
|
|
|
*icc)
|
|
# Intel C++ compiler 7.1
|
|
|
|
# optimization
|
|
CFLAGS="$CFLAGS -O"
|
|
# optimize for Pentium Pro, Pentium II and Pentium III
|
|
#CFLAGS="$CFLAGS -mcpu=pentiumpro"
|
|
# optimize for Pentium 4, default
|
|
#CFLAGS="$CFLAGS -mcpu=pentium4"
|
|
|
|
# warnings
|
|
CFLAGS="$CFLAGS -w1"
|
|
|
|
# stop on warning
|
|
CFLAGS="$CFLAGS -Werror"
|
|
|
|
OBJEXT=o
|
|
OBJOUT="-o "
|
|
BINOUT="-o "
|
|
|
|
CC_STRONG="$CC -w1 -Werror"
|
|
;;
|
|
|
|
|
|
cl)
|
|
# MSVC 6.0 SP2
|
|
|
|
# optimization
|
|
|
|
# maximize speed
|
|
CFLAGS="$CFLAGS -O2"
|
|
# enable global optimization
|
|
CFLAGS="$CFLAGS -Og"
|
|
# enable intrinsic functions
|
|
CFLAGS="$CFLAGS -Oi"
|
|
# inline expansion
|
|
CFLAGS="$CFLAGS -Ob1"
|
|
# enable frame pointer omission
|
|
CFLAGS="$CFLAGS -Oy"
|
|
# disable stack checking calls
|
|
CFLAGS="$CFLAGS -Gs"
|
|
# optimize for Pentium Pro
|
|
CFLAGS="$CFLAGS -G6"
|
|
|
|
# warnings
|
|
CFLAGS="$CFLAGS -W3"
|
|
#CFLAGS="$CFLAGS -W4"
|
|
|
|
# stop on warning
|
|
CFLAGS="$CFLAGS -WX"
|
|
|
|
# multithreaded
|
|
CFLAGS="$CFLAGS -MT"
|
|
|
|
# disable logo
|
|
CFLAGS="$CFLAGS -nologo"
|
|
|
|
# link flags
|
|
CORE_LINK="$CORE_LINK -link"
|
|
CORE_LINK="$CORE_LINK -nodefaultlib:msvcrt"
|
|
CORE_LINK="$CORE_LINK -nodefaultlib:libcpmt"
|
|
CORE_LINK="$CORE_LINK -verbose:lib"
|
|
|
|
# debug
|
|
CFLAGS="$CFLAGS -Yd"
|
|
CORE_LINK="$CORE_LINK -debug -debugtype:coff"
|
|
|
|
OBJEXT=obj
|
|
OBJOUT="-Fo"
|
|
BINOUT="-Fe"
|
|
|
|
CC_STRONG="$CC -W3 -WX"
|
|
;;
|
|
|
|
esac
|