forked from toby1998/MoRiBS-PIMC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile-orig
executable file
·86 lines (60 loc) · 3.13 KB
/
makefile-orig
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
#.SUFFIXES: .o .cxx
#options= -O3
options= -O3 -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 -I/usr/local/include -DMOVECENTROIDTEST
#CFLAGS =-DUSE_MPI -I$(MYDIR)sprng/include -DMOVECENTROIDTEST
#LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -L$(MYDIR)/gsl/lib/ -lgsl -lgfortran
LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -lgfortran
#LDFLAGS=-lm -L$(MYDIR)sprng/lib -llcg -lgfortran
#-------------------------------------------------------------------------
# Compilers
#-------------------------------------------------------------------------
#CC=mpic++
CC=g++
FC=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)
$(CC) $(options) -o $@ mc_main.o $(pimcOBJS) $(LDFLAGS)
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 $@
#---------------------------------------------------------------------------