Makefile.clang 501 Bytes
Newer Older
1 2 3 4 5 6
CXX	= clang++
CXXFLAGS	= -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include
CXX_RELEASE_FLAGS = -O2
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 19

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

	

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


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


rebuild: clean all
rebuild-debug: clean debug