1 ###################################################################
2 #INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh
3 INSTALL_DIR = /users/software/mpich2-1.4.1p1_intel
9 FFLAGS = -c ${OPT} -I$(INSTALL_DIR)/include
10 FFLAGS1 = -c -g -CA -CB -I$(INSTALL_DIR)/include
11 FFLAGS2 = -c -g -O0 -I$(INSTALL_DIR)/include
12 FFLAGSE = -c -O3 -ipo -opt_report -I$(INSTALL_DIR)/include
14 # -lmpl only necessary for mpich2-1.4.1p1_intel
15 LIBS = -L$(INSTALL_DIR)/lib -lmpich -lmpl
22 @echo "Specify force field: GAB, E0LL2Y, 4P or CASP3"
26 ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
29 object = unres_csa.o arcos.o cartprint.o chainbuild.o initialize_p.o \
30 matmult.o readrtns_csa.o parmread.o \
31 pinorm.o randgens.o rescode.o intcor.o timing.o misc.o intlocal.o \
32 cartder.o checkder_p.o econstr_local.o energy_p_new_barrier.o \
33 gradient_p.o minimize_p.o sumsld.o \
34 cored.o rmdd.o geomout_min.o readpdb.o \
36 MP.o printmat.o convert.o int_to_cart.o \
38 together.o csa.o minim_jlee.o shift.o diff12.o bank.o newconf.o ran.o \
39 indexx.o prng_32.o contact.o gen_rand_conf.o \
40 sc_move.o test.o local_move.o rmsd.o fitsq.o elecont.o djacob.o \
41 distfit.o banach.o TMscore_subroutine.o minim_mult.o refsys.o
45 GAB: CPPFLAGS = -DPROCOR -DLINUX -DPGI -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
46 -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
47 GAB: BIN = ../../../bin/unres/CSA/unres_csa_ifort_MPICH_GAB.exe
49 cc -o compinfo compinfo.c
51 ${FC} ${FFLAGS} cinfo.f
52 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
54 E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DPGI -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
56 E0LL2Y: BIN = ../../../bin/unres/CSA/unres_csa_ifort_MPICH_E0LL2Y.exe
58 cc -o compinfo compinfo.c
60 ${FC} ${FFLAGS} cinfo.f
61 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
63 CASP3: CPPFLAGS = -DLINUX -DPGI -DISNAN -DMP -DMPI -DUNRES \
64 -DSPLITELE -DAMD64 -DLANG0 -DMOMENT \
65 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DCRYST_TOR
66 CASP3: BIN = ../../../bin/unres/CSA/unres_csa_ifort_MPICH_CASP3.exe
68 cc -o compinfo compinfo.c
70 ${FC} ${FFLAGS} cinfo.f
71 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
73 4P: CPPFLAGS = -DLINUX -DPGI -DISNAN -DMP -DMPI -DUNRES \
74 -DSPLITELE -DAMD64 -DLANG0 \
75 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
76 4P: BIN = ../../../bin/unres/CSA/unres_csa_ifort_MPICH_4P.exe
78 cc -o compinfo compinfo.c
80 ${FC} ${FFLAGS} cinfo.f
81 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
84 /bin/rm -f *.o && /bin/rm -f compinfo
87 ${FC} ${FFLAGS} ${CPPFLAGS} test.F
89 chainbuild.o: chainbuild.F
90 ${FC} ${FFLAGS} ${CPPFLAGS} chainbuild.F
93 ${FC} ${FFLAGS} ${CPPFLAGS} matmult.f
95 parmread.o : parmread.F
96 ${FC} ${FFLAGS} ${CPPFLAGS} parmread.F
99 ${FC} ${FFLAGS} ${CPPFLAGS} intcor.f
101 cartder.o : cartder.F
102 ${FC} ${FFLAGS} ${CPPFLAGS} cartder.F
104 readpdb.o : readpdb.F
105 ${FC} ${FFLAGS2} ${CPPFLAGS} readpdb.F
108 ${FC} ${FFLAGS} ${CPPFLAGS} sumsld.f
111 ${FC} ${FFLAGS1} ${CPPFLAGS} cored.f
114 ${FC} ${FFLAGS} ${CPPFLAGS} rmdd.f
116 energy_p_new_barrier.o : energy_p_new_barrier.F
117 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new_barrier.F
119 gradient_p.o : gradient_p.F
120 ${FC} ${FFLAGSE} ${CPPFLAGS} gradient_p.F
122 energy_p_new-sep_barrier.o : energy_p_new-sep_barrier.F
123 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new-sep_barrier.F
125 lagrangian_lesyng.o : lagrangian_lesyng.F
126 ${FC} ${FFLAGSE} ${CPPFLAGS} lagrangian_lesyng.F
128 MD_A-MTS.o : MD_A-MTS.F
129 ${FC} ${FFLAGSE} ${CPPFLAGS} MD_A-MTS.F
132 ${FC} ${FFLAGS1} blas.f
135 ${FC} ${FFLAGS1} add.f
138 ${FC} ${FFLAGS2} eigen.f
140 proc_proc.o: proc_proc.c
141 ${CC} ${CFLAGS} proc_proc.c