From cb171527c09945b638ae547e597240ba17306ae1 Mon Sep 17 00:00:00 2001 From: Salvatore Filippone Date: Tue, 19 Apr 2011 11:37:35 +0000 Subject: [PATCH] psblas3: makefile in Opt: simple rules! --- opt/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/opt/Makefile b/opt/Makefile index e340c044..c9d1cc4b 100644 --- a/opt/Makefile +++ b/opt/Makefile @@ -22,17 +22,12 @@ OBJS=psb_d_ell_impl.o psb_d_ell_mat_mod.o rsb_mod.o psb_d_rsb_mat_mod.o LIBNAME=libpsb_opt.a -lib: $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBMOD) - -$(LIBDIR)/$(LIBNAME): $(HERE)/$(LIBNAME) - /bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR) - -$(LIBDIR)/$(LIBMOD): $(LIBMOD) - /bin/cp -p $(CPUPDFLAG) $(LIBMOD) *$(.mod) $(LIBDIR) - -$(HERE)/$(LIBNAME): $(OBJS) +lib: $(OBJS) $(AR) $(HERE)/$(LIBNAME) $(OBJS) $(RANLIB) $(HERE)/$(LIBNAME) + /bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR) + /bin/cp -p $(CPUPDFLAG) *$(.mod) $(LIBDIR) + libpsb_opt.a: $(OBJS) ar cur libpsb_opt.a $(OBJS)