diff --git a/base/Makefile b/base/Makefile index 639035b9..f38f3a1c 100644 --- a/base/Makefile +++ b/base/Makefile @@ -4,12 +4,14 @@ HERE=. LIBDIR=../lib LIBNAME=$(BASELIBNAME) LIBMOD=psb_base_mod$(.mod) -lib: $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBMOD) mods sr cm in pb tl +lib: $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBMOD) + +$(HERE)/$(LIBNAME): mods sr cm in pb tl $(LIBDIR)/$(LIBNAME): $(HERE)/$(LIBNAME) /bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR) -$(LIBDIR)/$(LIBMOD): +$(LIBDIR)/$(LIBMOD): $(LIBMOD) /bin/cp -p $(CPUPDFLAG) $(LIBMOD) *$(.mod) $(LIBDIR) sr cm in pb tl: mods diff --git a/base/serial/f77/Makefile b/base/serial/f77/Makefile index 68312db2..354d87a2 100644 --- a/base/serial/f77/Makefile +++ b/base/serial/f77/Makefile @@ -17,6 +17,7 @@ LIBDIR=../.. MODDIR=../../modules FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG)$(MODDIR) $(FMFLAG)$(SPARKERDIR) $(FMFLAG). #LIBNAME=libsparker.a +LIBNAME=$(BASELIBNAME) LIBFILE=$(LIBDIR)/$(LIBNAME) # diff --git a/prec/Makefile b/prec/Makefile index 72a7c3c3..92142f70 100644 --- a/prec/Makefile +++ b/prec/Makefile @@ -29,7 +29,7 @@ OBJS=$(F90OBJS) $(COBJS) $(MPFOBJS) $(MODOBJS) lib: $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBMOD) -$(HERE)/$(LIBNAME): +$(HERE)/$(LIBNAME): $(OBJS) $(AR) $(HERE)/$(LIBNAME) $(OBJS) $(RANLIB) $(HERE)/$(LIBNAME) diff --git a/util/Makefile b/util/Makefile index de4f9a15..a5440b30 100644 --- a/util/Makefile +++ b/util/Makefile @@ -21,14 +21,13 @@ lib: $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBMOD) $(LIBDIR)/$(LIBNAME): $(HERE)/$(LIBNAME) /bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR) -$(LIBDIR)/$(LIBMOD): +$(LIBDIR)/$(LIBMOD): $(LIBMOD) /bin/cp -p $(CPUPDFLAG) $(LIBMOD) $(LOCAL_MODS) $(LIBDIR) -$(HERE)/$(LIBNAME): +$(HERE)/$(LIBNAME): $(OBJS) $(AR) $(HERE)/$(LIBNAME) $(OBJS) $(RANLIB) $(HERE)/$(LIBNAME) - psb_util_mod.o: $(BASEOBJS) veryclean: clean