# HG changeset patch
# User Andrew O. Shadoura <bugzilla@tut.by>
# Date 1218051035 -10800
# Node ID 74134c731db6e3d3b7b7c8b5e58d53e4d255b0cd
# Parent  7bf9affe88b6780c365f722e8b89fa5260e14ce2
make libSAD shared library, so plugins can use it

diff -r 7bf9affe88b6 -r 74134c731db6 src/audacious/Makefile
--- a/src/audacious/Makefile	Sun Jul 06 15:33:19 2008 +0300
+++ b/src/audacious/Makefile	Wed Aug 06 22:30:35 2008 +0300
@@ -146,8 +146,7 @@
        ui/carbon-menubar.ui
 
 CLEAN = build_stamp.c libaudacious.exe.a
-EXT_DEPS = ../libguess/libguess.a \
-           ../libSAD/libSAD.a
+EXT_DEPS = ../libguess/libguess.a ../libSAD/libSAD.so
 
 ifeq ($(USE_EGGSM),yes)
 EXT_DEPS += ../libeggsmclient/libeggsmclient.a
@@ -187,7 +186,7 @@
 		${LIBINTL}						\
 		${SAMPLERATE_LIBS}				\
 		../libguess/libguess.a			\
-		../libSAD/libSAD.a				\
+		-L../libSAD -lSAD			\
 		${EGGSM_LIBS}					\
 		${GLIB_LIBS}					\
 		${GTHREAD_LIBS}					\
diff -r 7bf9affe88b6 -r 74134c731db6 src/libSAD/Makefile
--- a/src/libSAD/Makefile	Sun Jul 06 15:33:19 2008 +0300
+++ b/src/libSAD/Makefile	Wed Aug 06 22:30:35 2008 +0300
@@ -1,4 +1,7 @@
-STATIC_LIB_NOINST = libSAD.a
+LIB = ${LIB_PREFIX}SAD${LIB_SUFFIX}
+LIB_MAJOR = 1
+LIB_MINOR = 0
+
 SRCS = dither.c \
        dither_ops.c \
        noicegen.c