summaryrefslogtreecommitdiff
path: root/lib/mkshared
diff options
context:
space:
mode:
authorkramm <kramm>2002-06-05 12:07:23 +0000
committerkramm <kramm>2002-06-05 12:07:23 +0000
commit93e2164590bc77ab50bea8b23f18f1d49b1eaac1 (patch)
treea581399a5a96272fcef5aac5a8b82dbe3b066184 /lib/mkshared
parentb89cdb28e751ded1c1b4b1096f602e1a8011d9a1 (diff)
shell script to make a shared librfxswf.
Diffstat (limited to 'lib/mkshared')
-rwxr-xr-xlib/mkshared27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/mkshared b/lib/mkshared
new file mode 100755
index 00000000..cadd1be3
--- /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
+