* renamed logf to msg
[swftools.git] / lib / mkshared
1 #!/bin/sh
2 INCLUDEDIR=/usr/local/include
3 LIBDIR=/usr/local/lib
4
5 files=lame/*.c
6 files="$files rfxswf.c bitio.c"
7 for file in $files
8 do
9     libtool gcc -g -c $file
10 done
11 lofiles=*.lo
12
13 libtool gcc -g -o librfxswf.la $lofiles -rpath ${LIBDIR} -lm -lz -ljpeg
14
15
16 #perl -pe 's/^#include "\.\.\/config"/#define WORDS_BIGENDIAN/' rfxswf.h > rfxswf.tmp
17 perl -pe 's/^#include "\.\.\/config.h"//' rfxswf.h > rfxswf.tmp
18
19 su -c "cp rfxswf.tmp ${INCLUDEDIR}/rfxswf.h;
20        cp ../config.h ${INCLUDEDIR}/rfxswf_config.h;
21        cp bitio.h ${INCLUDEDIR}/bitio.h;
22        libtool cp librfxswf.la $LIBDIR/librfxswf.la;
23        ldconfig $LIBDIR
24        "
25
26 rm -f *.o *.lo rfxswf.tmp
27