From 3ea16fbbc875f356942c983aac7846cb7c94258a Mon Sep 17 00:00:00 2001 From: tTh Date: Mon, 16 Sep 2024 03:24:26 +0200 Subject: [PATCH] add some stuff --- code/fortran/.gitignore | 1 + code/fortran/Makefile | 8 ++++++++ code/fortran/printty.f90 | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 code/fortran/printty.f90 diff --git a/code/fortran/.gitignore b/code/fortran/.gitignore index c838d00..8b9a76e 100644 --- a/code/fortran/.gitignore +++ b/code/fortran/.gitignore @@ -1,6 +1,7 @@ plplotting dessiner +printty *.png *.gif diff --git a/code/fortran/Makefile b/code/fortran/Makefile index c246e6f..93d67b9 100644 --- a/code/fortran/Makefile +++ b/code/fortran/Makefile @@ -1,6 +1,14 @@ INCS = -I/usr/include/plplot -I/usr/lib/x86_64-linux-gnu/fortran/modules/plplot +# sinple examples + +printty: printty.f90 Makefile + gfortran -g $< $(INCS) -o $@ + + +# more complex garbage + plplotting: plplotting.f90 Makefile gfortran -g $< $(INCS) -lplplotfortran -o $@ diff --git a/code/fortran/printty.f90 b/code/fortran/printty.f90 new file mode 100644 index 0000000..2ff8546 --- /dev/null +++ b/code/fortran/printty.f90 @@ -0,0 +1,7 @@ +! new: Sun Sep 15 05:04:37 UTC 2024 +program hello + implicit none + + print *, "This is the 'printty' program" + +end