2014-11-03 17:47:16 -05:00
|
|
|
CXX = g++
|
2014-11-04 19:29:01 -05:00
|
|
|
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include
|
2014-11-03 17:47:16 -05:00
|
|
|
CXX_RELEASE_FLAGS = -O3 -flto
|
|
|
|
|
|
|
|
|
2014-11-23 19:44:45 -05:00
|
|
|
all: spdlog-bench spdlog-bench-mt spdlog-bench-async spdlog-bench-mt-async boost-bench boost-bench-mt glog-bench glog-bench-mt g2log-bench g2log-bench-mt
|
2014-11-03 17:47:16 -05:00
|
|
|
|
|
|
|
spdlog-bench: spdlog-bench.cpp
|
|
|
|
$(CXX) spdlog-bench.cpp -o spdlog-bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
spdlog-bench-mt: spdlog-bench-mt.cpp
|
2014-11-23 19:15:17 -05:00
|
|
|
$(CXX) spdlog-bench-mt.cpp -o spdlog-bench-mt $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
spdlog-bench-async: spdlog-bench-async.cpp
|
|
|
|
$(CXX) spdlog-bench-async.cpp -o spdlog-bench-async $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
spdlog-bench-mt-async: spdlog-bench-mt-async.cpp
|
|
|
|
$(CXX) spdlog-bench-mt-async.cpp -o spdlog-bench-mt-async $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
2014-11-03 17:47:16 -05:00
|
|
|
|
|
|
|
BOOST_FLAGS = -DBOOST_LOG_DYN_LINK -I/home/gabi/devel/boost_1_56_0/ -L/home/gabi/devel/boost_1_56_0/stage/lib -lboost_log -lboost_log_setup -lboost_filesystem -lboost_system -lboost_thread -lboost_regex -lboost_date_time -lboost_chrono
|
|
|
|
|
|
|
|
boost-bench: boost-bench.cpp
|
|
|
|
$(CXX) boost-bench.cpp -o boost-bench $(CXXFLAGS) $(BOOST_FLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
boost-bench-mt: boost-bench-mt.cpp
|
|
|
|
$(CXX) boost-bench-mt.cpp -o boost-bench-mt $(CXXFLAGS) $(BOOST_FLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
|
2014-11-22 17:24:46 -05:00
|
|
|
GLOG_FLAGS = -lglog
|
|
|
|
glog-bench: glog-bench.cpp
|
|
|
|
$(CXX) glog-bench.cpp -o glog-bench $(CXXFLAGS) $(GLOG_FLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
glog-bench-mt: glog-bench-mt.cpp
|
|
|
|
$(CXX) glog-bench-mt.cpp -o glog-bench-mt $(CXXFLAGS) $(GLOG_FLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
|
2014-11-23 19:44:45 -05:00
|
|
|
G2LOG_FLAGS = -I/home/gabi/devel/g2log/g2log/src -L/home/gabi/devel/g2log/g2log -llib_g2logger
|
|
|
|
g2log-bench: g2log-bench.cpp
|
|
|
|
$(CXX) g2log-bench.cpp -o g2log-bench $(CXXFLAGS) $(G2LOG_FLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
g2log-bench-mt: g2log-bench-mt.cpp
|
|
|
|
$(CXX) g2log-bench-mt.cpp -o g2log-bench-mt $(CXXFLAGS) $(G2LOG_FLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-03 17:47:16 -05:00
|
|
|
clean:
|
2014-11-22 18:05:07 -05:00
|
|
|
rm -f *.o logs/* spdlog-bench spdlog-bench-mt boost-bench boost-bench-mt glog-bench
|
2014-11-03 17:47:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
rebuild: clean all
|
|
|
|
|
|
|
|
|
|
|
|
|