Merge branch 'prerelease-3.2.1' into czarek
[unres.git] / source / unres / src_MIN / Makefile_gfortran_single
index 5701c47..4451733 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:
@@ -32,6 +32,8 @@ object = unres_min.o arcos.o cartprint.o chainbuild.o initialize_p.o \
         MP.o printmat.o convert.o int_to_cart.o \
        djacob.o gen_rand_conf.o sc_move.o
 
+no_option:
+
 GAB: CPPFLAGS = -DPROCOR -DLINUX -DUNRES -DISNAN \
        -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
 GAB: BIN = ../../../bin/unres/MINIM/unres_gfortran_MIN_single_GAB.exe
@@ -41,6 +43,15 @@ GAB: ${object}
        ${FC} ${FFLAGS} cinfo.f
        ${FC} ${OPT} ${object} cinfo.o ${LIBS}  -o ${BIN}
 
+4P: CPPFLAGS = -DLINUX -DUNRES -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 -DUNRES -DISNAN \
        -DSPLITELE -DLANG0
 E0LL2Y: BIN = ../../../bin/unres/MINIM/unres_gfortran_MIN_single_E0LL2Y.exe