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