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