From b9956ee298d6feed24be23b287f607ed4707ed63 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 1 Mar 2004 20:00:04 +0000 Subject: [PATCH] nginx-0.0.2-2004-03-01-23:00:04 import --- auto/lib/make | 25 ++----------------------- auto/lib/pcre/make | 7 +++++++ auto/lib/zlib/make | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 23 deletions(-) create mode 100644 auto/lib/pcre/make create mode 100644 auto/lib/zlib/make diff --git a/auto/lib/make b/auto/lib/make index eb7d0285c..8bb32ca35 100644 --- a/auto/lib/make +++ b/auto/lib/make @@ -2,11 +2,7 @@ if [ "$PLATFORM" != "win32" ]; then if [ $PCRE != NO ]; then - echo "$PCRE/.libs/libpcre.a:" >> $MAKEFILE - echo " cd $PCRE \\" >> $MAKEFILE - echo " && ./configure --disable-shared \\" >> $MAKEFILE - echo " && \$(MAKE)" >> $MAKEFILE - echo >> $MAKEFILE + . auto/lib/pcre/make fi @@ -16,24 +12,7 @@ if [ "$PLATFORM" != "win32" ]; then if [ $ZLIB != NO ]; then - echo "$ZLIB/libz.a:" >> $MAKEFILE - - case $PLATFORM in - - *:i386) - echo " cd $ZLIB \\" >> $MAKEFILE - echo " && cp contrib/asm686/match.S . \\" >> $MAKEFILE - echo " && CFLAGS=\"-O3 -DASMV\" ./configure \\" >> $MAKEFILE - echo " && \$(MAKE) OBJA=match.o" >> $MAKEFILE - ;; - - *) - echo " cd $ZLIB && ./configure && \$(MAKE)" >> $MAKEFILE - ;; - - esac - - echo >> $MAKEFILE + . auto/lib/zlib/make fi fi diff --git a/auto/lib/pcre/make b/auto/lib/pcre/make new file mode 100644 index 000000000..836668619 --- /dev/null +++ b/auto/lib/pcre/make @@ -0,0 +1,7 @@ + +echo "$PCRE/.libs/libpcre.a:" >> $MAKEFILE +echo " cd $PCRE \\" >> $MAKEFILE +echo " && ./configure --disable-shared \\" >> $MAKEFILE +echo " && \$(MAKE)" >> $MAKEFILE +echo >> $MAKEFILE + diff --git a/auto/lib/zlib/make b/auto/lib/zlib/make new file mode 100644 index 000000000..78022c379 --- /dev/null +++ b/auto/lib/zlib/make @@ -0,0 +1,19 @@ + +echo "$ZLIB/libz.a:" >> $MAKEFILE + +case $PLATFORM in + + *:i386) + echo " cd $ZLIB \\" >> $MAKEFILE + echo " && cp contrib/asm686/match.S . \\" >> $MAKEFILE + echo " && CFLAGS=\"-O3 -DASMV\" ./configure \\" >> $MAKEFILE + echo " && \$(MAKE) OBJA=match.o" >> $MAKEFILE + ;; + + *) + echo " cd $ZLIB && ./configure && \$(MAKE)" >> $MAKEFILE + ;; + +esac + +echo >> $MAKEFILE