-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile-intel
executable file
·90 lines (64 loc) · 3.31 KB
/
makefile-intel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#.SUFFIXES: .o .cxx
#options= -O3
options= -Ofast -march=native -fopenmp
#MYDIR=$(HOME)/Library/QMC_Mar07/
#CFLAGS =-I$(MYDIR)sprng/include -I$(MYDIR)gsl/include -DMOVECENTROIDTEST
#LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -static
#LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -L$(MYDIR)/gsl/lib -lgsl
#LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -lgfortran
MYDIR=./QMC_Mar07/
#CFLAGS =-I$(MYDIR)sprng/include -I/usr/local/include -DMOVECENTROIDTEST -I$(MYDIR)/gsl/include/
CFLAGS =-I$(MYDIR)sprng/include -DMOVECENTROIDTEST
#CFLAGS =-DUSE_MPI -I$(MYDIR)sprng/include -DMOVECENTROIDTEST
#LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -L$(MYDIR)/gsl/lib/ -lgsl -lgfortran
LDFLAGS=-L/home/pnroy/Dev/lib64/ -lm -L$(MYDIR)sprng/lib -llcg -L/home/pnroy/Dev/lib64/ -nofor_main -lpthread -lm -cxxlib
#LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -lgfortran
#-------------------------------------------------------------------------
# Compilers
#-------------------------------------------------------------------------
#CC=mpic++
#CC=g++
#CC=/home/pnroy/Dev/bin/g++
#FC=gfortran
CC=/home/pnroy/intel/bin/icc
FC=/home/pnroy/intel/bin/ifort
#FC=/home/pnroy/Dev/bin/gfortran
#-------------------------------------------------------------------------
# objects for QMC
pimcOBJS=mc_piqmc.o mc_estim.o mc_qworm.o mc_input.o mc_setup.o mc_poten.o mc_randg.o mc_utils.o rotden.o rotpro_sub.o rotred.o potred.o vcord.o vcalc.o initconf.o vspher.o caleng_tip4p_gg.o omprng.o rngstream.o
#----------------------------------------- PIMC --------------------------
pimc: mc_main.o $(pimcOBJS)
$(FC) -o $@ mc_main.o $(pimcOBJS) $(LDFLAGS) -fopenmp
mc_main.o: mc_main.cc mc_confg.h mc_input.h mc_setup.h mc_randg.h mc_utils.h mc_const.h mc_piqmc.h mc_estim.h mc_qworm.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_input.o: mc_input.cc mc_input.h mc_confg.h mc_setup.h mc_utils.h mc_const.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_setup.o: mc_setup.cc mc_setup.h mc_confg.h mc_utils.h mc_const.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_randg.o: mc_randg.cc mc_randg.h mc_input.h mc_confg.h mc_utils.h mc_const.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_utils.o: mc_utils.cc mc_utils.h mc_confg.h mc_const.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_poten.o: mc_poten.cc mc_poten.h mc_setup.h mc_confg.h mc_utils.h mc_const.h mc_input.cc
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_piqmc.o: mc_piqmc.cc mc_piqmc.h mc_poten.h mc_const.h mc_setup.h mc_utils.h mc_estim.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_estim.o: mc_estim.cc mc_estim.h mc_setup.h mc_utils.h mc_poten.h mc_input.h mc_qworm.h mc_confg.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
mc_qworm.o: mc_qworm.cc mc_qworm.h mc_setup.h mc_utils.h mc_confg.h mc_randg.h mc_piqmc.h
$(CC) $(options) -c $(CFLAGS) -o $@ $*.cc
omprng.o: omprng.cc omprng.h
$(CC) -c -fopenmp -lgomp omprng.cc
rngstream.o: rngstream.cc rngstream.h
$(CC) -c -fopenmp -lgomp rngstream.cc
.PHONY: clean
clean:
rm -f *.o core pimc
wipe:
rm -f mc00* mc00*.*old *.dump
.f.o:
${FC} -O3 -c $<
#---------------------------------------------------------------------------
# %.o: %.cxx
# $(CC) $(options) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
#---------------------------------------------------------------------------