From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- examples/librbd/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 examples/librbd/Makefile (limited to 'examples/librbd/Makefile') diff --git a/examples/librbd/Makefile b/examples/librbd/Makefile new file mode 100644 index 000000000..2cd9f269a --- /dev/null +++ b/examples/librbd/Makefile @@ -0,0 +1,27 @@ + +CXX?=g++ +CXX_FLAGS?=-std=c++11 -Wno-unused-parameter -Wall -Wextra -Werror -g +CXX_LIBS?=-lboost_system -lrbd -lrados +CXX_INC?=$(LOCAL_LIBRADOS_INC) +CXX_CC=$(CXX) $(CXX_FLAGS) $(CXX_INC) $(LOCAL_LIBRADOS) + +# Relative path to the Ceph source: +CEPH_SRC_HOME?=../../src +CEPH_BLD_HOME?=../../build + +LOCAL_LIBRADOS?=-L$(CEPH_BLD_HOME)/lib/ -Wl,-rpath,$(CEPH_BLD_HOME)/lib +LOCAL_LIBRADOS_INC?=-I$(CEPH_SRC_HOME)/include + +all: hello_world_cpp + +# Build against the system librados instead of the one in the build tree: +all-system: LOCAL_LIBRADOS= +all-system: LOCAL_LIBRADOS_INC= +all-system: all + +hello_world_cpp: hello_world.cc + $(CXX_CC) -o hello_world_cpp hello_world.cc $(CXX_LIBS) + +clean: + rm -f hello_world_cpp + -- cgit v1.2.3