2014-02-20 15:52:22 -05:00
|
|
|
CXX = clang++
|
|
|
|
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include -B/usr/lib/gold-ld/
|
2014-03-18 13:23:24 -04:00
|
|
|
CXX_RELEASE_FLAGS = -O3
|
2014-02-12 18:15:58 -05:00
|
|
|
CXX_DEBUG_FLAGS= -g
|
|
|
|
|
2014-02-20 15:52:22 -05:00
|
|
|
OUTBIN = example-clang
|
2014-02-12 18:15:58 -05:00
|
|
|
|
2014-02-20 15:52:22 -05:00
|
|
|
all: example.cpp
|
|
|
|
$(CXX) example.cpp -o $(OUTBIN) $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
2014-02-12 18:15:58 -05:00
|
|
|
|
|
|
|
|
2014-02-20 15:52:22 -05:00
|
|
|
debug: example.cpp
|
|
|
|
$(CXX) example.cpp -o $(OUTBIN)-debug $(CXXFLAGS) $(CXX_DEBUG_FLAFS)
|
2014-02-12 18:15:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2014-02-20 15:52:22 -05:00
|
|
|
rm -f *.txt $(OUTBIN) $(OUTBIN)-debug
|
2014-02-12 18:15:58 -05:00
|
|
|
|
|
|
|
rebuild: clean all
|
2014-02-20 15:52:22 -05:00
|
|
|
rebuild-debug: clean debug
|
|
|
|
|
2014-02-12 18:15:58 -05:00
|
|
|
|