-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (53 loc) · 1.79 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
NAME1 = PIMD_Water
NAME2 = PIMD_Water_qTIP4Pf
all: modules ${NAME1} ${NAME2}
FC = gfortran
OFLAGS = -O2
DFLAGS = #-pg -fcheck='all' #-Wall -Wextra -g -pedantic-errors -Wsurprising -Wunderflow -Wintrinsic-shadow -fbacktrace -fimplicit-none
OMPFLAGS = -fopenmp
#LFLAGS =
MDOFILES = SPCF.o \
qTIP4Pf.o \
MD_precision_module.o \
MD_constants_module.o \
MD_State.o \
MolecularDynamics.o
${NAME1} : ${MDOFILES} PIMD_Water.o
${FC} ${OFLAGS} ${OMPFLAGS} -o PIMD_Water.x ${DFLAGS} PIMD_Water.o ${MDOFILES}
${NAME2} : ${MDOFILES} PIMD_Water_qTIP4Pf.o
${FC} ${OFLAGS} ${OMPFLAGS} -o PIMD_Water_qTIP4Pf.x ${DFLAGS} PIMD_Water_qTIP4Pf.o ${MDOFILES}
MolecularDynamics.o: MolecularDynamics.f90 \
MD_State.o
${FC} -c ${OFLAGS} ${DFLAGS} ${OMPFLAGS} $<
SPCF.o: SPCF.f90
${FC} -c ${OFLAGS} ${DFLAGS} ${OMPFLAGS} $<
qTIP4Pf.o: qTIP4Pf.f90
${FC} -c ${OFLAGS} ${DFLAGS} ${OMPFLAGS} $<
MD_State.o: MD_State.f90 \
MD_precision_module.o \
MD_constants_module.o
${FC} -c ${OFLAGS} ${DFLAGS} ${OMPFLAGS} $<
PIMD_Water.o: PIMD_Water.f90 \
SPCF.o \
MolecularDynamics.o \
MD_State.o
${FC} -c ${OFLAGS} ${DFLAGS} ${OMPFLAGS} $<
PIMD_Water_qTIP4Pf.o: PIMD_Water_qTIP4Pf.f90 \
qTIP4Pf.o \
MolecularDynamics.o \
MD_State.o
${FC} -c ${OFLAGS} ${DFLAGS} ${OMPFLAGS} $<
MD_precision_module.o: MD_precision_module.f90
${FC} -c ${OFLAGS} ${DFLAGS} $<
MD_constants_module.o: MD_constants_module.f90 \
MD_precision_module.o
${FC} -c ${OFLAGS} ${DFLAGS} $<
MODULE_DIRS = MD_State_dir \
MolecularDynamics_dir \
.PHONY: module_dirs ${MODULE_DIRS}
modules:
for dir in ${MODULE_DIRS}; do \
$(MAKE) -s -C $$dir; \
done
clean:
rm *.o *.mod