-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmakefile
45 lines (37 loc) · 1.28 KB
/
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
42
43
44
45
#-------------------------------------------------------------------------#
# Makefile for pyaneti #
# Oscar Barragán, Oct. 2016 #
#-------------------------------------------------------------------------#
# make -> compiles the code in its sequential configuration #
# make para -> compiles the code in its parallel configuration #
# make clean -> removes the pyaneti.so file #
#-------------------------------------------------------------------------#
FP=f2py3.11
#FP=f2py2.7
fc=gnu95
cc=unix
FLAGS_OMP= -c -m --quiet --f90flags='-fopenmp'
FLAGS = -c --quiet -m
BLIBS = -llapack -lblas
LGOMP = -lgomp
SOURCES=src/constants.f90\
src/todo.f90\
src/qpower2.f90\
src/quad.f90\
src/ftr.f90\
src/frv.f90\
src/bayesian.f90\
src/matrices.f90\
src/kernels.f90\
src/mcmc.f90\
src/multi-gp-routines.f90\
EXECUTABLE=pyaneti
all: $(EXECUTABLE)
%.mod: %.90
$(FC) -c $(SOURCES)
$(EXECUTABLE):$(SOURCES)
${FP} ${FLAGS} $(EXECUTABLE) $(SOURCES) --fcompiler=$(fc) ${BLIBS} --compiler=$(cc)
para: $(EXECUTABLE)
${FP} ${FLAGS_OMP} $(EXECUTABLE) $(SOURCES) --fcompiler=$(fc) ${BLIBS} ${LGOMP} --compiler=$(cc)
clean:
rm *.so src/*.mod src/*.o