1 ###################################################################
2 INSTALL_DIR = /users/software/mpich2-1.0.7
8 FFLAGS = -c ${OPT} -I$(INSTALL_DIR)/include
9 FFLAGS1 = -c -I$(INSTALL_DIR)/include
10 FFLAGS2 = -c -O0 -I$(INSTALL_DIR)/include
11 FFLAGS3 = -c -O -I$(INSTALL_DIR)/include
12 FFLAGSE = -c -O3 -I$(INSTALL_DIR)/include
14 LIBS = -L$(INSTALL_DIR)/lib -lmpich -lpthread xdrf/libxdrf.a
20 @echo "Specify force field: GAB, 4P or E0LL2Y"
24 ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
27 object = unres.o arcos.o cartprint.o chainbuild.o convert.o initialize_p.o \
28 matmult.o readrtns.o parmread.o gen_rand_conf.o printmat.o map.o \
29 pinorm.o randgens.o rescode.o intcor.o timing.o misc.o intlocal.o \
30 cartder.o checkder_p.o econstr_local.o energy_p_new_barrier.o \
31 energy_p_new-sep_barrier.o gradient_p.o minimize_p.o sumsld.o \
32 cored.o rmdd.o geomout.o readpdb.o regularize.o thread.o fitsq.o mcm.o \
33 mc.o bond_move.o refsys.o check_sc_distr.o check_bond.o contact.o djacob.o \
34 eigen.o blas.o add.o entmcm.o minim_mcmf.o \
35 MP.o compare_s1.o prng_32.o \
36 banach.o rmsd.o elecont.o dihed_cons.o \
37 sc_move.o local_move.o \
38 intcartderiv.o lagrangian_lesyng.o\
39 stochfric.o kinetic_lesyng.o MD_A-MTS.o moments.o int_to_cart.o \
40 surfatom.o sort.o muca_md.o MREMD.o rattle.o gauss.o energy_split-sep.o \
41 q_measure.o gnmr1.o test.o ssMD.o
45 GAB: CPPFLAGS = -DPROCOR -DLINUX -DG77 -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
46 -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
47 GAB: BIN = ../../../bin/unres/MD/unres_gfort_MPICH_GAB.exe
48 GAB: ${object} xdrf/libxdrf.a
49 cc -o compinfo compinfo.c
51 ${FC} ${FFLAGS} cinfo.f
52 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
54 4P: CPPFLAGS = -DLINUX -DG77 -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
55 -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
56 4P: BIN = ../../../bin/unres/MD/unres_gfort_MPICH_4P.exe
57 4P: ${object} xdrf/libxdrf.a
58 cc -o compinfo compinfo.c
60 ${FC} ${FFLAGS} cinfo.f
61 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
63 E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DG77 -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
65 E0LL2Y: BIN = ../../../bin/unres/MD/unres_gfort_MPICH_E0LL2Y.exe
66 E0LL2Y: ${object} xdrf/libxdrf.a
67 cc -o compinfo compinfo.c
69 ${FC} ${FFLAGS} cinfo.f
70 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
77 /bin/rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean
80 ${FC} ${FFLAGS} ${CPPFLAGS} test.F
82 chainbuild.o: chainbuild.F
83 ${FC} ${FFLAGS} ${CPPFLAGS} chainbuild.F
86 ${FC} ${FFLAGS} ${CPPFLAGS} matmult.f
88 parmread.o : parmread.F
89 ${FC} ${FFLAGS} ${CPPFLAGS} parmread.F
92 ${FC} ${FFLAGS} ${CPPFLAGS} intcor.f
95 ${FC} ${FFLAGS} ${CPPFLAGS} cartder.F
98 ${FC} ${FFLAGS2} ${CPPFLAGS} readpdb.F
101 ${FC} ${FFLAGS} ${CPPFLAGS} sumsld.f
104 ${FC} ${FFLAGS1} ${CPPFLAGS} cored.f
107 ${FC} ${FFLAGS} ${CPPFLAGS} rmdd.f
109 energy_p_new_barrier.o : energy_p_new_barrier.F
110 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new_barrier.F
112 gradient_p.o : gradient_p.F
113 ${FC} ${FFLAGSE} ${CPPFLAGS} gradient_p.F
115 energy_p_new-sep_barrier.o : energy_p_new-sep_barrier.F
116 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new-sep_barrier.F
118 lagrangian_lesyng.o : lagrangian_lesyng.F
119 ${FC} ${FFLAGSE} ${CPPFLAGS} lagrangian_lesyng.F
121 MD_A-MTS.o : MD_A-MTS.F
122 ${FC} ${FFLAGSE} ${CPPFLAGS} MD_A-MTS.F
125 ${FC} ${FFLAGS1} blas.f
128 ${FC} ${FFLAGS1} add.f
131 ${FC} ${FFLAGS2} eigen.f
133 proc_proc.o: proc_proc.c
134 ${CC} ${CFLAGS} proc_proc.c