spdlog/example/makefile

25 lines
447 B
Makefile
Raw Normal View History

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