Adam's changes
[unres.git] / source / wham / src-M-Pawel / Makefile-ifort-MPICH
1 INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh
2 BIN = /users/adam/unres/bin/wham
3 FC= ifort
4 OPT = -mcmodel=medium -O3 -ip -w
5 #OPT = -mcmodel=medium -g -CA -CB
6 FFLAGS = ${OPT} -c -I. -I./include_unres -I$(INSTALL_DIR)/include
7 LIBS = -L$(INSTALL_DIR)/lib -lmpich -lpmpich xdrf/libxdrf.a
8
9 .f.o:
10         ${FC} ${FFLAGS} $*.f
11
12 .F.o:
13         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
14
15 objects = \
16         wham_multparm.o \
17         bxread.o \
18         xread.o \
19         cxread.o \
20         enecalc1.o \
21         energy_p_new.o \
22         gnmr1.o \
23         initialize_p.o \
24         molread_zs.o \
25         openunits.o \
26         readrtns.o \
27         read_dist_constr.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         pinorm.o \
43         printmat.o \
44         proc_proc.o \
45         rescode.o \
46         setup_var.o \
47         slices.o \
48         store_parm.o \
49         timing.o \
50         wham_calc1.o
51
52 objects_compar = \
53         readrtns_compar.o \
54         readpdb.o fitsq.o contact.o \
55         elecont.o contfunc.o cont_frag.o conf_compar.o match_contact.o \
56         angnorm.o odlodc.o promienie.o qwolynes.o read_ref_str.o \
57         rmscalc.o secondary.o proc_cont.o define_pairs.o mysort.o
58
59 GAB: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI -DISNAN -DAMD64 \
60         -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
61 GAB: ${objects} ${objects_compar} xdrf/libxdrf.a
62         cc -o compinfo compinfo.c
63         ./compinfo
64         ${FC} -c ${FFLAGS} cinfo.f
65         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
66         ${LIBS} -static-intel -o ${BIN}/wham_ifort_MPICH-M--new-GAB.exe
67
68 E0LL2Y: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI -DISNAN -DAMD64 
69 E0LL2Y: ${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_ifort_MPICH-M-new-E0LL2Y.exe
75
76 xdrf/libxdrf.a:
77         cd xdrf && make
78
79
80 clean:
81         /bin/rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean
82