Skip to content
Newer
Older
100755 45 lines (35 sloc) 1.08 KB
66088e7 @MaxKellermann test.sh: shell script which runs the build
MaxKellermann authored Dec 23, 2010
1 #!/bin/sh -e
2 #
3 # This shell script tests the build of libmpdclient with various
4 # compile-time options.
5 #
6 # Author: Max Kellermann <max@duempel.org>
7
8 MAKE="make -j4"
9 PREFIX=/tmp/libmpdclient
10 rm -rf $PREFIX
11
12 export CFLAGS="-O3"
13
14 test -x configure || NOCONFIGURE=1 ./autogen.sh
15
16 # debug build
17 CFLAGS="-O0 -ggdb" ./configure --prefix=$PREFIX/debug --enable-debug --enable-werror
18 $MAKE clean
19 $MAKE install
20
21 # no TCP
22 CFLAGS="-O0 -ggdb" ./configure --prefix=$PREFIX/notcp --enable-debug --enable-werror --disable-tcp
23 $MAKE clean
24 $MAKE install
25
26 # release build
27 CFLAGS="-O3" ./configure --prefix=$PREFIX/release --disable-debug --enable-werror
28 $MAKE clean
29 $MAKE install
30
31 # dietlibc build
32 CC="diet -Os gcc -nostdinc" ./configure --prefix=$PREFIX/diet --disable-debug --disable-shared
33 $MAKE clean
34 $MAKE install
35
36 # dietlibc build, no TCP
37 CC="diet -Os gcc -nostdinc" ./configure --prefix=$PREFIX/diet-notcp --disable-debug --disable-shared --disable-tcp
38 $MAKE clean
39 $MAKE install
40
41 # WIN32
42 CFLAGS="-O3" ./configure --prefix=$PREFIX/win32 --host=i586-mingw32msvc --disable-debug --enable-werror
43 $MAKE clean
44 $MAKE install
Something went wrong with that request. Please try again.