aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 409385c..017aa81 100644
--- a/Makefile
+++ b/Makefile
@@ -1,25 +1,27 @@
-CXX=g++
-CC=gcc
+CXX = g++
+CC = gcc
RM = rm
CXXFLAGS=-std=c++11 -g -O3 -Wall
+ifdef NLOPT
+ CXXFLAGS+= -DNLOPT
+endif
+CFLAGS=-O3
GSL_FLAGS:=$(shell pkg-config --libs gsl)
VPATH=src
main: main.o rtnorm.o stratified_sampling.o
$(CXX) $^ -o $@ $(GSL_FLAGS)
-stratified_sampling.o: stratified_sampling.hpp
-
-main.o: stratified_sampling.o
-
test: test.o mt19937.o
$(CXX) $^ -o $@
rqmc: rqmc.o mt19937.o
- $(CXX) $^ -o $@ $(GSL_FLAGS)
+ $(CXX) $^ -o $@ $(GSL_FLAGS)
+
+option: option.o mt19937.o sobolseq.o p_adic.o
+ $(CXX) $^ -o $@ $(GSL_FLAGS)
-option: option.o mt19937.o p_adic.o
- $(CXX) $^ -o $@ $(GSL_FLAGS)
+p_adic.o: low_discrepancy.hpp
clean:
-$(RM) -f *.o test stratified_sampling main option