spdlog/example/makefile

24 lines
448 B
Makefile
Raw Normal View History

2014-02-20 14:39:58 -05:00
CXX = g++
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include
CXX_RELEASE_FLAGS = -O3 -flto
CXX_DEBUG_FLAGS= -g
2014-02-20 15:52:22 -05:00
OUTBIN = example
2014-02-20 14:39: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-20 14:39: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-20 14:39:58 -05:00
clean:
2014-02-20 15:52:22 -05:00
rm -f *.txt $(OUTBIN) $(OUTBIN)-debug
2014-02-20 14:39:58 -05:00
rebuild: clean all
rebuild-debug: clean debug