update new files
[unres.git] / source / maxlik / src_FPy.org / Makefile
1 #INSTALL_DIR = /opt/cray/mpt/7.3.2/gni/mpich-intel/15.0
2 #INSTALL_DIR = /opt/cray/mpt/7.3.2/gni/mpich-gnu/5.1
3 BIN = ~/bin/
4 CC = cc
5 #FC = /opt/cray/craype/2.5.3/bin/ftn
6 FC = ftn
7 #FC = /opt/intel/bin/ifort
8 #OPT = -mcmodel=medium -shared-intel -dynamic -g -CA -CB -fpic
9 OPT = -mcmodel=medium -g -fbounds-check -fPIC -fno-second-underscore
10 #OPT = -mcmodel=medium -O3 -fPIC -fno-second-underscore
11 OPT1 = ${OPT}
12 OPT2 = ${OPT}
13 CFLAGS = -c
14 FFLAGS = ${OPT} -c -I. -I./include_unres 
15 FFLAGS1 = ${OPT1} -c -I. -I./include_unres 
16 FFLAGS2 = ${OPT2} -c -I. -I./include_unres 
17 LIBS = xdrf/libxdrf.a
18 CPPFLAGS = -DMPI -DLINUX -DISNAN -DPROCOR -DSPLITELE -DPGI -DWEIDIST -DNEWCORR #-DCHECKGRAD # -DOUT_PTAB -DOUT_LIK -DZCHECK
19
20 .f.o:
21         ${FC} ${FFLAGS} -I. -Iinclude_unres $*.f
22
23 .F.o:
24         ${FC} ${FFLAGS} -I. -Iinclude_unres ${CPPFLAGS} $*.F
25
26 all: maxlik
27
28 objects = \
29         amebsa.o \
30         amotsa.o \
31         arcos.o \
32         averages_sc.o \
33         bilans.o \
34         cartder.o \
35         cartprint.o \
36         chainbuild.o \
37         convert.o \
38         cored.o \
39         cutoff_violation.o \
40         energy_p_new_sc.o \
41         func1_sc.o \
42         geomout.o \
43         gnmr1.o \
44         icant.o \
45         initialize_p.o \
46         intcor.o \
47         int_from_cart1.o \
48         make_list_sc.o \
49         matmult.o \
50         minimize.o \
51         misc.o \
52         mygetenv.o \
53         molread_zs.o \
54         openunits.o \
55         parmread.o \
56         pinorm.o \
57         printmat.o \
58         proc.o \
59         ran1.o \
60         randgens.o \
61         random.o \
62         readrtns_MP.o \
63         refsys.o \
64         rescode.o \
65         restart.o \
66         rmdd.o \
67         scan.o \
68         setup_var.o \
69         sumsl_a.o \
70         sumsld.o \
71         thermal.o \
72         timing.o \
73         maxlikopt.o \
74         w2x_eps.o 
75
76 objects_compar = \
77         fitsq.o \
78         lmysort.o \
79         q_measure1.o \
80         q_measure_self.o \
81         readpdb.o \
82         readrtns_compar.o \
83         rmscalc.o
84
85 maxlik: main_opt.o zscorez.o ${objects} ${objects_compar}
86         cc -o compinfo compinfo.c
87         ./compinfo
88         ${FC} -c ${FFLAGS} cinfo.f
89         $(FC) ${OPT} main_opt.o zscorez.o ${objects} ${objects_compar} cinfo.o ${LIBS} \
90          -o ${BIN}/zscorezMD_maxlik-ifort-NEWCORR.exe
91
92 zscorez.so: zscorez.F ${objects} ${objects_compar} xdrf/libxdrf.a
93         ${CC} -o compinfo compinfo.c
94         ./compinfo
95         ${FC} -c ${FFLAGS} cinfo.f
96         f2py -c -DMPI -DISNAN -DPYTHON -I. -I/opt/cray/mpt/7.3.2/gni/mpich-gnu/5.1/include --f90exec=${FC} -m zscorez zscorez.F ${objects} ${objects_compar} cinfo.o xdrf/libxdrf.a 
97
98 main_opt.o: main_opt.F
99         ${FC} ${FFLAGS} main_opt.F
100
101 zscorez.o: zscorez.F
102         ${FC} ${FFLAGS} ${CPPFLAGS} zscorez.F
103
104 sumsld.o: sumsld.f
105         ${FC} ${FFLAGS1} sumsld.f
106
107 sumsl_a.o: sumsl_a.f
108         ${FC} ${FFLAGS1} sumsl_a.f
109
110 cored.o: cored.f
111         ${FC} ${FFLAGS1} cored.f
112
113 rmdd.o: rmdd.f
114         ${FC} ${FFLAGS1} rmdd.f
115
116 energy_p_new_sc.o: energy_p_new_sc.F
117         ${FC} -I. -Iinclude_unres ${FFLAGS2} ${CPPFLAGS} energy_p_new_sc.F
118
119 q_measure1.o: q_measure1.F
120         ${FC} -I. -Iinclude_unres ${FFLAGS2} ${CPPFLAGS} q_measure1.F
121
122 q_measure_self.o: q_measure_self.F
123         ${FC} -I. -Iinclude_unres ${FFLAGS2} ${CPPFLAGS} q_measure_self.F
124
125 averages.o: averages.F
126         ${FC} -I. -Iinclude_unres ${FFLAGS2} ${CPPFLAGS} averages.F
127
128 fitsq.o: fitsq.f
129         ${FC} ${FFLAGS2} fitsq.f
130
131 isnan.o: isnan.f
132         ${FC} -Kieee -c isnan.f
133
134 clean:
135         /bin/rm *.o