diff options
| author | Bertrand <bertrand.horel@gmail.com> | 2016-02-21 16:33:54 +0000 |
|---|---|---|
| committer | Bertrand <bertrand.horel@gmail.com> | 2016-02-21 16:33:54 +0000 |
| commit | 5ed1989db081c60c7be820a5ce58a170fd5f1f9c (patch) | |
| tree | 212a31306912c8152c38ab0db1d147b02087fd87 | |
| parent | 045fc28b3432e07f3d9702150a56f21e7650f12a (diff) | |
| download | projet_C++-5ed1989db081c60c7be820a5ce58a170fd5f1f9c.tar.gz | |
maj Makefile
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |
