-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
50 lines (29 loc) · 1.64 KB
/
makefile
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
Path=$(PWD)
CC=g++
# LONG= #leave empty to use doubles
LONG=long #set to long , in order to use long doubles (safer if you have a lot of bins, but slower)
# optimization level
# OPT=O1
# OPT=O2
OPT=O3
# OPT=Ofast # faster, except when it fails :)
FLG= -std=c++17 -I "$(Path)" -lm -DLONG=$(LONG) -$(OPT)
all: VEGAS.run SimpleExample.run Example.run FunctorExample.run
VEGAS.run: VEGAS.cpp VEGAS.hpp VEGAS_CalcWeights.hpp VEGAS_Int.hpp VEGAS_Rnd.hpp\
VEGAS_Aux.hpp VEGAS_Class.hpp VEGAS_IntTot.hpp VEGAS_SubDiv.hpp VEGAS_Batch.hpp\
VEGAS_Const.hpp VEGAS_PartInts.hpp VEGAS_UpBin.hpp makefile
$(CC) -Wall -o "$(Path)/VEGAS.run" "$(Path)/VEGAS.cpp" $(FLG)
Example.run: Example.cpp VEGAS.hpp VEGAS_CalcWeights.hpp VEGAS_Int.hpp VEGAS_Rnd.hpp\
VEGAS_Aux.hpp VEGAS_Class.hpp VEGAS_IntTot.hpp VEGAS_SubDiv.hpp VEGAS_Batch.hpp\
VEGAS_Const.hpp VEGAS_PartInts.hpp VEGAS_UpBin.hpp makefile
$(CC) -Wall -o "$(Path)/Example.run" "$(Path)/Example.cpp" $(FLG)
SimpleExample.run: SimpleExample.cpp VEGAS.hpp VEGAS_CalcWeights.hpp VEGAS_Int.hpp VEGAS_Rnd.hpp\
VEGAS_Aux.hpp VEGAS_Class.hpp VEGAS_IntTot.hpp VEGAS_SubDiv.hpp VEGAS_Batch.hpp\
VEGAS_Const.hpp VEGAS_PartInts.hpp VEGAS_UpBin.hpp makefile
$(CC) -Wall -o "$(Path)/SimpleExample.run" "$(Path)/SimpleExample.cpp" $(FLG)
FunctorExample.run: FunctorExample.cpp VEGAS.hpp VEGAS_CalcWeights.hpp VEGAS_Int.hpp VEGAS_Rnd.hpp\
VEGAS_Aux.hpp VEGAS_Class.hpp VEGAS_IntTot.hpp VEGAS_SubDiv.hpp VEGAS_Batch.hpp\
VEGAS_Const.hpp VEGAS_PartInts.hpp VEGAS_UpBin.hpp makefile
$(CC) -Wall -o "$(Path)/FunctorExample.run" "$(Path)/FunctorExample.cpp" $(FLG)
clean:
rm -f *.run