view Makefile @ 5:0ca8347e4c47

add rk_Lorenz.R and rksub.f90
author "uncorrelated zombie" <uncorrelated@yahoo.co.jp>
date Tue, 23 Jul 2024 03:31:21 +0900
parents 8026ceb4de7a
children
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 -fPIC

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