Last active
November 14, 2019 09:56
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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