--- libSNL-0.2/src/makefile	2010-02-13 22:57:44.000000000 +0100
+++ libSNL-new/src/makefile	2010-02-20 16:21:28.000000000 +0100
@@ -15,17 +15,23 @@
 
 libName = libSNL.so.0.2
 
-export cflags = -Wall -fPIC -g 
-export cname = g++
+#export cflags = -Wall -fPIC -g 
+#export cname = g++
+#
+#CXXFLAGS := $(cflags)
+#CFLAGS := $(cflags)
+#
+# rule for compiling c files for use with the dynamic library
+%.o: %.cpp
+	$(PURIFY) $(CXX) -c $(CFLAGS) $< -fPIC -DPIC -o $@
+
 
-CXXFLAGS := $(cflags)
-CFLAGS := $(cflags)
-
-libSNL:     $(objFiles)
+$(libName):     $(objFiles)
 	@       echo
 	@       echo "*** Building Shared Library ***"
 	@       echo
-	        $(cname) $(cflags) -shared -o $(libName) $(objFiles)
+	g++ -shared $? -Wl,-soname,libSNL.so.0.2 -o libSNL.so.0.2 -lm
+	ln -s libSNL.so.0.2 libSNL.so
 
 include                 make.dep
 
