Added linux-g++-sl (shared libraries under Linux)
authorDmitriy Morozov <dmitriy@mrzv.org>
Tue, 14 Jul 2009 09:25:24 -0700
changeset 2 689462154b3a
parent 1 730bb27b92cf
child 3 f1e962ffa1c2
Added linux-g++-sl (shared libraries under Linux)
Make-config
Makefile
--- a/Make-config	Tue Jul 14 09:24:29 2009 -0700
+++ b/Make-config	Tue Jul 14 09:25:24 2009 -0700
@@ -76,6 +76,14 @@
 	"MAKELIB = ar ruv" \
 	"RANLIB = true"
 
+linux-g++-sl:
+	$(MAKE) targets \
+	"ANNLIB = libANN.so" \
+	"C++ = g++" \
+	"CFLAGS = -O3 -fPIC" \
+	"MAKELIB = g++ -shared -o" \
+	"RANLIB = true"
+
 #					Mac OS X using g++
 macosx-g++:
 	$(MAKE) targets \
--- a/Makefile	Tue Jul 14 09:24:29 2009 -0700
+++ b/Makefile	Tue Jul 14 09:25:24 2009 -0700
@@ -42,6 +42,7 @@
 default:
 	@echo "Enter one of the following:"
 	@echo "  make linux-g++            for Linux and g++"
+	@echo "  make linux-g++-sl         for Linux and g++, make shared libs"
 	@echo "  make macosx-g++           for Mac OS X and g++"
 	@echo "  make sunos5               for Sun with SunOS 5.x"
 	@echo "  make sunos5-sl            for Sun with SunOS 5.x, make shared libs"
@@ -56,7 +57,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-g++ linux-g++-sl sgi sunos4 sunos4-g++ sunos5 sunos5-g++ sunos5-g++-sl authors-debug authors-perf:
 	cd src ; $(MAKE) $@
 	cd test ; $(MAKE) $@
 	cd sample ; $(MAKE) $@