diff --git a/krylov/Makefile b/krylov/Makefile index fa4eb553..8f25f6af 100644 --- a/krylov/Makefile +++ b/krylov/Makefile @@ -22,7 +22,7 @@ LIBMOD=psb_krylov_mod$(.mod) LOCAL_MODS=$(MODOBJS:.o=$(.mod)) LIBNAME=$(METHDLIBNAME) -FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG). +FINCLUDES=$(FMFLAG). $(FMFLAG)$(LIBDIR) lib: $(OBJS) $(AR) $(HERE)/$(LIBNAME) $(OBJS) diff --git a/opt/Makefile b/opt/Makefile index 52c1fecd..f2b96bbd 100644 --- a/opt/Makefile +++ b/opt/Makefile @@ -10,7 +10,7 @@ LDLIBS=$(PSBLDLIBS) # Compilers and such # CCOPT= -g -FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG). +FINCLUDES=$(FMFLAG). $(FMFLAG)$(LIBDIR) HERE=. LIBMOD=*$(.mod) diff --git a/util/Makefile b/util/Makefile index fa0b49a4..a634f4f1 100644 --- a/util/Makefile +++ b/util/Makefile @@ -22,7 +22,7 @@ OBJS=$(MODOBJS) $(IMPLOBJS) $(COBJS) LIBMOD=psb_util_mod$(.mod) LOCAL_MODS=$(MODOBJS:.o=$(.mod)) LIBNAME=$(UTILLIBNAME) -FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG). +FINCLUDES=$(FMFLAG). $(FMFLAG)$(LIBDIR) lib: $(HERE)/$(LIBNAME)