d01b04c
diff -Nru ann_1.1.1.orig/Make-config ann_1.1.1/Make-config
d01b04c
--- ann_1.1.1.orig/Make-config	2006-08-04 21:46:26.000000000 +0200
d01b04c
+++ ann_1.1.1/Make-config	2008-08-14 19:35:57.000000000 +0200
d01b04c
@@ -67,6 +67,14 @@
d01b04c
 #				files in the MS_WIN32 directory).
d01b04c
 #-----------------------------------------------------------------------------
d01b04c
 
d01b04c
+#					Linux shared library using g++
d01b04c
+linux:
d01b04c
+	$(MAKE) targets \
d01b04c
+	"ANNLIB = libANN.so.1.0" \
d01b04c
+	"ANNDEVLIB = libANN.so" \
d01b04c
+	"C++ = g++" \
d01b04c
+	"MAKELIB = g++ -shared -Wl,-soname -Wl,libANN.so.1 -o" \
d01b04c
+	"RANLIB = true"
d01b04c
 #					Linux using g++
d01b04c
 linux-g++:
d01b04c
 	$(MAKE) targets \
d01b04c
diff -Nru ann_1.1.1.orig/Makefile ann_1.1.1/Makefile
d01b04c
--- ann_1.1.1.orig/Makefile	2006-08-04 21:46:26.000000000 +0200
d01b04c
+++ ann_1.1.1/Makefile	2008-08-14 19:28:16.000000000 +0200
d01b04c
@@ -56,7 +56,7 @@
d01b04c
 #-----------------------------------------------------------------------------
d01b04c
 # main make entry point
d01b04c
 #-----------------------------------------------------------------------------
d01b04c
-alpha-g++ macosx-g++ linux-g++ sgi sunos4 sunos4-g++ sunos5 sunos5-g++ sunos5-g++-sl authors-debug authors-perf:
d01b04c
+alpha-g++ macosx-g++ linux linux-g++ sgi sunos4 sunos4-g++ sunos5 sunos5-g++ sunos5-g++-sl authors-debug authors-perf:
d01b04c
 	cd src ; $(MAKE) $@
d01b04c
 	cd test ; $(MAKE) $@
d01b04c
 	cd sample ; $(MAKE) $@
d01b04c
diff -Nru ann_1.1.1.orig/src/Makefile ann_1.1.1/src/Makefile
d01b04c
--- ann_1.1.1.orig/src/Makefile	2006-08-04 21:46:27.000000000 +0200
d01b04c
+++ ann_1.1.1/src/Makefile	2008-08-14 19:36:45.000000000 +0200
d01b04c
@@ -56,7 +56,8 @@
d01b04c
 $(LIBDIR)/$(ANNLIB): $(OBJECTS)
d01b04c
 	$(MAKELIB) $(ANNLIB) $(OBJECTS)
d01b04c
 	$(RANLIB) $(ANNLIB)
d01b04c
-	mv $(ANNLIB) $(LIBDIR)
d01b04c
+	ln -s $(ANNLIB) $(ANNDEVLIB)
d01b04c
+	mv $(ANNLIB) $(ANNDEVLIB) $(LIBDIR)
d01b04c
 
d01b04c
 #-----------------------------------------------------------------------------
d01b04c
 # Make object files