update
[unres.git] / source / unres / src_MIN / Makefile_gfortran_single
index 5701c47..39edc5e 100644 (file)
@@ -12,8 +12,8 @@ LIBS =
 ARCH = LINUX
 PP = /lib/cpp -P
 
-
-all: unres
+all: no_option
+       @echo "Specify force field: GAB, 4P or E0LL2Y"
 
 .SUFFIXES: .F.f
 .F.o:
@@ -30,9 +30,11 @@ object = unres_min.o arcos.o cartprint.o chainbuild.o initialize_p.o \
         cored.o rmdd.o geomout_min.o readpdb.o \
         intcartderiv.o \
         MP.o printmat.o convert.o int_to_cart.o \
-       djacob.o gen_rand_conf.o sc_move.o
+       djacob.o gen_rand_conf.o sc_move.o refsys.o
+
+no_option:
 
-GAB: CPPFLAGS = -DPROCOR -DLINUX -DUNRES -DISNAN \
+GAB: CPPFLAGS = -DPROCOR -DLINUX -DG77 -DUNRES -DISNAN \
        -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
 GAB: BIN = ../../../bin/unres/MINIM/unres_gfortran_MIN_single_GAB.exe
 GAB: ${object} 
@@ -41,7 +43,16 @@ GAB: ${object}
        ${FC} ${FFLAGS} cinfo.f
        ${FC} ${OPT} ${object} cinfo.o ${LIBS}  -o ${BIN}
 
-E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DUNRES -DISNAN \
+4P: CPPFLAGS = -DLINUX -DUNRES -DG77 -DISNAN \
+       -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
+4P: BIN = ../../../bin/unres/MINIM/unres_gfortran_MIN_single_4P.exe
+4P: ${object} 
+       cc -o compinfo compinfo.c
+       ./compinfo | true
+       ${FC} ${FFLAGS} cinfo.f
+       ${FC} ${OPT} ${object} cinfo.o ${LIBS}  -o ${BIN}
+
+E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DG77 -DUNRES -DISNAN \
        -DSPLITELE -DLANG0
 E0LL2Y: BIN = ../../../bin/unres/MINIM/unres_gfortran_MIN_single_E0LL2Y.exe
 E0LL2Y: ${object}