Skip to content

Commit

Permalink
Try linking argument
Browse files Browse the repository at this point in the history
  • Loading branch information
minhqdao committed Mar 4, 2024
1 parent 93fba91 commit 3464f07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ $(SHARED): $(SRCS)

$(EXEDIRSTATIC)/%.out: $(TESTDIR)/%.f90 $(STATIC)
mkdir -p $(EXEDIRSTATIC)
$(FC) $(FFLAGS) $< $(MODIN) -o $@ $(STATIC)
$(FC) $(FFLAGS) $(MODIN) -o $@ $< $(STATIC)

$(EXEDIRSTATIC)/%.out: $(EXMPLDIR)/%.f90 $(STATIC)
mkdir -p $(EXEDIRSTATIC)
$(FC) $(FFLAGS) $< $(MODIN) -o $@ $(STATIC)
$(FC) $(FFLAGS) $(MODIN) -o $@ $< $(STATIC)

$(EXEDIRSHARED)/%.out: $(TESTDIR)/%.f90 $(SHARED)
mkdir -p $(EXEDIRSHARED)
$(FC) $(FFLAGS) $< $(MODIN) -o $@ $(SHARED)
$(FC) $(FFLAGS) -L. $(MODIN) -o $@ $< $(SHARED)

$(EXEDIRSHARED)/%.out: $(EXMPLDIR)/%.f90 $(SHARED)
mkdir -p $(EXEDIRSHARED)
$(FC) $(FFLAGS) $< $(MODIN) -o $@ $(SHARED)
$(FC) $(FFLAGS) -L. $(MODIN) -o $@ $< $(SHARED)

test: $(TESTEXESSTATIC) $(TESTEXESSHARED) $(EXMPLEXESSTATIC) $(EXMPLEXESSHARED)
@for f in $^; do $$f; done
Expand Down

0 comments on commit 3464f07

Please sign in to comment.