aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a0dbf06..19d3fd4 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,11 @@ CC=gcc
RM = rm
CXXFLAGS=-std=c++11 -g -O3 -Wall
GSL_FLAGS:=$(shell pkg-config --libs gsl)
+NLOPT_FLAGS:=$(shell pkg-config --libs nlopt)
VPATH=src
-main: main.o rtnorm.o stratified_sampling.o mt19937.o var_alea.o
- $(CXX) $^ -o $@ $(GSL_FLAGS)
+main: main.o rtnorm.o stratified_sampling.o mt19937.o var_alea.o opti.o
+ $(CXX) $^ -o $@ $(GSL_FLAGS) $(NLOPT_FLAGS)
stratified_sampling.o: stratified_sampling.hpp
@@ -18,11 +19,11 @@ test: test.o mt19937.o
rqmc: rqmc.o mt19937.o
$(CXX) $^ -o $@ $(GSL_FLAGS)
-option: option.o mt19937.o p_adic.o
+option: option.o mt19937.o p_adic.o var_alea.o
$(CXX) $^ -o $@ $(GSL_FLAGS)
opti: opti.o
- $(CXX) $^ -o $@ -lnlopt -lm
+ $(CXX) $^ -o $@ NLOPT_FLAGS
clean:
-$(RM) -f *.o test stratified_sampling main option