5/20/2012 by Adam
[unres.git] / source / cluster / wham / src / Makefile-MPICH-ifort
1 INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh
2 BIN=../../../../bin/cluster
3 FC = ifort
4 OPT = -O3 -ip -w
5 #OPT = -CB -g 
6 FFLAGS =  ${OPT} -c -I. -Iinclude_unres -I$(INSTALL_DIR)/include
7 CPPFLAGS = -DLINUX -DPGI -DSPLITELE -DPROCOR -DMP -DMPI
8 LIBS = -L$(INSTALL_DIR)/lib -lmpich xdrf/libxdrf.a -g -d2 -CA -CB
9
10 .c.o:
11         cc -c -DLINUX -DPGI $*.c
12
13 .f.o:
14         ${FC} ${FFLAGS} $*.f
15
16 .F.o:
17         ${FC} ${FFLAGS} ${CPPFLAGS} ${FFLAGS} $*.F
18
19 objects = main_clust.o arcos.o cartprint.o chainbuild.o convert.o initialize_p.o \
20         matmult.o readrtns.o pinorm.o rescode.o intcor.o timing.o misc.o \
21         geomout.o readpdb.o read_coords.o parmread.o probabl.o fitsq.o hc.o  \
22         track.o wrtclust.o srtclust.o noyes.o contact.o printmat.o \
23         int_from_cart1.o energy_p_new.o icant.o proc_proc.o work_partition.o \
24         setup_var.o read_ref_str.o gnmr1.o
25
26 GAB: CPPFLAGS = -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI \
27         -DSPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
28 GAB: $(objects) xdrf/libxdrf.a
29         $(FC) ${OPT} ${objects} ${LIBS} -o ${BIN}/unres_clustMD_MPICH-GAB.exe
30
31 E0LL2Y: CPPFLAGS = -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI \
32         -DSPLITELE -DLANG0
33 E0LL2Y: $(objects) xdrf/libxdrf.a
34         $(FC) ${OPT} ${objects} ${LIBS} -o ${BIN}/unres_clustMD_MPICH-E0LL2Y.exe
35
36 xdrf/libxdrf.a:
37         cd xdrf && make
38
39
40 clean:
41         /bin/rm -f *.o && /bin/rm -f compinfo && cd xdrf && make clean
42
43