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