aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBertrand <bertrand.horel@gmail.com>2016-02-21 16:33:54 +0000
committerBertrand <bertrand.horel@gmail.com>2016-02-21 16:33:54 +0000
commit5ed1989db081c60c7be820a5ce58a170fd5f1f9c (patch)
tree212a31306912c8152c38ab0db1d147b02087fd87 /Makefile
parent045fc28b3432e07f3d9702150a56f21e7650f12a (diff)
downloadprojet_C++-5ed1989db081c60c7be820a5ce58a170fd5f1f9c.tar.gz
maj Makefile
Diffstat (limited to 'Makefile')
-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