Trying to bring files - continued
[unres.git] / source / xdrfpdb / src / Makefile_gfortran
1 # Set of programs to convert UNRES xdrf format (compressed Cartesian coordinates) to PDF
2 # or raw-Cartesian format (*.x) or to extract backbone angular coordinates (*.ang)
3 # The pdb files can be constructed from canonical or MREMD trajectories.
4 #
5 # The xdrf library is required
6 #
7 # Programs
8 #
9 # xdrf2pdb   : converts a single cx trajectory file to PDB format
10 # xdrf2x     : converts a single cx trajectory file to raw-coordinate (x) format
11 # xdrf2ang   : extracts backbone angles from a cx trajectory file
12 # xdrf2pdb-m : converts a selected trajectory of a MREMD run dumpend into a cx file to PDB format
13 #
14 # xdrf2pdb1  : converts conformation(s) selected from a wham post-processing run into PDB format
15 # xdrf2x1    : converts conformation(s) selected from a wham post-processing run into raw (x) format.
16 #
17 # 9/23/2010 A. Liwo
18
19 FC=gfortran
20
21 BINDIR = ../../../bin/xdrfpdb
22
23 #OPT =  -fast
24 OPT = 
25
26 FFLAGS = -c ${OPT} 
27
28 CPPFLAGS = -DNEWUNRES
29
30 M4      = m4
31 M4FILE  = underscore.m4
32
33 .SUFFIXES: .F
34 .F.o:
35         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
36 .c.o:
37         ${CC} -c  ${CPPFLAGS} $*.c
38
39 all:xdrf2pdb xdrf2pdb-m
40
41 xdrf2pdb: xdrf2pdb.o geomout.o misc.o rescode.o nazwy.o xdrf/libxdrf.a
42         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb xdrf2pdb.o geomout.o rescode.o misc.o nazwy.o xdrf/libxdrf.a
43
44 xdrf2pdb-m: xdrf2pdb-m.o geomout.o misc.o rescode.o nazwy.o xdrf/libxdrf.a
45         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb-m xdrf2pdb-m.o geomout.o rescode.o misc.o nazwy.o xdrf/libxdrf.a
46
47 xdrf2pdb1: xdrf2pdb1.o geomout.o misc.o rescode.o nazwy.o xdrf/libxdrf.a
48         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb1 xdrf2pdb1.o geomout.o rescode.o misc.o nazwy.o xdrf/libxdrf.a
49
50 xdrf2x: xdrf2x.o xdrf/libxdrf.a
51         ${FC} -o xdrf2x xdrf2x.o xdrf/libxdrf.a 
52
53 xdrf2x1: xdrf2x1.o xdrf/libxdrf.a
54         ${FC} -o xdrf2x1 xdrf2x1.o xdrf/libxdrf.a 
55
56 xdrf2ang: xdrf2ang.o misc.o rescode.o nazwy.o intcor.o arcos.o xdrf/libxdrf.a
57         ${FC} -Bstatic -o ${BINDIR}/xdrf2ang xdrf2ang.o rescode.o \
58         misc.o nazwy.o intcor.o arcos.o xdrf/libxdrf.a
59
60 xdrf/libxdrf.a:
61         cd xdrf && make
62
63 clean:
64         rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean