Revert "Revert "CMake file for xdrf library""
[unres.git] / source / wham / src-M / Makefile_matrix-oldparm
1 INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh
2 BIN = ../bin
3 CC = cc
4 FC = ifort
5 #OPT = -O3 -ip -w
6 OPT = -g -CB
7 FFLAGS = -c ${OPT} -I. -I./include_unres -I$(INSTALL_DIR)/include
8 #FFLAGS = -c -g -C -I. -I./include_unres -I$(INSTALL_DIR)/include
9 LIBS = -L$(INSTALL_DIR)/lib -lmpich xdrf/libxdrf.a 
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 -DCRYST_BOND -DCRYST_SC -DCRYST_THETA 
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         gnmr1.o \
33         initialize_p.o \
34         molread_zs.o \
35         openunits.o \
36         readrtns.o \
37         read_dist_constr.o \
38         arcos.o \
39         cartder.o \
40         cartprint.o \
41         chainbuild.o \
42         geomout.o \
43         icant.o \
44         intcor.o \
45         int_from_cart.o \
46         make_ensemble1.o \
47         matmult.o \
48         misc.o \
49         mygetenv.o \
50         parmread.o \
51         pinorm.o \
52         printmat.o \
53         proc_proc.o \
54         rescode.o \
55         setup_var.o \
56         slices.o \
57         store_parm.o \
58         timing.o \
59         wham_calc1.o
60
61 objects_compar = \
62         readrtns_compar.o \
63         readpdb.o permut.o fitsq.o contact.o \
64         elecont.o contfunc.o cont_frag.o conf_compar.o match_contact.o \
65         angnorm.o odlodc.o promienie.o qwolynes.o read_ref_str.o \
66         rmscalc.o secondary.o proc_cont.o define_pairs.o mysort.o
67
68 make_dbase: ${objects} ${objects_compar}
69         cc -o compinfo compinfo.c
70         ./compinfo
71         ${FC} -c ${FFLAGS} cinfo.f
72         $(FC) ${OPT} ${objects} ${objects_compar} cinfo.o \
73         ${LIBS} -o ${BIN}/wham_multparm-D-sccor-oldparm
74
75 clean:
76         /bin/rm *.o