2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-12 12:22:15 +00:00
Files
redis/Makefile
Marcelo Zimbres 1edfa2a8c0 Changes:
- Improvements in the buffer api.
- Splits buffer into buffer and response.
- Removes old examples.
2020-11-08 21:08:19 +01:00

34 lines
874 B
Makefile

# Copyright (c) 2019 - 2020 Marcelo Zimbres Silva (mzimbres at gmail dot com)
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
CPPFLAGS =
CPPFLAGS += -g
CPPFLAGS += -I/opt/boost_1_74_0/include
CPPFLAGS += -D BOOST_ASIO_CONCURRENCY_HINT_1=BOOST_ASIO_CONCURRENCY_HINT_UNSAFE
CPPFLAGS += -D BOOST_ASIO_NO_DEPRECATED
CPPFLAGS += -D BOOST_ASIO_NO_TS_EXECUTORS
LDFLAGS += -pthread
LDFLAGS += -lfmt
all: examples tests
Makefile.dep:
-$(CXX) -MM ./*.cpp > $@
-include Makefile.dep
examples: examples.cpp
$(CXX) -o $@ $^ -std=c++20 $(CPPFLAGS) $(LDFLAGS) -fcoroutines
tests: % : tests.cpp
$(CXX) -o $@ $^ -std=c++17 $(CPPFLAGS) $(LDFLAGS)
.PHONY: clean
clean:
rm -f examples examples.o tests tests.o Makefile.dep