-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (29 loc) · 1.07 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
#F90=mpif90 -warn all -std08 #-openmp
F90=gfortran6 -std=f2008 -Wall -pedantic -march=native -funroll-loops -O0 -finline-limit=60 -fbacktrace -ffpe-trap=underflow,overflow,denormal -fbounds-check
F90OPT=
AFNLPATH=/home/alberto/code/fortran/afnl/
GAPATH=/home/alberto/code/fortran/libga/
AFNLNAME=f90
GANAME=ga
VPATH=src:main
SRCDIR=$(VPATH)
INC=include/
OBJ = uncertainties.o uncertainties_arith.o uncertainties_func.o
all: $(OBJ) check1.x check2.x check3.x
uncertainties.o: uncertainties.f90
$(F90) -J $(INC) -c $^ -o $(INC)/$@ -I$(INC)
uncertainties_arith.o: uncertainties_arith.f90
$(F90) -J $(INC) -c $^ -o $(INC)/$@ -I$(INC)
uncertainties_func.o: uncertainties_func.f90
$(F90) -J $(INC) -c $^ -o $(INC)/$@ -I$(INC)
check1.x: check1.f90 $(OBJ)
$(F90) -J $(INC) $(addprefix $(INC),$(OBJ)) $< -o $@ -I$(INC)
check2.x: check2.f90 $(OBJ)
$(F90) -J $(INC) $(addprefix $(INC),$(OBJ)) $< -o $@ -I$(INC)
check3.x: check3.f90 $(OBJ)
$(F90) -J $(INC) $(addprefix $(INC),$(OBJ)) $< -o $@ -I$(INC)
clean:
rm $(INC)/*.o
rm $(INC)/*.mod
rm $(INC)/*.smod
rm check1.x check2.x