From c123ef8d8726a1c3af5dbbddafc18785ba14142e Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 18 Feb 2016 18:13:02 -0500 Subject: add Nlopt version of sobol which allows higher dimensions --- Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2