15fcd214d0a39845b9ebc7b5aa5e4a79f45da243
[unres.git] / source / wham / src / Makefile
1 INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh
2 BIN = ../../../bin/wham/
3 FC= ifort
4 #OPT = -mcmodel=medium -O3 -ip -w
5 OPT = -mcmodel=medium -g -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 CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI -DISNAN -DAMD64 \
9         -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
10
11 .f.o:
12         ${FC} ${FFLAGS} $*.f
13
14 .F.o:
15         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
16
17 all: make_dbase
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         initialize_p.o \
27         molread_zs.o \
28         openunits.o \
29         readrtns.o \
30         arcos.o \
31         cartder.o \
32         cartprint.o \
33         chainbuild.o \
34         geomout.o \
35         icant.o \
36         intcor.o \
37         int_from_cart.o \
38         make_ensemble1.o \
39         matmult.o \
40         misc.o \
41         mygetenv.o \
42         parmread.o \
43         pinorm.o \
44         printmat.o \
45         proc_proc.o \
46         rescode.o \
47         setup_var.o \
48         slices.o \
49         store_parm.o \
50         timing.o \
51         wham_calc1.o
52
53 objects_compar = \
54         readrtns_compar.o \
55         readpdb.o fitsq.o contact.o \
56         elecont.o contfunc.o cont_frag.o conf_compar.o match_contact.o \
57         angnorm.o odlodc.o promienie.o qwolynes.o read_ref_str.o \
58         rmscalc.o secondary.o proc_cont.o define_pairs.o mysort.o
59
60 make_dbase: ${objects} ${objects_compar}
61         cc -o compinfo compinfo.c
62         ./compinfo
63         ${FC} -c ${FFLAGS} cinfo.f
64         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
65         ${LIBS} -static-intel -o ${BIN}/wham_multparm-ham_rep-oldparm
66
67 clean:
68         /bin/rm *.o