added source code
[unres.git] / source / xdrfpdb / src / Makefile
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 .c.o:
37         ${CC} -c  ${CPPFLAGS} $*.c
38
39 xdrf2pdb: xdrf2pdb.o geomout.o misc.o rescode.o nazwy.o xdrf/libxdrf.a
40         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb xdrf2pdb.o geomout.o rescode.o misc.o nazwy.o xdrf/libxdrf.a
41
42 xdrf2pdb-m: xdrf2pdb-m.o geomout.o misc.o rescode.o nazwy.o xdrf/libxdrf.a
43         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb-m xdrf2pdb-m.o geomout.o rescode.o misc.o nazwy.o xdrf/libxdrf.a
44
45 xdrf2pdb1: xdrf2pdb1.o geomout.o misc.o rescode.o nazwy.o xdrf/libxdrf.a
46         ${FC} -Bstatic -o ${BINDIR}/xdrf2pdb1 xdrf2pdb1.o geomout.o rescode.o misc.o nazwy.o xdrf/libxdrf.a
47
48 xdrf2x: xdrf2x.o xdrf/libxdrf.a
49         ${FC} -o xdrf2x xdrf2x.o xdrf/libxdrf.a 
50
51 xdrf2x1: xdrf2x1.o xdrf/libxdrf.a
52         ${FC} -o xdrf2x1 xdrf2x1.o xdrf/libxdrf.a 
53
54 xdrf2ang: xdrf2ang.o misc.o rescode.o nazwy.o intcor.o arcos.o xdrf/libxdrf.a
55         ${FC} -Bstatic -o ${BINDIR}/xdrf2ang xdrf2ang.o rescode.o \
56         misc.o nazwy.o intcor.o arcos.o xdrf/libxdrf.a
57
58 clean:
59         rm -f *.o