3 CXX_FLAGS?
=-std
=c
++11 -Wall
-Wextra
-Werror
-g
4 CXX_LIBS?
=-lrados
-lradosstriper
5 CXX_INC?
=$(LOCAL_LIBRADOS_INC
)
6 CXX_CC
=$(CXX
) $(CXX_FLAGS
) $(CXX_INC
) $(LOCAL_LIBRADOS
) $(CXX_LIBS
)
9 CC_FLAGS
=-Wall
-Wextra
-Werror
-g
10 CC_INC
=$(LOCAL_LIBRADOS_INC
)
12 CC_CC
=$(CC
) $(CC_FLAGS
) $(CC_INC
) $(LOCAL_LIBRADOS
) $(CC_LIBS
)
14 # Relative path to the Ceph source:
15 CEPH_SRC_HOME?
=..
/..
/src
16 CEPH_BLD_HOME?
=..
/..
/build
18 LOCAL_LIBRADOS?
=-L
$(CEPH_BLD_HOME
)/lib
/ -Wl
,-rpath
,$(CEPH_BLD_HOME
)/lib
19 LOCAL_LIBRADOS_INC?
=-I
$(CEPH_SRC_HOME
)/include
21 all: hello_world_cpp hello_radosstriper_cpp hello_world_c
23 # Build against the system librados instead of the one in the build tree:
24 all-system
: LOCAL_LIBRADOS
=
25 all-system
: LOCAL_LIBRADOS_INC
=
28 hello_world_cpp
: hello_world.
cc
29 $(CXX_CC
) -o hello_world_cpp hello_world.
cc
31 hello_radosstriper_cpp
: hello_radosstriper.
cc
32 $(CXX_CC
) -o hello_radosstriper_cpp hello_radosstriper.
cc
34 hello_world_c
: hello_world_c.c
35 $(CC_CC
) -o hello_world_c hello_world_c.c
38 rm -f hello_world_cpp hello_radosstriper_cpp hello_world_c