From 5ed1989db081c60c7be820a5ce58a170fd5f1f9c Mon Sep 17 00:00:00 2001 From: Bertrand Date: Sun, 21 Feb 2016 16:33:54 +0000 Subject: maj Makefile --- Makefile | 9 +++++---- 1 file 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 -- cgit v1.2.3-70-g09d2