1 # nbd client library in userspace
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 include $(top_srcdir)/subdir-rules.mk
20 EXTRA_DIST = LICENSE-FOR-EXAMPLES
33 strict-structured-reads \
34 threaded-reads-and-writes \
47 aio_connect_read_SOURCES = \
50 aio_connect_read_CPPFLAGS = \
51 -I$(top_srcdir)/include \
53 aio_connect_read_CFLAGS = \
56 aio_connect_read_LDADD = \
57 $(top_builddir)/lib/libnbd.la \
60 connect_command_SOURCES = \
63 connect_command_CPPFLAGS = \
64 -I$(top_srcdir)/include \
66 connect_command_CFLAGS = \
69 connect_command_LDADD = \
70 $(top_builddir)/lib/libnbd.la \
73 encryption_SOURCES = \
76 encryption_CPPFLAGS = \
77 -I$(top_srcdir)/include \
83 $(top_builddir)/lib/libnbd.la \
86 fetch_first_sector_SOURCES = \
87 fetch-first-sector.c \
89 fetch_first_sector_CPPFLAGS = \
90 -I$(top_srcdir)/include \
92 fetch_first_sector_CFLAGS = \
95 fetch_first_sector_LDADD = \
96 $(top_builddir)/lib/libnbd.la \
102 get_size_CPPFLAGS = \
103 -I$(top_srcdir)/include \
109 $(top_builddir)/lib/libnbd.la \
112 list_exports_SOURCES = \
115 list_exports_CPPFLAGS = \
116 -I$(top_srcdir)/include \
118 list_exports_CFLAGS = \
121 list_exports_LDADD = \
122 $(top_builddir)/lib/libnbd.la \
125 open_qcow2_SOURCES = \
128 open_qcow2_CPPFLAGS = \
129 -I$(top_srcdir)/include \
131 open_qcow2_CFLAGS = \
135 $(top_builddir)/lib/libnbd.la \
138 reads_and_writes_SOURCES = \
141 reads_and_writes_CPPFLAGS = \
142 -I$(top_srcdir)/include \
144 reads_and_writes_CFLAGS = \
147 reads_and_writes_LDADD = \
148 $(top_builddir)/lib/libnbd.la \
151 server_flags_SOURCES = \
154 server_flags_CPPFLAGS = \
155 -I$(top_srcdir)/include \
157 server_flags_CFLAGS = \
160 server_flags_LDADD = \
161 $(top_builddir)/lib/libnbd.la \
164 strict_structured_reads_SOURCES = \
165 strict-structured-reads.c \
167 strict_structured_reads_CPPFLAGS = \
168 -I$(top_srcdir)/include \
170 strict_structured_reads_CFLAGS = \
173 strict_structured_reads_LDADD = \
174 $(top_builddir)/lib/libnbd.la \
177 threaded_reads_and_writes_SOURCES = \
178 threaded-reads-and-writes.c \
180 threaded_reads_and_writes_CPPFLAGS = \
181 -I$(top_srcdir)/include \
183 threaded_reads_and_writes_CFLAGS = \
187 threaded_reads_and_writes_LDADD = \
188 $(top_builddir)/lib/libnbd.la \
192 batched_read_write_SOURCES = \
193 batched-read-write.c \
195 batched_read_write_CPPFLAGS = \
196 -I$(top_srcdir)/include \
198 batched_read_write_CFLAGS = \
201 batched_read_write_LDADD = \
202 $(top_builddir)/lib/libnbd.la \
206 glib_main_loop_SOURCES = \
209 glib_main_loop_CPPFLAGS = \
210 -I$(top_srcdir)/include \
212 glib_main_loop_CFLAGS = \
216 glib_main_loop_LDADD = \
217 $(top_builddir)/lib/libnbd.la \
223 copy_libev_SOURCES = \
226 copy_libev_CPPFLAGS = \
227 -I$(top_srcdir)/include \
229 copy_libev_CFLAGS = \
234 $(top_builddir)/lib/libnbd.la \