From 8139d0114268f2084475bc8e98849721e9ff3de9 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 12 Oct 2014 05:04:27 +0300 Subject: [PATCH] fixed warnings and added makefile for bench --- example/makefile.bench | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 example/makefile.bench diff --git a/example/makefile.bench b/example/makefile.bench new file mode 100644 index 00000000..ab33e423 --- /dev/null +++ b/example/makefile.bench @@ -0,0 +1,24 @@ +CXX = g++ +CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include +CXX_RELEASE_FLAGS = -O3 -flto +CXX_DEBUG_FLAGS= -g + +OUTBIN = bench + +all: bench.cpp + $(CXX) bench.cpp -o $(OUTBIN) $(CXXFLAGS) $(CXX_RELEASE_FLAGS) + + +debug: bench.cpp + $(CXX) bench.cpp -o $(OUTBIN)-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS) + + + +clean: + rm -f *.txt $(OUTBIN) $(OUTBIN)-debug + + +rebuild: clean all +rebuild-debug: clean debug + +