]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add "generic" arch dir that is used by default unless the arch has
authorhansr <hk-git@circlestorm.org>
Fri, 31 Oct 2014 12:10:48 +0000 (13:10 +0100)
committerhansr <hk-git@circlestorm.org>
Fri, 31 Oct 2014 12:10:48 +0000 (13:10 +0100)
specific support in the configure script.

arch/generic/Makefile.in [new file with mode: 0644]
configure

diff --git a/arch/generic/Makefile.in b/arch/generic/Makefile.in
new file mode 100644 (file)
index 0000000..7eb4127
--- /dev/null
@@ -0,0 +1,16 @@
+# Makefile for zlib
+# Copyright (C) 1995-2013 Jean-loup Gailly, Mark Adler
+# For conditions of distribution and use, see copyright notice in zlib.h
+
+CC=
+CFLAGS=
+SFLAGS=
+
+all:
+
+
+mostlyclean: clean
+clean:
+       rm -f *.o *.lo *~ \
+       rm -rf objs
+       rm -f *.gcda *.gcno *.gcov
index 6fa26b5de9b7e75a4fcbec17076a104b9a774567..8cbdeb697963bd92e9812b3967df53f65e47626e 100755 (executable)
--- a/configure
+++ b/configure
@@ -640,7 +640,7 @@ if test $without_new_strategies -eq 0; then
     SFLAGS="${SFLAGS} -DMEDIUM_STRATEGY"
 fi
 
-ARCHDIR=''
+ARCHDIR='arch/generic'
 ARCH_STATIC_OBJS=''
 ARCH_SHARED_OBJS=''
 
@@ -767,15 +767,12 @@ sed < Makefile.in "
 /^ARCH_SHARED_OBJS *=/s#=.*#=$ARCH_SHARED_OBJS#
 " > Makefile
 
-# Generate Makefile in arch dir if needed
-if [ -n "$ARCHDIR" ]
-then
-    sed < $ARCHDIR/Makefile.in "
-    /^CC *=/s#=.*#=$CC#
-    /^CFLAGS *=/s#=.*#=$CFLAGS#
-    /^SFLAGS *=/s#=.*#=$SFLAGS#
-    " > $ARCHDIR/Makefile
-fi
+# Generate Makefile in arch dir
+sed < $ARCHDIR/Makefile.in "
+/^CC *=/s#=.*#=$CC#
+/^CFLAGS *=/s#=.*#=$CFLAGS#
+/^SFLAGS *=/s#=.*#=$SFLAGS#
+" > $ARCHDIR/Makefile
 
 # create zlib.pc with the configure results
 sed < zlib.pc.in "