summaryrefslogtreecommitdiff
path: root/class/makefile
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-02-27 14:08:37 -0500
committerConnor Moore <connor@hhmoore.ca>2026-02-27 14:08:37 -0500
commit6ff45fe556d3b49a1506c5882036f909c143ed85 (patch)
tree6ff69d8ee98361a3d531472fbe67c3cbb55ac9b6 /class/makefile
parent6dd6792a16954b0004cb35d14a5b25de0627c69d (diff)
Split up some modules and added a testing class for sectors
Diffstat (limited to 'class/makefile')
-rw-r--r--class/makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/class/makefile b/class/makefile
new file mode 100644
index 0000000..935d1c6
--- /dev/null
+++ b/class/makefile
@@ -0,0 +1,19 @@
+FC = gfortran
+FFLAGS = -Wall -Wextra
+
+all: test
+
+mod_globals.o: mod_globals.f90
+ $(FC) $(FFLAGS) -c mod_globals.f90
+
+mod_sectors.o: mod_sectors.f90
+ $(FC) $(FFLAGS) -c mod_sectors.f90
+
+test_sectors: mod_sectors_test.f90 mod_globals.o mod_sectors.o
+ $(FC) $(FFLAGS) -o test_sectors.x mod_sectors_test.f90 mod_globals.o mod_sectors.o
+
+tests: test_sectors
+ ./test_sectors.x
+
+clean:
+ rm -f *.o *.x *.mod