spdlog/example/Makefile

33 lines
702 B
Makefile
Raw Normal View History

2014-10-31 21:44:22 -04:00
CXX = g++
2014-12-01 19:24:30 -05:00
CXXFLAGS = -march=native -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -Wl,--no-as-needed -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-10-13 22:16:16 -04:00
all: example bench
debug: example-debug bench-debug
example: example.cpp
$(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
bench: bench.cpp
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
2014-02-20 14:39:58 -05:00
2014-10-13 22:16:16 -04:00
example-debug: example.cpp
$(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
bench-debug: bench.cpp
$(CXX) bench.cpp -o bench-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
2014-02-20 14:39:58 -05:00
clean:
2014-10-31 10:34:48 -04:00
rm -f *.o logs/*.txt example example-debug bench bench-debug
2014-03-22 08:03:09 -04:00
2014-02-20 14:39:58 -05:00
rebuild: clean all
rebuild-debug: clean debug