-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebf2e53
commit c052463
Showing
513 changed files
with
285,767 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
repo: 4eff17414a4378feaba42876e0d3a6a50646cdee | ||
node: a58202a8c41bf0bd97eef1b946e13105a105520d | ||
branch: stable-1.26 | ||
tag: release-1.26.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# Copyright (C) Igor Sysoev | ||
# Copyright (C) Nginx, Inc. | ||
|
||
|
||
# aCC: HP ANSI C++ B3910B A.03.55.02 | ||
|
||
# C89 mode | ||
|
||
CFLAGS="$CFLAGS -Ae" | ||
CC_TEST_FLAGS="-Ae" | ||
|
||
PCRE_OPT="$PCRE_OPT -Ae" | ||
ZLIB_OPT="$ZLIB_OPT -Ae" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
|
||
# Copyright (C) Igor Sysoev | ||
# Copyright (C) Nginx, Inc. | ||
|
||
|
||
# Borland C++ 5.5 | ||
|
||
# optimizations | ||
|
||
# maximize speed | ||
CFLAGS="$CFLAGS -O2" | ||
|
||
case $CPU in | ||
pentium) | ||
# optimize for Pentium and Athlon | ||
CPU_OPT="-5" | ||
;; | ||
|
||
pentiumpro) | ||
# optimize for Pentium Pro, Pentium II and Pentium III | ||
CPU_OPT="-6" | ||
;; | ||
esac | ||
|
||
# __stdcall | ||
#CPU_OPT="$CPU_OPT -ps" | ||
# __fastcall | ||
#CPU_OPT="$CPU_OPT -pr" | ||
|
||
CFLAGS="$CFLAGS $CPU_OPT" | ||
|
||
# multithreaded | ||
CFLAGS="$CFLAGS -tWM" | ||
|
||
# stop on warning | ||
CFLAGS="$CFLAGS -w!" | ||
|
||
# disable logo | ||
CFLAGS="$CFLAGS -q" | ||
|
||
|
||
# precompiled headers | ||
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm" | ||
NGX_PCH="$NGX_OBJS/ngx_config.csm" | ||
NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm" | ||
NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm" | ||
|
||
|
||
# Win32 GUI mode application | ||
#LINK="\$(CC) -laa" | ||
|
||
|
||
# the resource file | ||
NGX_RES="$NGX_OBJS/nginx.res" | ||
NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC" | ||
# the pragma allows to link the resource file using bcc32 and | ||
# to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem | ||
NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\"" | ||
|
||
|
||
ngx_include_opt="-I" | ||
ngx_objout="-o" | ||
ngx_binout="-e" | ||
ngx_objext="obj" | ||
|
||
ngx_long_start='@&&| | ||
' | ||
ngx_long_end='|' | ||
|
||
ngx_regex_dirsep='\\' | ||
ngx_dirsep="\\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
# Copyright (C) Igor Sysoev | ||
# Copyright (C) Nginx, Inc. | ||
|
||
|
||
# Compaq C V6.5-207 | ||
|
||
ngx_include_opt="-I" | ||
|
||
# warnings | ||
|
||
CFLAGS="$CFLAGS -msg_enable level6 -msg_fatal level6" | ||
|
||
CFLAGS="$CFLAGS -msg_disable unknownmacro" | ||
CFLAGS="$CFLAGS -msg_disable unusedincl" | ||
CFLAGS="$CFLAGS -msg_disable unnecincl" | ||
CFLAGS="$CFLAGS -msg_disable nestincl" | ||
CFLAGS="$CFLAGS -msg_disable strctpadding" | ||
CFLAGS="$CFLAGS -msg_disable ansialiascast" | ||
CFLAGS="$CFLAGS -msg_disable inlinestoclsmod" | ||
CFLAGS="$CFLAGS -msg_disable cxxkeyword" | ||
CFLAGS="$CFLAGS -msg_disable longlongsufx" | ||
CFLAGS="$CFLAGS -msg_disable valuepres" | ||
|
||
# STUB | ||
CFLAGS="$CFLAGS -msg_disable truncintcast" | ||
CFLAGS="$CFLAGS -msg_disable trunclongcast" | ||
|
||
CFLAGS="$CFLAGS -msg_disable truncintasn" | ||
CFLAGS="$CFLAGS -msg_disable trunclongint" | ||
CFLAGS="$CFLAGS -msg_disable intconcastsgn" | ||
CFLAGS="$CFLAGS -msg_disable intconstsign" | ||
CFLAGS="$CFLAGS -msg_disable switchlong" | ||
CFLAGS="$CFLAGS -msg_disable subscrbounds2" | ||
|
||
CFLAGS="$CFLAGS -msg_disable hexoctunsign" | ||
|
||
CFLAGS="$CFLAGS -msg_disable ignorecallval" | ||
CFLAGS="$CFLAGS -msg_disable nonstandcast" | ||
CFLAGS="$CFLAGS -msg_disable embedcomment" | ||
CFLAGS="$CFLAGS -msg_disable unreachcode" | ||
CFLAGS="$CFLAGS -msg_disable questcompare2" | ||
CFLAGS="$CFLAGS -msg_disable unusedtop" | ||
CFLAGS="$CFLAGS -msg_disable unrefdecl" | ||
|
||
CFLAGS="$CFLAGS -msg_disable bitnotint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
|
||
# Copyright (C) Nginx, Inc. | ||
|
||
|
||
# clang | ||
|
||
|
||
NGX_CLANG_VER=`$CC -v 2>&1 | grep 'version' 2>&1 \ | ||
| sed -n -e 's/^.*clang version \(.*\)/\1/p' \ | ||
-e 's/^.*LLVM version \(.*\)/\1/p'` | ||
|
||
echo " + clang version: $NGX_CLANG_VER" | ||
|
||
have=NGX_COMPILER value="\"clang $NGX_CLANG_VER\"" . auto/define | ||
|
||
|
||
CC_TEST_FLAGS="-pipe" | ||
|
||
|
||
# optimizations | ||
|
||
#NGX_CLANG_OPT="-O2" | ||
#NGX_CLANG_OPT="-Oz" | ||
NGX_CLANG_OPT="-O" | ||
|
||
case $CPU in | ||
pentium) | ||
# optimize for Pentium | ||
CPU_OPT="-march=pentium" | ||
NGX_CPU_CACHE_LINE=32 | ||
;; | ||
|
||
pentiumpro | pentium3) | ||
# optimize for Pentium Pro, Pentium II and Pentium III | ||
CPU_OPT="-march=pentiumpro" | ||
NGX_CPU_CACHE_LINE=32 | ||
;; | ||
|
||
pentium4) | ||
# optimize for Pentium 4 | ||
CPU_OPT="-march=pentium4" | ||
NGX_CPU_CACHE_LINE=128 | ||
;; | ||
|
||
athlon) | ||
# optimize for Athlon | ||
CPU_OPT="-march=athlon" | ||
NGX_CPU_CACHE_LINE=64 | ||
;; | ||
|
||
opteron) | ||
# optimize for Opteron | ||
CPU_OPT="-march=opteron" | ||
NGX_CPU_CACHE_LINE=64 | ||
;; | ||
|
||
esac | ||
|
||
CC_AUX_FLAGS="$CC_AUX_FLAGS $CPU_OPT" | ||
|
||
|
||
CFLAGS="$CFLAGS -pipe $CPU_OPT" | ||
|
||
if [ ".$PCRE_OPT" = "." ]; then | ||
PCRE_OPT="-O2 -pipe $CPU_OPT" | ||
else | ||
PCRE_OPT="$PCRE_OPT -pipe" | ||
fi | ||
|
||
if [ ".$ZLIB_OPT" = "." ]; then | ||
ZLIB_OPT="-O2 -pipe $CPU_OPT" | ||
else | ||
ZLIB_OPT="$ZLIB_OPT -pipe" | ||
fi | ||
|
||
|
||
# warnings | ||
|
||
CFLAGS="$CFLAGS $NGX_CLANG_OPT -Wall -Wextra -Wpointer-arith" | ||
CFLAGS="$CFLAGS -Wconditional-uninitialized" | ||
#CFLAGS="$CFLAGS -Wmissing-prototypes" | ||
|
||
# we have a lot of unused function arguments | ||
CFLAGS="$CFLAGS -Wno-unused-parameter" | ||
|
||
# deprecated system OpenSSL library on OS X | ||
if [ "$NGX_SYSTEM" = "Darwin" ]; then | ||
CFLAGS="$CFLAGS -Wno-deprecated-declarations" | ||
fi | ||
|
||
# stop on warning | ||
CFLAGS="$CFLAGS -Werror" | ||
|
||
# debug | ||
CFLAGS="$CFLAGS -g" | ||
|
||
if [ ".$CPP" = "." ]; then | ||
CPP="$CC -E" | ||
fi |
Oops, something went wrong.