From 285fb5cdc5f88d9591c5173c8952931b1d97edeb Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 10 Feb 2016 11:09:50 -0500 Subject: 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) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $@ -- cgit v1.2.3-70-g09d2