1 #################################################################################
3 OPT = -O4 -qarch=qp -qtune=qp -qnocr
4 #OPT = -O3 -qarch=qp -qtune=qp -qdebug=function_trace
5 #OPT = -O -qarch=qp -qtune=qp
6 #OPT = -O0 -C -g -qarch=qp -qtune=qp #-qdebug=function_trace
7 #-Minline=name:scalar2,scalar,transpose2,matvec2,prodmat3 \
8 #-Mprefetch=distance:8,nta
10 #OPT1 = -O -g -qarch=qp -qtune=qp
11 #OPT1 = -O -g -qarch=qp -qtune=qp -qdebug=function_trace
13 #OPT2 = -O2 -qarch=qp -qtune=qp
14 #OPT2 = -O2 -qarch=qp -qtune=qp -qdebug=function_trace
16 #OPTE = -O4 -qarch=qp -qtune=qp
17 #OPTE = -O4 -qarch=qp -qtune=qp
21 FFLAGS = -c ${OPT} -I$(INSTALL_DIR)/include
22 FFLAGS1 = -c ${OPT1} -I$(INSTALL_DIR)/include
23 FFLAGS2 = -c ${OPT2} -I$(INSTALL_DIR)/include
24 FFLAGSE = -c ${OPTE} -I$(INSTALL_DIR)/include
32 @echo "Specify force field: GAB, E0LL2Y, 4P or CASP3"
36 ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
39 object = unres_csa.o arcos.o cartprint.o chainbuild.o initialize_p.o \
40 matmult.o readrtns_csa.o parmread.o \
41 pinorm.o randgens.o rescode.o intcor.o timing.o misc.o intlocal.o \
42 cartder.o checkder_p.o econstr_local.o energy_p_new_barrier.o \
43 gradient_p.o minimize_p.o sumsld.o \
44 cored.o rmdd.o geomout_min.o readpdb.o \
46 MP.o printmat.o convert.o int_to_cart.o \
48 together.o csa.o minim_jlee.o shift.o diff12.o bank.o newconf.o ran.o \
49 indexx.o prng_32.o contact.o gen_rand_conf.o \
50 sc_move.o test.o local_move.o rmsd.o fitsq.o elecont.o djacob.o \
51 distfit.o banach.o TMscore_subroutine.o minim_mult.o refsys.o gnmr1.o
55 GAB: CPPFLAGS = -DPROCOR -DLINUX -DPGI -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
56 -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
57 GAB: BIN = ../../../bin/unres/CSA/unres_csa_xlf77_MPICH_GAB.exe
58 LIBS = -lpthread -L$(INSTALL_DIR)/lib -lmpich
60 cc -o compinfo compinfo.c
62 ${FC} ${FFLAGS} cinfo.f
63 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
65 E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DPGI -DAMD64 -DUNRES -DISNAN -DMP -DMPI \
67 E0LL2Y: BIN = ../../../bin/unres/CSA/unres_csa_xlf77_MPICH_E0LL2Y.exe
69 cc -o compinfo compinfo.c
71 ${FC} ${FFLAGS} cinfo.f
72 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
74 CASP3: CPPFLAGS = -DLINUX -DPGI -DISNAN -DMP -DMPI -DUNRES \
75 -DSPLITELE -DAMD64 -DLANG0 -DMOMENT \
76 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DCRYST_TOR
77 CASP3: BIN = ../../../bin/unres/CSA/unres_csa_xlf77_MPICH_CASP3.exe
79 cc -o compinfo compinfo.c
81 ${FC} ${FFLAGS} cinfo.f
82 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
84 4P: CPPFLAGS = -DLINUX -DPGI -DISNAN -DMP -DMPI -DUNRES \
85 -DSPLITELE -DAMD64 -DLANG0 \
86 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
87 4P: BIN = ../../../bin/unres/CSA/unres_csa_xlf77_MPICH_4P.exe
89 cc -o compinfo compinfo.c
91 ${FC} ${FFLAGS} cinfo.f
92 ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
95 /bin/rm -f *.o && /bin/rm -f compinfo
98 ${FC} ${FFLAGS} ${CPPFLAGS} test.F
100 chainbuild.o: chainbuild.F
101 ${FC} ${FFLAGS} ${CPPFLAGS} chainbuild.F
104 ${FC} ${FFLAGS} ${CPPFLAGS} matmult.f
106 parmread.o : parmread.F
107 ${FC} ${FFLAGS} ${CPPFLAGS} parmread.F
110 ${FC} ${FFLAGS} ${CPPFLAGS} intcor.f
112 cartder.o : cartder.F
113 ${FC} ${FFLAGS} ${CPPFLAGS} cartder.F
115 readpdb.o : readpdb.F
116 ${FC} ${FFLAGS2} ${CPPFLAGS} readpdb.F
119 ${FC} ${FFLAGS} ${CPPFLAGS} sumsld.f
122 ${FC} ${FFLAGS1} ${CPPFLAGS} cored.f
125 ${FC} ${FFLAGS} ${CPPFLAGS} rmdd.f
127 energy_p_new_barrier.o : energy_p_new_barrier.F
128 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new_barrier.F
130 gradient_p.o : gradient_p.F
131 ${FC} ${FFLAGSE} ${CPPFLAGS} gradient_p.F
133 energy_p_new-sep_barrier.o : energy_p_new-sep_barrier.F
134 ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new-sep_barrier.F
136 lagrangian_lesyng.o : lagrangian_lesyng.F
137 ${FC} ${FFLAGSE} ${CPPFLAGS} lagrangian_lesyng.F
139 MD_A-MTS.o : MD_A-MTS.F
140 ${FC} ${FFLAGSE} ${CPPFLAGS} MD_A-MTS.F
143 ${FC} ${FFLAGS1} blas.f
146 ${FC} ${FFLAGS1} add.f
149 ${FC} ${FFLAGS2} eigen.f
151 proc_proc.o: proc_proc.c
152 ${CC} ${CFLAGS} proc_proc.c