6dbee82c6650dc8896f2f4e800f9fd7739c88bd5
[unres.git] / Makefile_MPICH_pgi
1 INSTALL_DIR = /users/software/mpich-1.2.7p1_pgi_9.0_64bit_ssh
2 CC = cc
3 FC = pgf90
4 #OPT = -mcmodel=medium -Mlarge_arrays -fast -pc 64 -tp amd64 -C -g
5 OPT = -mcmodel=medium -Mlarge_arrays -tp amd64
6 #FFLAGS =  ${OPT} -g -c -I. -I./include_unres -I$(INSTALL_DIR)/include
7 FFLAGS =  ${OPT} -c -C -g -I. -I./include_unres -I$(INSTALL_DIR)/include
8 #FFLAGS = ${OPT} -c -I. -I./include_unres -I$(INSTALL_DIR)/include
9 LIBS = -L$(INSTALL_DIR)/lib -lmpich -lpmpich xdrf/libxdrf.a
10
11 .f.o:
12         ${FC} ${FFLAGS} $*.f
13
14 .F.o:
15         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
16
17 objects = \
18         wham_multparm.o \
19         bxread.o \
20         xread.o \
21         cxread.o \
22         enecalc1.o \
23         energy_p_new.o \
24         gnmr1.o \
25         initialize_p.o \
26         molread_zs.o \
27         openunits.o \
28         readrtns.o \
29         arcos.o \
30         cartder.o \
31         cartprint.o \
32         chainbuild.o \
33         geomout.o \
34         icant.o \
35         intcor.o \
36         int_from_cart.o \
37         make_ensemble1.o \
38         matmult.o \
39         misc.o \
40         mygetenv.o \
41         parmread.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 all: no_option
60         @echo "Specify force field: GAB, 4P or E0LL2Y"
61
62 no_option:
63
64 GAB: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI -DISNAN -DAMD64 \
65         -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DWHAM
66 GAB: ${objects} ${objects_compar} xdrf/libxdrf.a
67         cc -o compinfo compinfo.c
68         ./compinfo
69         ${FC} -c ${FFLAGS} cinfo.f
70         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
71         ${LIBS} -static-intel -o ${BIN}/wham-mult_pgf90_MPICH_GAB.exe
72
73 4P: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPGI -DISNAN -DAMD64 \
74         -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DWHAM
75 4P: ${objects} ${objects_compar} xdrf/libxdrf.a
76         cc -o compinfo compinfo.c
77         ./compinfo
78         ${FC} -c ${FFLAGS} cinfo.f
79         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
80         ${LIBS} -static-intel -o ${BIN}/wham-mult_pgf90_MPICH_4P.exe
81
82 E0LL2Y: CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI -DISNAN -DAMD64 -DWHAM
83 E0LL2Y: ${objects} ${objects_compar} xdrf/libxdrf.a
84         cc -o compinfo compinfo.c
85         ./compinfo
86         ${FC} -c ${FFLAGS} cinfo.f
87         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
88         ${LIBS} -static-intel -o ${BIN}/wham-mult_pgf90_MPICH_E0LL2Y.exe
89
90 xdrf/libxdrf.a:
91         cd xdrf && make
92
93
94 clean:
95         /bin/rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean
96