Merge branch 'devel' of mmka.chem.univ.gda.pl:unres into devel
[unres.git] / source / wham / src-M / Makefile_matrix_PGI
1 INSTALL_DIR = /users/software/mpich-1.2.7p1_pgi_9.0_64bit_ssh
2 BIN = ../bin
3 CC = cc
4 FC = pgf90
5 #FC = ifc
6 #OPT = -mcmodel=medium -Mlarge_arrays -fast -pc 64 -tp amd64 -C -g
7 OPT = -mcmodel=medium -Mlarge_arrays -tp amd64
8 #FFLAGS =  ${OPT} -g -c -I. -I./include_unres -I$(INSTALL_DIR)/include
9 FFLAGS =  ${OPT} -c -C -g -I. -I./include_unres -I$(INSTALL_DIR)/include
10 #FFLAGS = ${OPT} -c -I. -I./include_unres -I$(INSTALL_DIR)/include
11 LIBS = -L$(INSTALL_DIR)/lib -lmpich -lpmpich xdrf/libxdrf.a
12 #LIBS = -L$(INSTALL_DIR)/lib_pgi -lmpich -lpmpich -Vaxlib
13 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DMOMENT -DCHECKGRAD -DPGI
14 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DCHECKGRAD -DPGI -DMYGETENV
15 CPPFLAGS = -DMPI -DLINUX -DUNRES -DSPLITELE -DPROCOR -DPGI 
16 #CPPFLAGS = -DMPI -DLINUX -DUNRES -DPGI
17 #CPPFLAGS = -DMPI -DLINUX -DUNRES
18
19 .f.o:
20         ${FC} ${FFLAGS} $*.f
21
22 .F.o:
23         ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
24
25 all: make_dbase
26
27 objects = \
28         wham_multparm.o \
29         bxread.o \
30         xread.o \
31         cxread.o \
32         enecalc1.o \
33         energy_p_new.o \
34         initialize_p.o \
35         molread_zs.o \
36         openunits.o \
37         readrtns.o \
38         arcos.o \
39         cartder.o \
40         cartprint.o \
41         chainbuild.o \
42         geomout.o \
43         gnmr1.f \
44         icant.o \
45         intcor.o \
46         int_from_cart.o \
47         make_ensemble1.o \
48         matmult.o \
49         misc.o \
50         mygetenv.o \
51         parmread.o \
52         pinorm.o \
53         printmat.o \
54         proc_proc.o \
55         rescode.o \
56         setup_var.o \
57         slices.o \
58         store_parm.o \
59         timing.o \
60         wham_calc1.o
61
62 objects_compar = \
63         readrtns_compar.o \
64         readpdb.o fitsq.o contact.o \
65         elecont.o contfunc.o cont_frag.o conf_compar.o match_contact.o \
66         angnorm.o odlodc.o promienie.o qwolynes.o read_ref_str.o \
67         rmscalc.o secondary.o proc_cont.o define_pairs.o mysort.o
68
69 make_dbase: ${objects} ${objects_compar}
70         cc -o compinfo compinfo.c
71         ./compinfo
72         ${FC} -c ${FFLAGS} cinfo.f
73         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o -Bstatic_pgi \
74         ${LIBS} -o ${BIN}/wham_multparm-hamrep-sep-D
75
76 clean:
77         /bin/rm *.o