Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 # Copyright (C) Igor Sysoev
0003 # Copyright (C) Nginx, Inc.
0004 
0005 
0006 NGX_MAKEFILE=$NGX_OBJS/Makefile
0007 NGX_MODULES_C=$NGX_OBJS/ngx_modules.c
0008 
0009 NGX_AUTO_HEADERS_H=$NGX_OBJS/ngx_auto_headers.h
0010 NGX_AUTO_CONFIG_H=$NGX_OBJS/ngx_auto_config.h
0011 
0012 NGX_AUTOTEST=$NGX_OBJS/autotest
0013 NGX_AUTOCONF_ERR=$NGX_OBJS/autoconf.err
0014 
0015 # STUBs
0016 NGX_ERR=$NGX_OBJS/autoconf.err
0017 MAKEFILE=$NGX_OBJS/Makefile
0018 
0019 
0020 NGX_PCH=
0021 NGX_USE_PCH=
0022 
0023 
0024 # check the echo's "-n" option and "\c" capability
0025 
0026 if echo "test\c" | grep c >/dev/null; then
0027 
0028     if echo -n test | grep n >/dev/null; then
0029         ngx_n=
0030         ngx_c=
0031 
0032     else
0033         ngx_n=-n
0034         ngx_c=
0035     fi
0036 
0037 else
0038     ngx_n=
0039     ngx_c='\c'
0040 fi
0041 
0042 
0043 # create Makefile
0044 
0045 cat << END > Makefile
0046 
0047 default:        build
0048 
0049 clean:
0050         rm -rf Makefile $NGX_OBJS
0051 END