From: kramm Date: Wed, 5 Jun 2002 12:07:23 +0000 (+0000) Subject: shell script to make a shared librfxswf. X-Git-Tag: release-0-4-0~51 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=93e2164590bc77ab50bea8b23f18f1d49b1eaac1 shell script to make a shared librfxswf. --- diff --git a/lib/mkshared b/lib/mkshared new file mode 100755 index 0000000..cadd1be --- /dev/null +++ b/lib/mkshared @@ -0,0 +1,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 + diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 2598fd2..127984c 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -31,6 +31,9 @@ #endif // HAVE_ZLIB_H #endif // HAVE_LIBZ +#define LAME +#include "lame/lame.h" + #include "./bitio.h" // internal constants diff --git a/lib/rfxswf.h b/lib/rfxswf.h index aa1276e..624172e 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -22,9 +22,6 @@ #include "../config.h" #include "./bitio.h" -#define LAME -#include "lame/lame.h" - #define DEBUG_RFXSWF #ifndef TRUE