blob: cadd1be36e3b7faae268f789182d12ec7366bdcc (
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
|
#!/bin/sh
INCLUDEDIR=/usr/local/include
LIBDIR=/usr/local/lib
files=lame/*.c
files="$files rfxswf.c bitio.c"
for file in $files
do
libtool gcc -g -c $file
done
lofiles=*.lo
libtool gcc -g -o librfxswf.la $lofiles -rpath ${LIBDIR} -lm -lz -ljpeg
#perl -pe 's/^#include "\.\.\/config"/#define WORDS_BIGENDIAN/' rfxswf.h > rfxswf.tmp
perl -pe 's/^#include "\.\.\/config.h"//' rfxswf.h > rfxswf.tmp
su -c "cp rfxswf.tmp ${INCLUDEDIR}/rfxswf.h;
cp ../config.h ${INCLUDEDIR}/rfxswf_config.h;
cp bitio.h ${INCLUDEDIR}/bitio.h;
libtool cp librfxswf.la $LIBDIR/librfxswf.la;
ldconfig $LIBDIR
"
rm -f *.o *.lo rfxswf.tmp
|