-
Notifications
You must be signed in to change notification settings - Fork 211
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
Chrono Law
committed
Mar 30, 2016
1 parent
54a0fcd
commit 6da3d8d
Showing
364 changed files
with
175,044 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,26 @@ | ||
/* | ||
* Copyright (C) 2002-2015 Igor Sysoev | ||
* Copyright (C) 2011-2015 Nginx, Inc. | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
* SUCH DAMAGE. | ||
*/ |
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,3 @@ | ||
|
||
Documentation is available at http://nginx.org | ||
|
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,15 @@ | ||
|
||
# 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" | ||
MD5_OPT="$MD5_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,72 @@ | ||
|
||
# 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_binext=".exe" | ||
|
||
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,104 @@ | ||
|
||
# Copyright (C) Nginx, Inc. | ||
|
||
|
||
# clang | ||
|
||
|
||
NGX_CLANG_VER=`$CC -v 2>&1 | grep '\(clang\|LLVM\) version' 2>&1 \ | ||
| sed -e 's/^.* version \(.*\)/\1/'` | ||
|
||
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 [ ".$MD5_OPT" = "." ]; then | ||
MD5_OPT="-O2 -pipe $CPU_OPT" | ||
else | ||
MD5_OPT="$MD5_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.