summaryrefslogtreecommitdiffstats
path: root/src/librados/Makefile.am
blob: bf2c6da6906afb22b90c8a9f6e4d6d858082d0c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
if ENABLE_CLIENT
if WITH_RADOS

librados_internal_la_SOURCES = \
	librados/RadosClient.cc \
	librados/IoCtxImpl.cc \
	librados/RadosXattrIter.cc \
	librados/snap_set_diff.cc
noinst_LTLIBRARIES += librados_internal.la

librados_api_la_SOURCES = \
	common/buffer.cc \
	librados/librados.cc
noinst_LTLIBRARIES += librados_api.la

librados_la_SOURCES = \
	common/buffer.cc \
	librados/librados.cc

# We need this to avoid basename conflicts with the librados build tests in test/Makefile.am
librados_la_CXXFLAGS = ${AM_CXXFLAGS}

LIBRADOS_DEPS += \
	librados_internal.la libcls_lock_client.la \
	$(LIBOSDC) $(LIBCOMMON_DEPS)

librados_la_LIBADD = $(LIBRADOS_DEPS) $(PTHREAD_LIBS) $(CRYPTO_LIBS) $(EXTRALIBS)
librados_la_LDFLAGS = ${AM_LDFLAGS} -version-info 2:0:0
if LINUX
librados_la_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
librados_la_LDFLAGS += -Xcompiler -Xlinker -Xcompiler '--exclude-libs=ALL'
endif
lib_LTLIBRARIES += librados.la

noinst_HEADERS += \
	librados/snap_set_diff.h \
	librados/AioCompletionImpl.h \
	librados/IoCtxImpl.h \
	librados/PoolAsyncCompletionImpl.h \
	librados/RadosClient.h \
	librados/RadosXattrIter.h \
	librados/ListObjectImpl.h

endif # WITH_RADOS
endif # ENABLE_CLIENT