diff -uNr ladspa_sdk/src/applyplugin.c ladspa_sdk-new/src/applyplugin.c
--- ladspa_sdk/src/applyplugin.c	Sat May 18 13:01:36 2002
+++ ladspa_sdk-new/src/applyplugin.c	Sun Oct 26 21:23:57 2003
@@ -6,7 +6,7 @@
 /*****************************************************************************/
 
 #include <dlfcn.h>
-#include <endian.h>
+#include <machine/endian.h>
 #include <errno.h>
 #include <math.h>
 #include <stdlib.h>
diff -uNr ladspa_sdk/src/makefile ladspa_sdk-new/src/makefile
--- ladspa_sdk/src/makefile	Sat Jul  6 13:34:20 2002
+++ ladspa_sdk-new/src/makefile	Sun Oct 26 21:24:54 2003
@@ -5,18 +5,18 @@
 # Change these if you want to install somewhere else. In particularly
 # you may wish to remove the middle "local/" part of each entry.
 
-INSTALL_PLUGINS_DIR	=	/usr/local/lib/ladspa/
-INSTALL_INCLUDE_DIR	=	/usr/include/
-INSTALL_BINARY_DIR	=	/usr/local/bin/
+INSTALL_PLUGINS_DIR	=	@PREFIX@/lib/ladspa/
+INSTALL_INCLUDE_DIR	=	@PREFIX@/include/
+INSTALL_BINARY_DIR	=	@PREFIX@/bin/
 
 ###############################################################################
 #
 # GENERAL
 #
 
-INCLUDES	=	-I.
-LIBRARIES	=	-ldl -lm
-CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
+INCLUDES	=	-I. -I@PREFIX@/include
+LIBRARIES	=	-L@PREFIX@/lib -ldl -lm
+CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC -fno-common
 CXXFLAGS	=	$(CFLAGS)
 PLUGINS		=	../plugins/amp.so				\
 			../plugins/delay.so				\
@@ -28,6 +28,7 @@
 			../bin/listplugins
 CC		=	cc
 CPP		=	c++
+LD		= $(CC)
 
 ###############################################################################
 #
@@ -36,27 +37,16 @@
 
 ../plugins/%.so:	plugins/%.c ladspa.h
 	$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
-	$(LD) -o ../plugins/$*.so plugins/$*.o -shared
+	$(LD) -bundle -o ../plugins/$*.so plugins/$*.o
 
 ../plugins/%.so:	plugins/%.cpp ladspa.h
 	$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
-	$(CPP) -o ../plugins/$*.so plugins/$*.o -shared
+	$(CPP) -bundle -o ../plugins/$*.so plugins/$*.o 
 
 ###############################################################################
 #
 # TARGETS
 #
-
-test:	/tmp/test.wav ../snd/noise.wav always
-	@echo ---------------------------------------------
-	@echo First listen to the white noise input signal:
-	@echo ---------------------------------------------
-	play ../snd/noise.wav
-	@echo -------------------------
-	@echo Compare to plugin output.
-	@echo -------------------------
-	@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
-	play /tmp/test.wav
 
 install:	targets
 	-mkdirhier	$(INSTALL_PLUGINS_DIR)				\
diff -uNr ladspa_sdk/src/search.c ladspa_sdk-new/src/search.c
--- ladspa_sdk/src/search.c	Sat Jul 21 12:04:23 2001
+++ ladspa_sdk-new/src/search.c	Sun Oct 26 21:29:22 2003
@@ -5,12 +5,12 @@
 
 /*****************************************************************************/
 
+#include <sys/types.h>
 #include <dirent.h>
 #include <dlfcn.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/types.h>
 #include <unistd.h>
 
 /*****************************************************************************/
