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_CSA.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 permut.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 together.o csa.o minim_jlee.o shift.o diff12.o bank.o newconf.o ran.o \
36 indexx.o MP.o compare_s1.o prng_32.o \
37 test.o banach.o distfit.o rmsd.o elecont.o dihed_cons.o \
38 sc_move.o local_move.o \
39 intcartderiv.o lagrangian_lesyng.o\
40 stochfric.o kinetic_lesyng.o MD_A-MTS.o moments.o int_to_cart.o \
41 surfatom.o sort.o muca_md.o MREMD.o rattle.o gauss.o energy_split-sep.o \
42 q_measure.o gnmr1.o ssMD.o
46 GAB: CPPFLAGS = -DPROCOR -DLINUX -DG77 -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
47 -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
48 GAB: BIN = ../../../bin/unres/MD/unres-D-symetr_gfort_MPICH_GAB.exe
49 GAB: ${object} xdrf/libxdrf.a
50 cc -o compinfo compinfo.c
52 ${FC} ${FFLAGS} cinfo.f
53 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
55 4P: CPPFLAGS = -DLINUX -DG77 -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
56 -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
57 4P: BIN = ../../../bin/unres/MD/unres-mult-symetr_gfort_MPICH_4P.exe
58 4P: ${object} xdrf/libxdrf.a
59 cc -o compinfo compinfo.c
61 ${FC} ${FFLAGS} cinfo.f
62 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
64 E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DG77 -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
66 E0LL2Y: BIN = ../../../bin/unres/MD/unres-mult-symetr_gfort_MPICH_E0LL2Y.exe
67 E0LL2Y: ${object} xdrf/libxdrf.a
68 cc -o compinfo compinfo.c
70 ${FC} ${FFLAGS} cinfo.f
71 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
78 /bin/rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean
81 ${FC} ${FFLAGS} ${CPPFLAGS} test.F
83 chainbuild.o: chainbuild.F
84 ${FC} ${FFLAGS} ${CPPFLAGS} chainbuild.F
87 ${FC} ${FFLAGS} ${CPPFLAGS} matmult.f
89 parmread.o : parmread.F
90 ${FC} ${FFLAGS} ${CPPFLAGS} parmread.F
93 ${FC} ${FFLAGS} ${CPPFLAGS} intcor.f
96 ${FC} ${FFLAGS} ${CPPFLAGS} cartder.F
99 ${FC} ${FFLAGS2} ${CPPFLAGS} readpdb.F
102 ${FC} ${FFLAGS} ${CPPFLAGS} sumsld.f
105 ${FC} ${FFLAGS1} ${CPPFLAGS} cored.f
108 ${FC} ${FFLAGS} ${CPPFLAGS} rmdd.f
110 energy_p_new_barrier.o : energy_p_new_barrier.F
111 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new_barrier.F
113 gradient_p.o : gradient_p.F
114 ${FC} ${FFLAGSE} ${CPPFLAGS} gradient_p.F
116 energy_p_new-sep_barrier.o : energy_p_new-sep_barrier.F
117 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new-sep_barrier.F
119 lagrangian_lesyng.o : lagrangian_lesyng.F
120 ${FC} ${FFLAGSE} ${CPPFLAGS} lagrangian_lesyng.F
122 MD_A-MTS.o : MD_A-MTS.F
123 ${FC} ${FFLAGSE} ${CPPFLAGS} MD_A-MTS.F
126 ${FC} ${FFLAGS1} blas.f
129 ${FC} ${FFLAGS1} add.f
132 ${FC} ${FFLAGS2} eigen.f
134 proc_proc.o: proc_proc.c
135 ${CC} ${CFLAGS} proc_proc.c