|
|
de4f5e5 |
diff -Naur ann_1.1.2.orig/Make-config ann_1.1.2/Make-config
|
|
|
de4f5e5 |
--- ann_1.1.2.orig/Make-config 2010-01-28 05:40:01.000000000 +0100
|
|
|
de4f5e5 |
+++ ann_1.1.2/Make-config 2013-03-22 15:56:58.290617102 +0100
|
|
|
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 \
|
|
|
de4f5e5 |
diff -Naur ann_1.1.2.orig/Makefile ann_1.1.2/Makefile
|
|
|
de4f5e5 |
--- ann_1.1.2.orig/Makefile 2010-01-28 05:40:01.000000000 +0100
|
|
|
de4f5e5 |
+++ ann_1.1.2/Makefile 2013-03-22 15:56:58.290617102 +0100
|
|
|
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) $@
|
|
|
de4f5e5 |
diff -Naur ann_1.1.2.orig/src/Makefile ann_1.1.2/src/Makefile
|
|
|
de4f5e5 |
--- ann_1.1.2.orig/src/Makefile 2010-01-28 05:40:01.000000000 +0100
|
|
|
de4f5e5 |
+++ ann_1.1.2/src/Makefile 2013-03-22 15:56:58.290617102 +0100
|
|
|
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
|