2003-11-25 14:44:56 -06:00
|
|
|
|
2004-09-29 11:00:49 -05:00
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
MAKEFILE=$OBJS/Makefile
|
|
|
|
|
|
|
|
NGX_AUTO_CONFIG_H=$OBJS/ngx_auto_config.h
|
|
|
|
NGX_MODULES_C=$OBJS/ngx_modules.c
|
|
|
|
|
2003-12-14 14:10:27 -06:00
|
|
|
NGX_AUTOTEST=$OBJS/autotest
|
|
|
|
NGX_ERR=$OBJS/autoconf.err
|
2004-02-03 14:27:11 -06:00
|
|
|
|
2004-02-09 10:30:01 -06:00
|
|
|
CC_WARN=$CC
|
|
|
|
|
2004-03-09 13:47:07 -06:00
|
|
|
PCH=NO
|
|
|
|
USEPCH=
|
2004-02-03 14:27:11 -06:00
|
|
|
|
2004-03-29 11:43:58 -06:00
|
|
|
OBJEXT=
|
2004-03-09 13:47:07 -06:00
|
|
|
BINEXT=
|
2004-03-29 11:43:58 -06:00
|
|
|
DIRSEP='\/'
|
2004-03-05 02:34:24 -06:00
|
|
|
MAKE_SL=NO
|
|
|
|
|
|
|
|
|
2004-02-03 14:27:11 -06:00
|
|
|
# checking echo's "-n" option and "\c" capabilties
|
|
|
|
|
|
|
|
if echo "test\c" | grep c >/dev/null; then
|
|
|
|
if echo -n test | grep n >/dev/null; then
|
|
|
|
ngx_n=
|
|
|
|
ngx_c=
|
|
|
|
else
|
|
|
|
ngx_n=-n
|
|
|
|
ngx_c=
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
ngx_n=
|
|
|
|
ngx_c='\c'
|
|
|
|
fi
|
2004-10-11 10:07:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test ! -f Makefile; then
|
|
|
|
|
|
|
|
cat << END > Makefile
|
|
|
|
|
|
|
|
build:
|
|
|
|
\$(MAKE) -f $OBJS/Makefile
|
|
|
|
|
|
|
|
install:
|
|
|
|
\$(MAKE) -f $OBJS/Makefile install
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf Makefile $OBJS
|
|
|
|
|
|
|
|
upgrade:
|
|
|
|
$SBIN_PATH -t
|
|
|
|
kill -USR2 \`cat $PID_PATH\`
|
|
|
|
sleep 1
|
|
|
|
test -f $PID_PATH.newbin
|
|
|
|
kill -WINCH \`cat $PID_PATH\`
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
fi
|