Cluster/unres modified to read MD coordinates in CX format, also from multiple files.
[unres.git] / source / cluster / unres / src / Makefile_ifort
index 19e93e8..595c461 100644 (file)
@@ -1,16 +1,18 @@
 BIN=/home/adam/UNRES/bin
 INSTALL_DIR = /usr/local/mpich-1.2.7p1-intel
-FC= ifort
-OPT = -O3 -ip -w 
-FFLAGS =  ${OPT} -I. 
-CPPFLAGS = -DLINUX
+#FC= ifort
+#OPT = -O3 -ip -w 
+#OPT = -g -CB
+#FFLAGS =  ${OPT} -I. 
+#CPPFLAGS = -DLINUX -DNEWUNRES
 
 # Next for debugging
-#FC = f77
+FC = gfortran
 #OPT = -g -fbounds-check
-#CPPFLAGS = -DLINUX -DG77
+OPT = -O3
+CPPFLAGS = -DLINUX -DG77 -DNEWUNRES
 
-LIBS = 
+LIBS = xdrf/libxdrf.a
 
 .SUFFIXES: .F
 .F.o:
@@ -18,16 +20,19 @@ LIBS =
 .f.o:
        $(FC) -c $(CPPFLAGS) $(FFLAGS) $<
 
-objects = main_clust.o arcos.o cartprint.o chainbuild.o convert.o initialize.o \
+objects = main_clust.o arcos.o cartprint.o chainbuild.o convert.o initialize.o cxread.o \
        matmult.o readrtns.o pinorm.o rescode.o intcor.o timing.o misc.o \
        geomout.o readpdb.o fitsq.o hc.o  \
        track.o wrtclust.o srtclust.o noyes.o contact.o
 
-unres_clust: $(objects)
+unres_clust: $(objects) xdrf/libxdrf.a
        cc -o compinfo compinfo.c
        ./compinfo | true
        ${FC} -c cinfo.f
-       $(FC) ${OPT} ${objects} cinfo.o ${LIBS} -o ../../../../bin/cluster/unres_clust-ifort.exe
+       $(FC) ${OPT} ${objects} cinfo.o ${LIBS} -o ../../../../bin/cluster/unres_clust-ifort-test.exe
+
+xdrf/libxdrf.a:
+       cd xdrf && make
 
 clean:
        /bin/rm *.o