From 0c224b963a82731ff9901894389b858f32c51db4 Mon Sep 17 00:00:00 2001 From: Michele Martone Date: Sun, 3 Apr 2011 11:17:32 +0000 Subject: [PATCH] psblas3: renamed libopt.a to libpsb_opt.a and building it and installing by default. --- Makefile | 2 ++ opt/Makefile | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 736e9657..eca49d87 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ include Make.inc all: libd based precd kryld utild + (cd opt; $(MAKE) lib) @echo "=====================================" @echo "PSBLAS libraries Compilation Successful." @@ -33,6 +34,7 @@ clean: (cd prec; $(MAKE) clean ) (cd krylov; $(MAKE) clean) (cd util; $(MAKE) clean) + (cd opt; $(MAKE) clean) check: all make check -C test/serial diff --git a/opt/Makefile b/opt/Makefile index 1d6e6a24..e84f46c0 100644 --- a/opt/Makefile +++ b/opt/Makefile @@ -11,15 +11,26 @@ LDLIBS=$(PSBLDLIBS) # CCOPT= -g FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG). +HERE=. +LIBMOD=*$(.mod) +LIBDIR=../lib EXEDIR=./runs OBJS=psb_d_ell_impl.o psb_d_ell_mat_mod.o rsb_mod.o psb_d_rsb_mat_mod.o -lib: libopt.a -libopt.a: $(OBJS) - ar cur libopt.a $(OBJS) +LIBNAME=libpsb_opt.a + +lib: $(LIBNAME) + $(AR) $(HERE)/$(LIBNAME) $(OBJS) + $(RANLIB) $(HERE)/$(LIBNAME) + /bin/cp -p $(HERE)/$(LIBNAME) $(LIBDIR) + /bin/cp -p $(LIBMOD) $(LIBDIR) + + +libpsb_opt.a: $(OBJS) + ar cur libpsb_opt.a $(OBJS) psb_d_ell_impl.o: psb_d_ell_mat_mod.o psb_d_rsb_mat_mod.o: rsb_mod.o @@ -32,3 +43,4 @@ verycleanlib: +