From bf6a5d1d31b325e7bdb1a01821bd1bd072675c1c Mon Sep 17 00:00:00 2001 From: minhqdao Date: Mon, 4 Mar 2024 03:13:19 +0300 Subject: [PATCH] Try parent folders --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec5161f..43b84aa 100644 --- a/Makefile +++ b/Makefile @@ -71,11 +71,11 @@ $(EXEDIRSTATIC)/%.out: $(EXMPLDIR)/%.f90 $(STATIC) $(EXEDIRSHARED)/%.out: $(TESTDIR)/%.f90 $(SHARED) mkdir -p $(EXEDIRSHARED) - $(FC) $(FFLAGS) -L. $(MODIN) -o $@ $< $(SHARED) + $(FC) $(FFLAGS) -L../../../.. $(MODIN) -o $@ $< $(SHARED) $(EXEDIRSHARED)/%.out: $(EXMPLDIR)/%.f90 $(SHARED) mkdir -p $(EXEDIRSHARED) - $(FC) $(FFLAGS) -L. $(MODIN) -o $@ $< $(SHARED) + $(FC) $(FFLAGS) -L../../../.. $(MODIN) -o $@ $< $(SHARED) test: $(TESTEXESSTATIC) $(TESTEXESSHARED) $(EXMPLEXESSTATIC) $(EXMPLEXESSHARED) @for f in $^; do $$f; done