aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6f3251b055690f00916b2a7bf739889c5b8b2965 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FC = gfortran
FFLAGS = -std=f2008 -Wall -pedantic -fbounds-check -fimplicit-none \
	 -ffree-form -fcoarray=lib -O2 -c
LDFLAGS = -lcaf_mpi

all : integrator

main.o main.mod : quadratures.mod functions.mod

%.mod %.o : src/%.f90
	$(FC) $(FFLAGS) $<

integrator : main.o quadratures.o functions.o
	$(FC) $(LDFLAGS) $^ -o $@

clean :
	-rm integrator *.{mod,o}

.PHONY : all clean