shell script to make a shared librfxswf.
authorkramm <kramm>
Wed, 5 Jun 2002 12:07:23 +0000 (12:07 +0000)
committerkramm <kramm>
Wed, 5 Jun 2002 12:07:23 +0000 (12:07 +0000)
lib/mkshared [new file with mode: 0755]
lib/rfxswf.c
lib/rfxswf.h

diff --git a/lib/mkshared b/lib/mkshared
new file mode 100755 (executable)
index 0000000..cadd1be
--- /dev/null
@@ -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
+
index 2598fd2..127984c 100644 (file)
@@ -31,6 +31,9 @@
 #endif // HAVE_ZLIB_H
 #endif // HAVE_LIBZ
 
+#define LAME
+#include "lame/lame.h"
+
 #include "./bitio.h"
 
 // internal constants
index aa1276e..624172e 100644 (file)
@@ -22,9 +22,6 @@
 #include "../config.h"
 #include "./bitio.h"
 
-#define LAME
-#include "lame/lame.h"
-
 #define DEBUG_RFXSWF
 
 #ifndef TRUE