-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (36 loc) · 1018 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#F90C=ifort
F90C=gfortran
FFLAGS = -openmp -O3 -w -fpp2 -DMPI
LINKFLAGS = -lm
SOURCES = settings.f90 \
paramscan.f90 \
constants.f90 \
genidl.f90 \
subroutines.f90 \
readdata.f90 \
propose.f90 \
coco.f90 \
chi2.f90 \
randgen.f90\
mathtool.f90\
io.f90\
mcmc.f90
OBJS = ${SOURCES:.f90=.o}
default: coco
all : coco
coco : ${OBJS}
${F90C} -o coco $(OBJS) ${LINKFLAGS}
coco.o : io.o settings.o subroutines.o paramscan.o genidl.o
chi2.o : subroutines.o readdata.o settings.o io.o
paramscan.o : chi2.o constants.o settings.o randgen.o readdata.o mcmc.o
genidl.o : settings.o readdata.o constants.o io.o
mcmc.o : chi2.o settings.o propose.o constants.o io.o randgen.o
propose.o : settings.o randgen.o
readdata.o : constants.o settings.o io.o
io.o : constants.o
settings.o : constants.o mathtool.o
subroutines.o : readdata.o settings.o constants.o
%.o: %.f90
${F90C} -c $*.f90
clean:
rm -f *.o *.mod coco