fortran-courses/Fortran For Beginners/Section 3 - Interactivity/Makefile

26 lines
318 B
Makefile

# From https://github.com/llamm-de/VSCode_Fortran_Tutorial
# variables
RM = del /Q /F
FC=gfortran
CFLAGS=-c -g -Og -Wall
FILE=take_notes
# linking
a.exe: $(FILE).o
$(FC) $(FILE).o
# compiling
$(FILE).o: $(FILE).f90
$(FC) $(CFLAGS) $(FILE).f90
# cleanup
clean:
-$(RM) $(FILE).o a.exe
# run
run:
make
./a.exe