From 03d9abe8e269ed54e8f7210f16f938695ecb58f2 Mon Sep 17 00:00:00 2001 From: gabi Date: Wed, 5 Nov 2014 22:54:13 +0200 Subject: [PATCH] mingw support --- README.md | 1 + example/Makefile.mingw | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 example/Makefile.mingw diff --git a/README.md b/README.md index 56c9c814..3afaba94 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Just copy the files to your build tree and use a C++11 compiler * gcc 4.8.1 and above * clang 3.5 * visual studio 2013 +* mingw with g++ 4.9.x ##Features * Very fast - performance is the primary goal (see becnhmarks below) diff --git a/example/Makefile.mingw b/example/Makefile.mingw new file mode 100644 index 00000000..fc47241d --- /dev/null +++ b/example/Makefile.mingw @@ -0,0 +1,32 @@ +CXX = g++ +CXXFLAGS = -D_WIN32_WINNT=0x600 -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include +CXX_RELEASE_FLAGS = -O3 +CXX_DEBUG_FLAGS= -g + + +all: example bench +debug: example-debug bench-debug + +example: example.cpp + $(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS) + +bench: bench.cpp + $(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS) + + +example-debug: example.cpp + $(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS) + +bench-debug: bench.cpp + $(CXX) bench.cpp -o bench-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS) + + + +clean: + rm -f *.o logs/*.txt example example-debug bench bench-debug + + +rebuild: clean all +rebuild-debug: clean debug + +