xdrf2pdb Adam's PBC correction
[unres.git] / source / xdrfpdb / src-M / 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
22
23 #OPT =  -fast
24 OPT = 
25
26 FFLAGS = -c ${OPT} 
27
28 CPPFLAGS = -DLINUX -DUNRES -DMP -DMPI -DSPLITELE -DPROCOR -DNEWUNRES
29
30 M4      = m4
31 M4FILE  = underscore.m4
32
33 .SUFFIXES: .F
34 .F.o:
35         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
36 .f.o:
37         ${FC} ${FFLAGS} ${CPPFLAGS} $*.f
38 .c.o:
39         ${CC} -c  ${CPPFLAGS} $*.c
40
41 xdrf2pdb: xdrf2pdb.o geomout.o misc.o rescode.o nazwy.o seq2chains.o xdrf/libxdrf.a
42         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb-mult xdrf2pdb.o geomout.o rescode.o misc.o nazwy.o seq2chains.o xdrf/libxdrf.a
43
44 xdrf2pdb-m: xdrf2pdb-m.o geomout.o misc.o rescode.o nazwy.o seq2chains.o xdrf/libxdrf.a
45         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb-m-mult xdrf2pdb-m.o geomout.o rescode.o misc.o nazwy.o seq2chains.o xdrf/libxdrf.a
46
47 xdrf2x: xdrf2x.o xdrf/libxdrf.a
48         ${FC} -o xdrf2x xdrf2x-mult.o xdrf/libxdrf.a
49
50 xdrf/libxdrf.a:
51         cd xdrf && make
52
53 clean:
54         rm -f *.o