Makefile.mingw 509 Bytes
Newer Older
1
CXX	?= g++
gabime's avatar
gabime committed
2
CXXFLAGS	=  -D_WIN32_WINNT=0x600 -march=native -Wall -Wextra -pedantic -std=gnu++0x -pthread -Wl,--no-as-needed  -I../include 
3 4 5 6
CXX_RELEASE_FLAGS = -O3 
CXX_DEBUG_FLAGS= -g 


gabime's avatar
gabime committed
7 8
all:	example 
debug: example-debug 
9 10 11 12 13 14 15 16 17 18

example: example.cpp
	$(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS)

	
example-debug: example.cpp
	$(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)


clean:
gabime's avatar
gabime committed
19
	rm -f *.o logs/*.txt example example-debug
20 21 22 23 24 25


rebuild: clean all
rebuild-debug: clean debug