-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.tom
73 lines (70 loc) · 2.92 KB
/
Makefile.tom
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FTN=mpiifort
CC=mpiicc
MPFTN=mpiifort
#FTN=mpif90
#CC=mpicc
#MPFTN=mpif90
FFLAGS=-no-wrap-margin -traceback -stand f18 #-warn all #-g
#FFLAGS=-Wall -std=f2008
INCLUDE=-Ilibyaml/include -I. -I/opt/intel/2019_up5/impi/2019.5.281/intel64/include -I/opt/intel/2019_up5/impi/2019.5.281/intel64/include/ -I../FMS_for_diag/FMS/fms2_io
CFLAGS=-g -traceback
#CFLAGS=-g
LIB=-L/home/Thomas.Robinson/diag_manager2/libyaml/libs_intel -L/opt/intel/2019_up5/impi/2019.5.281/intel64/lib
l=-lyaml
GFTN=gfortran
GCC=gcc
GINCLUDE=
GLIB=
fms_diag_manager_test.x: fms_diag_manager2.o fms_diag_register.o fms_diag_object.o fms_diag_table.F90 fms_diag_concur.o fms_diag_data.o fms_diag_parse.o fms_c_to_fortran.o fms_diag_send_data.o
# $(MPFTN) $(INCLUDE) $(LIB) $(FFLAGS) $(l) $^ test/diag_manager2/diag_manager_test1.F90 -o $@
# mpirun -n 6 ./$@ : -n 7 ./$@
# mpirun -n 6 ./$@
# mpirun -n 10 ./$@
# mpirun -n 5 ./$@ : -n 6 ./$@
# mpirun -n 10 ./$@ : -n 7 ./$@
# mpirun -n 6 ./$@ : -n 6 ./$@
# mpirun -n 6 ./$@ : -n 6 ./$@ : -n 3 ./$@ : -n 6 ./$@ : -n 1 ./$@
# rm $@
$(MPFTN) $(INCLUDE) $(LIB) $(FFLAGS) $(l) $(FFLAGS) $^ test/diag_manager2/diag_manager_test2.F90 -o $@
./$@
make clean
diag_table_test: diag_table_test.x
# make clean
./$<
make clean
parser_test: parser.x
# make clean
./$< diag_yaml
make clean
diag_table_test.x: fms_diag_parse.o fms_diag_table.o
$(FTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ test/diag_table_test.F90 -o $@
fms_diag_manager2.o:fms_diag_register.o fms_diag_object.o fms_diag_table.o fms_diag_data.o fms_diag_concur.o fms_diag_send_data.o
$(MPFTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_diag_manager2.F90 -c
fms_diag_send_data.o:fms_diag_object.o fms_diag_data.o fms_diag_concur.o
$(MPFTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_diag_send_data.F90 -c
fms_diag_register.o: fms_diag_object.o fms_diag_concur.o fms_diag_data.o
$(MPFTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_diag_register.F90 -c
fms_diag_table.o: fms_diag_parse.o fms_diag_data.o fms_c_to_fortran.o
$(FTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_diag_table.F90 -c
fms_diag_data.o:
$(FTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_diag_data.F90 -c
fms_diag_object.o: fms_diag_table.o fms_diag_data.o
$(MPFTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_diag_object.F90 -c
fms_diag_parse.o:
$(CC) $(INCLUDE) $(LIB) $(l) $(CFLAGS) $^ fms_diag_parse.c -c
fms_diag_concur.o: fms_diag_data.o
$(MPFTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_diag_concur.F90 -c
fms_c_to_fortran.o:
$(MPFTN) $(INCLUDE) $(LIB) $(l) $(FFLAGS) $^ fms_c_to_fortran.F90 -c
parser.x: fms_diag_parse.o
$(CC) $(INCLUDE) $(LIB) $(l) -dynamic $(CFLAGS) $^ parser.c -o $@
concur.x: fms_diag_concur.o fms_diag_data.o
$(MPFTN) $(FFLAGS) $^ test/concur/fms_diag_concur_test.F90 -o $@
mpirun -n 6 ./$@ : -n 7 ./$@
mpirun -n 6 ./$@
mpirun -n 5 ./$@ : -n 6 ./$@
mpirun -n 10 ./$@ : -n 7 ./$@
mpirun -n 6 ./$@ : -n 6 ./$@
mpirun -n 6 ./$@ : -n 6 ./$@ : -n 3 ./$@ : -n 6 ./$@ : -n 1 ./$@
clean:
rm -rf *.x *.o *.mod *.swo