Merge pull request #2 from danielt3/master
[BennuGD.git] / build-linux-opensuse.sh
blob68c2757b813459f8ab763f9be8c35b469a9a714d
1 #!/bin/sh
3 TARGET=gnu-linux
5 echo "### Building BennuGD Core ###"
7 cd core
8 case $1 in
9 release)
10 ./configure --build=i586-suse-linux && make clean && make
14 make
16 esac
17 if [ $? -ne 0 ]; then
18 echo "*** ABORT ***"
19 exit 1
21 cd -
23 echo "### Building BennuGD Modules ###"
25 cd modules
26 case $1 in
27 release)
28 ./configure --build=i586-suse-linux && make clean && make
32 make
34 esac
35 if [ $? -ne 0 ]; then
36 echo "*** ABORT ***"
37 exit 1
39 cd -
41 echo "### Building BennuGD Tools ###"
43 cd tools/moddesc
44 case $1 in
45 release)
46 ./configure --build=i586-suse-linux && make clean && make
50 make
52 esac
53 if [ $? -ne 0 ]; then
54 echo "*** ABORT ***"
55 exit 1
57 cd -
59 echo "### Copying files to bin folder ###"
61 mkdir -p bin/$TARGET 2>/dev/null
62 #cp 3rdparty/des-4.04b/libdes.so bin/$TARGET
63 cp core/bgdi/src/.libs/bgdi bin/$TARGET
64 cp core/bgdc/src/bgdc bin/$TARGET
65 cp core/bgdrtm/src/.libs/libbgdrtm.so bin/$TARGET
66 cp $(find modules -name '*.so') bin/$TARGET
67 cp tools/moddesc/moddesc bin/$TARGET
69 echo "### Build done! ###"
71 exit 0