-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-client.am
116 lines (87 loc) · 2.88 KB
/
Makefile-client.am
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
bash_completiondir = $(sysconfdir)/bash_completion.d
bash_completion_DATA = $(srcdir)/bash_completion/ceph
bin_SCRIPTS += \
ceph \
ceph-post-file
python_PYTHON += \
pybind/ceph_argparse.py \
pybind/ceph_daemon.py
ceph_syn_SOURCES = ceph_syn.cc
ceph_syn_SOURCES += client/SyntheticClient.cc # uses g_conf.. needs cleanup
ceph_syn_LDADD = $(LIBCLIENT) $(CEPH_GLOBAL)
bin_PROGRAMS += ceph-syn
# assemble Python script with global version variables
# NB: depends on format of ceph_ver.h
ceph: ceph.in ./ceph_ver.h Makefile
rm -f $@ [email protected]
echo "#!/usr/bin/env python" >[email protected]
grep "#define CEPH_GIT_NICE_VER" $(srcdir)/ceph_ver.h | \
sed -e 's/#define \(.*VER\) /\1=/' >>[email protected]
grep "#define CEPH_GIT_VER" $(srcdir)/ceph_ver.h | \
sed -e 's/#define \(.*VER\) /\1=/' -e 's/=\(.*\)$$/="\1"/' >>[email protected]
cat $(srcdir)/[email protected] >>[email protected]
chmod a+x [email protected]
chmod a-w [email protected]
mv [email protected] $@
if WITH_RADOS
bash_completion_DATA += \
$(srcdir)/bash_completion/rados \
$(srcdir)/bash_completion/radosgw-admin
python_PYTHON += pybind/rados.py
librados_config_SOURCES = librados-config.cc
librados_config_LDADD = $(LIBRADOS) $(CEPH_GLOBAL)
bin_PROGRAMS += librados-config
if WITH_RBD
bash_completion_DATA += \
$(srcdir)/bash_completion/rbd
bin_SCRIPTS += \
ceph-rbdnamer \
rbd-replay-many
python_PYTHON += pybind/rbd.py
libkrbd_la_SOURCES = krbd.cc
libkrbd_la_LIBADD = $(LIBSECRET) $(LIBCOMMON) -lblkid -ludev
if LINUX
noinst_LTLIBRARIES += libkrbd.la
endif # LINUX
rbd_SOURCES = rbd.cc
rbd_LDADD = $(LIBKRBD) $(LIBRBD) $(LIBRADOS) $(CEPH_GLOBAL)
if LINUX
bin_PROGRAMS += rbd
endif # LINUX
endif # WITH_RBD
# Fuse targets
if WITH_FUSE
ceph_fuse_SOURCES = ceph_fuse.cc
ceph_fuse_LDADD = $(LIBCLIENT_FUSE) $(CEPH_GLOBAL)
bin_PROGRAMS += ceph-fuse
if WITH_RBD
rbd_fuse_SOURCES = rbd_fuse/rbd-fuse.cc
rbd_fuse_LDADD = -lfuse $(LIBRBD) $(LIBRADOS) $(CEPH_GLOBAL)
bin_PROGRAMS += rbd-fuse
endif # WITH_RBD
endif # WITH_FUSE
if WITH_CEPHFS
cephfs_SOURCES = cephfs.cc
cephfs_LDADD = $(LIBCOMMON)
bin_PROGRAMS += cephfs
python_PYTHON += pybind/cephfs.py
# libcephfs (this should go somewhere else in the future)
libcephfs_la_SOURCES = libcephfs.cc
libcephfs_la_LIBADD = $(LIBCLIENT) $(LIBCOMMON) $(PTHREAD_LIBS) $(CRYPTO_LIBS) $(EXTRALIBS)
libcephfs_la_LDFLAGS = ${AM_LDFLAGS} -version-info 1:0:0 -export-symbols-regex '^ceph_.*'
libcephfs_la_LDFLAGS += -Xcompiler -Xlinker -Xcompiler '--exclude-libs=libcommon.a'
lib_LTLIBRARIES += libcephfs.la
# jni library (java source is in src/java)
if ENABLE_CEPHFS_JAVA
libcephfs_jni_la_SOURCES = \
java/native/libcephfs_jni.cc \
java/native/ScopedLocalRef.h \
java/native/JniConstants.cpp \
java/native/JniConstants.h
libcephfs_jni_la_LIBADD = $(LIBCEPHFS) $(EXTRALIBS)
libcephfs_jni_la_CPPFLAGS = $(JDK_CPPFLAGS) $(AM_CPPFLAGS)
libcephfs_jni_la_LDFLAGS = ${AM_LDFLAGS} -version-info 1:0:0
lib_LTLIBRARIES += libcephfs_jni.la
endif # ENABLE_CEPHFS_JAVA
endif # WITH_CEPHFS
endif # WITH_RADOS