d05b4cf48f2f08fd43830c80b46de087c6abaa77
[unres.git] / source / wham / src / Makefile1_matrix
1 INSTALL_DIR = /usr/local/mpich-1.2.7p1_pgi64-6.2-3_ssh
2 BIN = ./
3 CC = cc
4 FC = pgf90
5 #FC = ifc
6 OPT = -mcmodel=medium -Mlarge_arrays -fast -pc 64 -tp amd64
7 #OPT = -mcmodel=medium -Mlarge_arrays -tp amd64
8 #FFLAGS =  ${OPT} -g -c -I. -I../src_MD -I/users/adam/UNRES/NEW/src -I$(INSTALL_DIR)/include
9 #FFLAGS =  ${OPT} -c -C -g -I. -I../src_MD -I/users/adam/UNRES/NEW/src -I$(INSTALL_DIR)/include
10 #FFLAGS = ${OPT} -c -I. -I/users/adam/ZSCOREZ/src_MD -I/users/adam/UNRES/NEW/src -I$(INSTALL_DIR)/include
11 FFLAGS = ${OPT} -c -I. -I./include_unres -I$(INSTALL_DIR)/include
12 LIBS = -L$(INSTALL_DIR)/lib -lmpich -lpmpich
13 #LIBS = -L$(INSTALL_DIR)/lib_pgi -lmpich -lpmpich -Vaxlib
14 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DMOMENT -DCHECKGRAD -DPGI
15 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DCHECKGRAD -DPGI -DMYGETENV
16 CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI
17 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DPGI
18 #CPPFLAGS = -DMPI -DLINUX -DUNRES
19
20 .f.o:
21         ${FC} ${FFLAGS} $*.f
22
23 .F.o:
24         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
25
26 all: make_dbase
27
28 objects = \
29         wham_multparm.o \
30         enecalc1.o \
31         energy_p_new.o \
32         initialize_p.o \
33         molread_zs.o \
34         openunits.o \
35         readrtns.o \
36         arcos.o \
37         cartder.o \
38         cartprint.o \
39         chainbuild.o \
40         geomout.o \
41         icant.o \
42         intcor.o \
43         int_from_cart.o \
44         make_ensemble1.o \
45         matmult.o \
46         misc.o \
47         mygetenv.o \
48         parmread.o \
49         pinorm.o \
50         printmat.o \
51         proc_proc.o \
52         rescode.o \
53         setup_var.o \
54         store_parm.o \
55         timing.o \
56         wham_calc1.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 make_dbase: ${objects} ${objects_compar}
66         cc -o compinfo compinfo.c
67         ./compinfo
68         ${FC} -c ${FFLAGS} cinfo.f
69         $(FC) ${OPT} -Wl,-Bstatic ${objects} ${objects_compar} cinfo.o \
70         ${LIBS} -o ${BIN}/wham_multparm1-OPTERON-T__
71
72 clean:
73         /bin/rm *.o