blob: 670610950cd50f1bf5ef5e0c01261791013ddad6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#! /bin/sh
# vi:ts=4:et
set -e
echo "// Copyright (C) 1996-2010 Markus F.X.J. Oberhumer"
echo "//"
echo "// Generic Posix/Unix system"
echo "// Generic C compiler"
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
test "X${CC}" = X && CC="cc"
test "X${CFLAGS+set}" = Xset || CFLAGS="-O"
test "X${LIBS+set}" = Xset || LIBS="-llzo2"
# CPPFLAGS, LDFLAGS
# LZOP_EXTRA_CPPFLAGS, LZOP_EXTRA_CFLAGS, LZOP_EXTRA_LDFLAGS
# LZOP_EXTRA_SOURCES, LZOP_EXTRA_LIBS
CFI="-I${top_srcdir}"
CF="$CPPFLAGS $CFI $CFLAGS"
LF="$LDFLAGS $LZOP_EXTRA_LDFLAGS"
LL="$LIBS $LZOP_EXRA_LIBS"
. $top_srcdir/B/generic/clean.sh
for f in $top_srcdir/src/*.c $LZOP_EXTRA_SOURCES; do
echo $CC $CF $LZOP_EXTRA_CPPFLAGS $LZOP_EXTRA_CFLAGS -c $f
$CC $CF $LZOP_EXTRA_CPPFLAGS $LZOP_EXTRA_CFLAGS -c $f
done
echo $CC $CF $LF -o lzop.out *.o $LL
$CC $CF $LF -o lzop.out *.o $LL
echo "//"
echo "// Building lzop was successful. All done."
true
|