aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBertrand <bertrand.horel@gmail.com>2016-02-27 16:35:03 +0000
committerBertrand <bertrand.horel@gmail.com>2016-02-27 16:35:03 +0000
commit96afa78f5fe1bafb95c96170932c7b4fc119ae7e (patch)
tree2fce7067642c026d04a5ba6708975c0ddb390eac /Makefile
parente21e4882c9755a4b8e8194a79ecf5702fc935248 (diff)
parent487d2e11fac749bec8018be3eafb5f3e307182b6 (diff)
downloadprojet_C++-96afa78f5fe1bafb95c96170932c7b4fc119ae7e.tar.gz
Merge branch 'latex'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 19d3fd4..7085018 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,18 @@ 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
+VPATH = src:doc
+
+all: rapport.pdf
+
+rapport.pdf: rapport.tex table.tex
+ latexmk -lualatex $<
+
+table.tex: make_table
+ ./make_table
+
+make_table: make_table.o mt19937.o
+ $(CXX) $^ -o $@
main: main.o rtnorm.o stratified_sampling.o mt19937.o var_alea.o opti.o
$(CXX) $^ -o $@ $(GSL_FLAGS) $(NLOPT_FLAGS)
@@ -22,8 +32,8 @@ rqmc: rqmc.o mt19937.o
option: option.o mt19937.o p_adic.o var_alea.o
$(CXX) $^ -o $@ $(GSL_FLAGS)
-opti: opti.o
- $(CXX) $^ -o $@ NLOPT_FLAGS
-
+.PHONY: clean
+
clean:
- -$(RM) -f *.o test stratified_sampling main option
+ -$(RM) -f *.o test stratified_sampling main option make_table
+ -latexmk -C rapport.pdf