FC = ftn OPT = -O3 -hfp3 #OPT = -g -Rb FFLAGS = ${OPT} -c -I. -Iinclude_unres LIBS = xdrf/libxdrf.a .c.o: cc -c -DLINUX -DPGI $*.c .f.o: ${FC} ${FFLAGS} $*.f .F.o: ${FC} ${FFLAGS} ${CPPFLAGS} ${FFLAGS} $*.F object = main_clust.o arcos.o cartprint.o chainbuild.o convert.o initialize_p.o \ matmult.o readrtns.o pinorm.o rescode.o intcor.o timing.o misc.o \ geomout.o readpdb.o read_coords.o parmread.o probabl.o fitsq.o hc.o \ track.o wrtclust.o srtclust.o noyes.o contact.o printmat.o \ int_from_cart1.o energy_p_new.o icant.o proc_proc.o work_partition.o \ setup_var.o read_ref_str.o gnmr1.o permut.o ssMD.o all: no_option @echo "Specify force field: GAB, 4P or E0LL2Y" no_option: GAB: CPPFLAGS = -DPROCOR -DCRAY -DAMD64 -DUNRES -DISNAN -DMP -DMPI \ -DCLUST -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC GAB: BIN = ~/bin/unres_clustMD-mult_ifort_MPICH_GAB.exe GAB: ${object} xdrf/libxdrf.a cc -o compinfo compinfo.c ./compinfo | true ${FC} ${FFLAGS} cinfo.f $(FC) ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN} 4P: CPPFLAGS = -DCRAY -DAMD64 -DUNRES -DISNAN -DMP -DMPI \ -DCLUST -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC 4P: BIN = ~/bin/unres_clustMD_MPI_4P.exe 4P: ${object} xdrf/libxdrf.a cc -o compinfo compinfo.c ./compinfo | true ${FC} ${FFLAGS} cinfo.f $(FC) ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN} E0LL2Y: CPPFLAGS = -DCRAY -DAMD64 -DUNRES -DISNAN -DMP -DMPI -DPROCOR \ -DCLUST -DSPLITELE -DLANG0 E0LL2Y: BIN = ~/bin/unres_clustMD-mult_MPI_E0LL2Y.exe E0LL2Y: ${object} xdrf/libxdrf.a cc -o compinfo compinfo.c ./compinfo | true ${FC} ${FFLAGS} cinfo.f $(FC) ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN} NEWCORR: CPPFLAGS = -DCRAY -DAMD64 -DUNRES -DISNAN -DMP -DMPI -DPROCOR \ -DCLUST -DSPLITELE -DLANG0 -DNEWCORR NEWCORR: BIN = ~/bin/unres_clustMD-mult_MPI_NEWCORR.exe NEWCORR: ${object} xdrf/libxdrf.a cc -o compinfo compinfo.c ./compinfo | true ${FC} ${FFLAGS} cinfo.f $(FC) ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN} xdrf/libxdrf.a: cd xdrf && make clean: /bin/rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean