Skip to content

Instantly share code, notes, and snippets.

@MalteWegener99
Last active November 14, 2019 09:56
Show Gist options
  • Save MalteWegener99/b0f15476a8ce699fd155a02bf1666b22 to your computer and use it in GitHub Desktop.
Save MalteWegener99/b0f15476a8ce699fd155a02bf1666b22 to your computer and use it in GitHub Desktop.
GNU Makefile for p116 of the book Ian Smith, Vaughan Griffiths, and Lee Margetts. Programming the Finite Element Method, 5th Edition . John Wiley Sons, 2013.
GF = gfortran
all: clean chap11
chap11: library p116
echo "Done"
p116: chap11/p116.f03
$(GF) chap11/p116.f03 -o p116 library/arpack/arpacklib.a -I . main.a geom.a
library: main.a geom.a
main.a:
$(GF) -c library/main/*.f03
ar -r main.a *.o
rm -f *.o
geom.a:
$(GF) -c library/geom/*.f03
ar -r geom.a *.o
rm -f *.o
clean:
rm -f *.a
rm -f *.mod
rm -f p116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment