Adam's changes
[unres.git] / source / wham / src-M-SAXS.safe / Makefile-okeanos
1 #
2 FC= ftn
3 OPT =  -O3 -hfp3
4
5 FFLAGS = -c ${OPT} -I. -Iinclude_unres
6 FFLAGS1 = -c  -g -Rb
7 FFLAGS2 = -c  -g -O0
8 FFLAGSE = ${FFLAGS}
9
10 BIN = ~/bin
11 LIBS = xdrf/libxdrf.a
12
13 .f.o:
14         ${FC} ${FFLAGS} $*.f
15
16 .F.o:
17         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
18
19 objects = \
20         wham_multparm.o \
21         bxread.o \
22         xread.o \
23         cxread.o \
24         enecalc1.o \
25         energy_p_new.o \
26         gnmr1.o \
27         initialize_p.o \
28         molread_zs.o \
29         openunits.o \
30         readrtns.o \
31         arcos.o \
32         cartder.o \
33         cartprint.o \
34         chainbuild.o \
35         geomout.o \
36         icant.o \
37         intcor.o \
38         int_from_cart.o \
39         make_ensemble1.o \
40         matmult.o \
41         misc.o \
42         mygetenv.o \
43         parmread.o \
44         permut.o \
45         pinorm.o \
46         printmat.o \
47         rescode.o \
48         setup_var.o \
49         slices.o \
50         store_parm.o \
51         timing.o \
52         wham_calc1.o \
53         ssMD.o
54
55 objects_compar = \
56         readrtns_compar.o \
57         readpdb.o fitsq.o contact.o \
58         elecont.o contfunc.o cont_frag.o conf_compar.o match_contact.o \
59         angnorm.o odlodc.o promienie.o qwolynes.o read_ref_str.o \
60         rmscalc.o secondary.o proc_cont.o define_pairs.o mysort.o
61
62 all: no_option
63         @echo "Specify force field: GAB, 4P or E0LL2Y"
64
65 no_option:
66
67 GAB: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI -DISNAN -DAMD64 \
68         -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DWHAM
69 GAB: ${objects} ${objects_compar} xdrf/libxdrf.a
70         cc -o compinfo compinfo.c
71         ./compinfo
72         ${FC} -c ${FFLAGS} cinfo.f
73         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
74         ${LIBS} -static-intel -o ${BIN}/wham_MPI-GAB.exe
75
76 4P: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPGI -DISNAN -DAMD64 \
77         -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DWHAM
78 4P: ${objects} ${objects_compar} xdrf/libxdrf.a
79         cc -o compinfo compinfo.c
80         ./compinfo
81         ${FC} -c ${FFLAGS} cinfo.f
82         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
83         ${LIBS} -static-intel -o ${BIN}/wham_MPI-4P.exe
84
85 E0LL2Y: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI -DISNAN -DAMD64 -DWHAM
86 E0LL2Y: ${objects} ${objects_compar} xdrf/libxdrf.a
87         cc -o compinfo compinfo.c
88         ./compinfo
89         ${FC} -c ${FFLAGS} cinfo.f
90         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
91         ${LIBS} -static-intel -o ${BIN}/wham_MPI-E0LL2Y.exe
92
93 NEWCORR: CPPFLAGS = -DMPI -DCRAY -DUNRES -DSPLITELE -DPROCOR -DNEWCORR -DPGI -DISNAN -DAMD64 -DWHAM
94 NEWCORR: ${objects} ${objects_compar} xdrf/libxdrf.a
95         cc -o compinfo compinfo.c
96         ./compinfo
97         ${FC} -c ${FFLAGS} cinfo.f
98         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
99         ${LIBS} -static-intel -o ${BIN}/wham_MPI-NEWCORR.exe
100
101 xdrf/libxdrf.a:
102         cd xdrf && make
103
104
105 clean:
106         /bin/rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean
107