-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·55 lines (44 loc) · 1.14 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
46
47
48
49
50
51
52
53
54
55
include shared/install/make.inc.${GYROEP_PLATFORM}
ifeq ($(OPT),debug)
FFLAGS=${FDEBUG}
else
FFLAGS=${FOPT}
endif
FC += ${FOMP}
ifeq ($(ACC),true)
FC += ${FACC}
endif
#ifeq ($(HDF5),true)
HDF5LIBS = \
${GYROEP_ROOT}/shared/vshdf5/vshdf5_lib.a \
${HDF5_LIBS}
#endif
EXEC=gyro
export EXTRA_LIBS = \
${GYROEP_ROOT}/shared/EXPRO/EXPRO_lib.a \
${GYROEP_ROOT}/shared/math/math_lib.a \
${GYROEP_ROOT}/shared/GEO/GEO_lib.a \
${GYROEP_ROOT}/shared/UMFPACK/UMFPACK_lib.a \
${GYROEP_ROOT}/BLEND/BLEND_lib.a \
${GYROEP_ROOT}/TRANSPOSE/TRANSP_lib.a \
${GYROEP_ROOT}/SSUB/SSUB_lib.a \
${GYROEP_ROOT}/GKEIGEN/GKEIGEN_lib.a \
${HDF5LIBS} ${LMATH} ${LIPM}
all:
cd ${GYROEP_ROOT}/shared ; make
cd BLEND ; make
cd TRANSPOSE ; make
cd SSUB ; make
cd src ; make
cd GKEIGEN ; make
cd src ; $(FC) $(FFLAGS) -o $(EXEC) $(EXEC).o gyro_lib.a ${EXTRA_LIBS} ${FPETSC}
clean:
cd shared ; make clean
cd BLEND ; make clean
cd TRANSPOSE ; make clean
cd SSUB ; make clean
cd src ; make clean
cd GKEIGEN ; make clean
cd modules ; rm *.mod ; rm *.f90
cd src ; rm -f $(EXEC) .VERSION
.IGNORE: