view Makefile @ 4:8026ceb4de7a

add Makefile
author "uncorrelated zombie" <uncorrelated@yahoo.co.jp>
date Tue, 23 Jul 2024 01:48:31 +0900
parents
children 0ca8347e4c47
line wrap: on
line source

All: rkmain.exe rksub.so

clean:
	rm *.so *.o *.mod *.exe

rksub.so: rksub.f90 rkmain.o rkmod.o rungekutta.o
	R CMD SHLIB rksub.f90 rkmain.o rkmod.o rungekutta.o

rkmain.exe: rkmain.o rkmod.o rungekutta.o
	gfortran -o rkmain.exe rkmain.o rkmod.o rungekutta.o

rkmain.o: rkmain.f90 rkmod.o rungekutta.o
	gfortran -c rkmain.f90

rkmod.o: rkmod.f90 rungekutta.o
	gfortran -c rkmod.f90

rungekutta.o: rungekutta.f90
	gfortran -c rungekutta.f90