saxs and adam's corrections to multichain
[unres.git] / source / wham / src / Makefile-pgi
1 BIN = /users/adam/ZSCOREZ/bin
2 CC = cc
3 FC = mpif90
4 #FC = ifc
5 OPT = -fast -pc 64 -tp p6 -Minline=name:scalar2,scalar,transpose2,matvec2,prodmat3
6 #FFLAGS =  ${OPT} -g -c -I. -I./include_unres
7 #FFLAGS =  ${OPT} -c -C -g -I. -I./include_unres
8 FFLAGS = ${OPT} -c -I. -I./include_unres
9 LIBS = -L../../MEY_MD/src_Tc/xdrf -lxdrf
10 #LIBS = -L$(INSTALL_DIR)/lib_pgi -lmpich -lpmpich -Vaxlib
11 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DMOMENT -DCHECKGRAD -DPGI
12 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DCHECKGRAD -DPGI -DMYGETENV
13 CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI
14 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DPGI
15 #CPPFLAGS = -DMPI -DLINUX -DUNRES
16
17 .f.o:
18         ${FC} ${FFLAGS} $*.f
19
20 .F.o:
21         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
22
23 all: make_dbase
24
25 objects = \
26         wham_multparm.o \
27         bxread.o \
28         xread.o \
29         cxread.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         slices.o \
55         store_parm.o \
56         timing.o \
57         wham_calc1.o
58
59 objects_compar = \
60         readrtns_compar.o \
61         readpdb.o fitsq.o contact.o \
62         elecont.o contfunc.o cont_frag.o conf_compar.o match_contact.o \
63         angnorm.o odlodc.o promienie.o qwolynes.o read_ref_str.o \
64         rmscalc.o secondary.o proc_cont.o define_pairs.o mysort.o
65
66 make_dbase: ${objects} ${objects_compar}
67         cc -o compinfo compinfo.c
68         ./compinfo
69         ${FC} -c ${FFLAGS} cinfo.f
70         $(FC) ${OPT} -Wl,-Bstatic ${objects} ${objects_compar} cinfo.o \
71         ${LIBS} -o ${BIN}/wham_multparm-T-sccor
72
73 clean:
74         /bin/rm *.o