18 lines
306 B
Makefile
18 lines
306 B
Makefile
RM = del /Q /F
|
|
|
|
todo: todo_m.o todo.o
|
|
gfortran todo_m.o todo.o -o todo
|
|
|
|
todo.o: todo.f90 todo_m.mod
|
|
gfortran -c todo.f90 -o todo.o
|
|
|
|
todo_m.o todo_m.mod: todo_m.f90
|
|
gfortran -c todo_m.f90 -o todo_m.o
|
|
|
|
# .PHONY: clean
|
|
clean:
|
|
-$(RM) todo todo.o todo_m.o todo_m.mod
|
|
clean_exe:
|
|
make clean
|
|
-$(RM) todo.exe
|