1 ###################################################################
2 INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh
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
15 LIBS = -L$(INSTALL_DIR)/lib -lmpich
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
48 LIBS = -lpthread -L$(INSTALL_DIR)/lib -lmpich
50 cc -o compinfo compinfo.c
52 ${FC} ${FFLAGS} cinfo.f
53 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
55 E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DPGI -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
57 E0LL2Y: BIN = ../../../bin/unres/CSA/unres_csa_ifort_MPICH_E0LL2Y.exe
59 cc -o compinfo compinfo.c
61 ${FC} ${FFLAGS} cinfo.f
62 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
64 CASP3: CPPFLAGS = -DLINUX -DPGI -DISNAN -DMP -DMPI -DUNRES \
65 -DSPLITELE -DAMD64 -DLANG0 -DMOMENT \
66 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DCRYST_TOR
67 CASP3: BIN = ../../../bin/unres/CSA/unres_csa_ifort_MPICH_CASP3.exe
69 cc -o compinfo compinfo.c
71 ${FC} ${FFLAGS} cinfo.f
72 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
74 4P: CPPFLAGS = -DLINUX -DPGI -DISNAN -DMP -DMPI -DUNRES \
75 -DSPLITELE -DAMD64 -DLANG0 \
76 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
77 4P: BIN = ../../../bin/unres/CSA/unres_csa_ifort_MPICH_4P.exe
79 cc -o compinfo compinfo.c
81 ${FC} ${FFLAGS} cinfo.f
82 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
85 /bin/rm -f *.o && /bin/rm -f compinfo
88 ${FC} ${FFLAGS} ${CPPFLAGS} test.F
90 chainbuild.o: chainbuild.F
91 ${FC} ${FFLAGS} ${CPPFLAGS} chainbuild.F
94 ${FC} ${FFLAGS} ${CPPFLAGS} matmult.f
96 parmread.o : parmread.F
97 ${FC} ${FFLAGS} ${CPPFLAGS} parmread.F
100 ${FC} ${FFLAGS} ${CPPFLAGS} intcor.f
102 cartder.o : cartder.F
103 ${FC} ${FFLAGS} ${CPPFLAGS} cartder.F
105 readpdb.o : readpdb.F
106 ${FC} ${FFLAGS2} ${CPPFLAGS} readpdb.F
109 ${FC} ${FFLAGS} ${CPPFLAGS} sumsld.f
112 ${FC} ${FFLAGS1} ${CPPFLAGS} cored.f
115 ${FC} ${FFLAGS} ${CPPFLAGS} rmdd.f
117 energy_p_new_barrier.o : energy_p_new_barrier.F
118 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new_barrier.F
120 gradient_p.o : gradient_p.F
121 ${FC} ${FFLAGSE} ${CPPFLAGS} gradient_p.F
123 energy_p_new-sep_barrier.o : energy_p_new-sep_barrier.F
124 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new-sep_barrier.F
126 lagrangian_lesyng.o : lagrangian_lesyng.F
127 ${FC} ${FFLAGSE} ${CPPFLAGS} lagrangian_lesyng.F
129 MD_A-MTS.o : MD_A-MTS.F
130 ${FC} ${FFLAGSE} ${CPPFLAGS} MD_A-MTS.F
133 ${FC} ${FFLAGS1} blas.f
136 ${FC} ${FFLAGS1} add.f
139 ${FC} ${FFLAGS2} eigen.f
141 proc_proc.o: proc_proc.c
142 ${CC} ${CFLAGS} proc_proc.c