File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / nginx / auto / init
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 09:20:38 2013 UTC (10 years, 11 months ago) by misho
Branches: nginx, MAIN
CVS tags: v1_4_3p0, v1_4_3, HEAD
v 1.4.3

    1: 
    2: # Copyright (C) Igor Sysoev
    3: # Copyright (C) Nginx, Inc.
    4: 
    5: 
    6: NGX_MAKEFILE=$NGX_OBJS/Makefile
    7: NGX_MODULES_C=$NGX_OBJS/ngx_modules.c
    8: 
    9: NGX_AUTO_HEADERS_H=$NGX_OBJS/ngx_auto_headers.h
   10: NGX_AUTO_CONFIG_H=$NGX_OBJS/ngx_auto_config.h
   11: 
   12: NGX_AUTOTEST=$NGX_OBJS/autotest
   13: NGX_AUTOCONF_ERR=$NGX_OBJS/autoconf.err
   14: 
   15: # STUBs
   16: NGX_ERR=$NGX_OBJS/autoconf.err
   17: MAKEFILE=$NGX_OBJS/Makefile
   18: 
   19: 
   20: NGX_PCH=
   21: NGX_USE_PCH=
   22: 
   23: 
   24: # check the echo's "-n" option and "\c" capability
   25: 
   26: if echo "test\c" | grep c >/dev/null; then
   27: 
   28:     if echo -n test | grep n >/dev/null; then
   29:         ngx_n=
   30:         ngx_c=
   31: 
   32:     else
   33:         ngx_n=-n
   34:         ngx_c=
   35:     fi
   36: 
   37: else
   38:     ngx_n=
   39:     ngx_c='\c'
   40: fi
   41: 
   42: 
   43: # create Makefile
   44: 
   45: cat << END > Makefile
   46: 
   47: default:	build
   48: 
   49: clean:
   50: 	rm -rf Makefile $NGX_OBJS
   51: END

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>