aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2016-02-10 11:09:50 -0500
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2016-02-10 11:09:50 -0500
commit285fb5cdc5f88d9591c5173c8952931b1d97edeb (patch)
tree1dbddc57777de52bbc54f8817da244211fcc3c4e
parent93801d7fb79cbc280c559edcdd430a432b94e15a (diff)
downloadprojet_C++-285fb5cdc5f88d9591c5173c8952931b1d97edeb.tar.gz
Better Makefile
- compile with -Wall to display better warnings - add better dependency on stratified_sampling.hpp (to prevent having to do a make clean, then make)
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5edda83..425d8bd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CXX=g++
CC=gcc
RM = rm
-CXXFLAGS=-std=c++11 -g -O2
+CXXFLAGS=-std=c++11 -g -O3 -Wall
GSL_FLAGS:=$(shell pkg-config --libs gsl)
main: main.o rtnorm.o stratified_sampling.o
@@ -9,6 +9,8 @@ main: main.o rtnorm.o stratified_sampling.o
stratified_sampling.o: stratified_sampling.hpp
+main.o: stratified_sampling.o
+
test: test.o mt19937.o
$(CXX) $^ -o $@