--- Makefile.orig	2005-11-29 00:18:03 UTC
+++ Makefile
@@ -1,19 +1,18 @@
 PREFIX=/usr/local
 
-COMPILE_FLAGS  = -fPIC `pkg-config fftw3f samplerate sndfile --cflags`
+COMPILE_FLAGS  = $(CFLAGS) -fPIC `pkg-config fftw3f samplerate sndfile --cflags`
 #COMPILE_FLAGS += -g
-COMPILE_FLAGS += -O3 -funroll-loops -funroll-all-loops 
 
 LINK_FLAGS    = `pkg-config fftw3f samplerate sndfile --libs` 
 
 # uncomment the following line if libDSP is not available for
 # your platform (power pc etc.)...
 
-# COMPILE_FLAGS += -DC_CMUL
+COMPILE_FLAGS += -DC_CMUL
 
 # ...and comment this one out:
 
-LINK_FLAGS += -L/usr/local/lib -ldsp -lstdc++
+#LINK_FLAGS += -L/usr/local/lib -ldsp -lstdc++
 
 
 ST_TARGET = libconvolve.a
@@ -53,5 +52,5 @@ install: $(TARGET)
 	cp $(TARGET) $(PREFIX)/lib/
 	cp $(ST_TARGET) $(PREFIX)/lib/
 	cp convolve.h $(PREFIX)/include/
-	ldconfig -n $(PREFIX)/lib
+	ln -s $(PREFIX)/lib/$(TARGET) $(PREFIX)/lib/$(SONAME) || true
 	ln -s $(PREFIX)/lib/$(SONAME) $(PREFIX)/lib/$(SMALLNAME) || true
