Makefile 497 Bytes
Newer Older
1
CXX	= g++
2
CXX_FLAGS = -Wall -Wextra -pedantic -std=c++11 -pthread -I../include -fmax-errors=1
3 4 5
CXX_RELEASE_FLAGS = -O3 -march=native
CXX_DEBUG_FLAGS= -g

6 7
all:	example 
debug:	example-debug
8 9 10 11 12 13 14 15 16

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


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

clean:
17
	rm -f *.o logs/*.txt example example-debug
18 19 20 21


rebuild: clean all
rebuild-debug: clean debug