changeset 9333:fffdba3ca522 octave-forge

linear-algebra: makefile updated to link to LAPACK. Patch submitted by marco atzeri <marco.atzeri@gmail.com>
author carandraug
date Tue, 10 Jan 2012 18:00:16 +0000
parents 5380fd4d2ced
children 0857c6c60451
files main/linear-algebra/src/Makefile
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/linear-algebra/src/Makefile	Tue Jan 10 17:59:30 2012 +0000
+++ b/main/linear-algebra/src/Makefile	Tue Jan 10 18:00:16 2012 +0000
@@ -4,6 +4,8 @@
 MKOCTFILE = mkoctfile
 endif
 
+LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS)
+
 DEFINES = -DHAVE_CONFIG_H -Wall
 GSVD_OBJECTS = gsvd.o dbleGSVD.o CmplxGSVD.o 
 GSVD_TARGET = gsvd.oct
@@ -23,7 +25,7 @@
 all : $(TARGETS) pgmres.oct
 
 $(GSVD_TARGET) : $(GSVD_DEPENDS) $(GSVD_OBJECTS)
-	$(MKOCTFILE) $(DEFINES) $(GSVD_OBJECTS) -o $@
+	$(MKOCTFILE) $(DEFINES) $(GSVD_OBJECTS) -o $@ ${LAPACK_LIBS}
 
 $(GSVD_TEST) : $(GSVD_TARGET)
 
@@ -44,7 +46,7 @@
 	$(MKOCTFILE) $(DEFINES) $< -o $@
 
 %.oct: %.cc
-	mkoctfile $(DEFINES) $< -o $@
+	mkoctfile $(DEFINES) $< -o $@ ${LAPACK_LIBS}
 
 .phony: test
 test: $(GSVD_TEST)