spdlog/example/Makefile

22 lines
482 B
Makefile
Raw Normal View History

2018-04-28 17:09:56 -04:00
CXX = g++
CXX_FLAGS = -Wall -Wextra -pedantic -std=c++11 -pthread -I../include
2018-04-05 21:36:22 -04:00
CXX_RELEASE_FLAGS = -O3 -march=native
CXX_DEBUG_FLAGS= -g
all: example
debug: example-debug
2018-04-05 21:36:22 -04:00
example: example.cpp
$(CXX) example.cpp -o example $(CXX_FLAGS) $(CXX_RELEASE_FLAGS) $(CXXFLAGS)
example-debug: example.cpp
$(CXX) example.cpp -o example-debug $(CXX_FLAGS) $(CXX_DEBUG_FLAGS) $(CXXFLAGS)
clean:
rm -f *.o logs/*.txt example example-debug
2018-04-05 21:36:22 -04:00
rebuild: clean all
rebuild-debug: clean debug