2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-17 14:02:13 +00:00
Files
redis/Makefile
Marcelo Zimbres 548b9bc53f Adds sync example.
2020-12-12 18:08:08 +01:00

45 lines
1.1 KiB
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/.
#CXX = /opt/gcc-10.2.0/bin/g++-10.2.0
CPPFLAGS =
CPPFLAGS += -g -O0
CPPFLAGS += -std=c++20
CPPFLAGS += -fcoroutines
CPPFLAGS += -I/opt/boost_1_74_0/include
CPPFLAGS += -I./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
all: sync async general
Makefile.dep:
-$(CXX) -MM -I./include ./examples/*.cpp ./tests/*.cpp > $@
-include Makefile.dep
async: examples/async.cpp
$(CXX) -o $@ $^ $(CPPFLAGS) $(LDFLAGS)
sync: examples/sync.cpp
$(CXX) -o $@ $^ $(CPPFLAGS) $(LDFLAGS)
general: % : tests/general.cpp
$(CXX) -o $@ $^ $(CPPFLAGS) $(LDFLAGS)
.PHONY: check
check: general
./general
.PHONY: clean
clean:
rm -f sync sync.o async async.o general general.o Makefile.dep