diff options
author | Adam Crume <adamcrume@gmail.com> | 2014-06-26 17:46:10 +0200 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2014-08-21 19:57:28 +0200 |
commit | 10a476adfa4cf7c30af32ac38105349bb1a0d3a5 (patch) | |
tree | 924d8c39ea49c06c8add5e865e51c813ba6b932c /examples/librados/Makefile | |
parent | lttng: Add tracing-common.h (diff) | |
download | ceph-10a476adfa4cf7c30af32ac38105349bb1a0d3a5.tar.xz ceph-10a476adfa4cf7c30af32ac38105349bb1a0d3a5.zip |
examples: Add example for the librados C API
Simply copied and modified the C++ API example.
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Diffstat (limited to 'examples/librados/Makefile')
-rw-r--r-- | examples/librados/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/examples/librados/Makefile b/examples/librados/Makefile index a40051facd5..190cca251a8 100644 --- a/examples/librados/Makefile +++ b/examples/librados/Makefile @@ -1,5 +1,13 @@ -all: hello_world.cc - g++ -g -c hello_world.cc -o hello_world.o - g++ -g hello_world.o -lrados -o librados_hello_world +all: librados_hello_world librados_hello_world_c + +librados_hello_world: hello_world.cc + g++ -g -c hello_world.cc -o hello_world.o $(CFLAGS) + g++ -g hello_world.o -lrados -o librados_hello_world $(LDFLAGS) + +librados_hello_world_c: hello_world_c.c + cc -g -c hello_world_c.c -o hello_world_c.o $(CFLAGS) + cc -g hello_world_c.o -lrados -o librados_hello_world_c $(LDFLAGS) + clean: - rm hello_world.o librados_hello_world
\ No newline at end of file + rm hello_world.o librados_hello_world + rm hello_world_c.o librados_hello_world_c |