Brought up to date
[swftools.git] / lib / mkshared
blobcadd1be36e3b7faae268f789182d12ec7366bdcc
1 #!/bin/sh
2 INCLUDEDIR=/usr/local/include
3 LIBDIR=/usr/local/lib
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
13 libtool gcc -g -o librfxswf.la $lofiles -rpath ${LIBDIR} -lm -lz -ljpeg
16 #perl -pe 's/^#include "\.\.\/config"/#define WORDS_BIGENDIAN/' rfxswf.h > rfxswf.tmp
17 perl -pe 's/^#include "\.\.\/config.h"//' rfxswf.h > rfxswf.tmp
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
26 rm -f *.o *.lo rfxswf.tmp