Revert "ci: skip "lib/test-fork-safe-execvpe.sh" on Alpine Linux"
[libnbd.git] / examples / Makefile.am
blob61a97e1188cc25707cc85b64f3cee4e3700b9620
1 # nbd client library in userspace
2 # Copyright Red Hat
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
22 noinst_PROGRAMS = \
23         aio-connect-read \
24         batched-read-write \
25         connect-command \
26         encryption \
27         fetch-first-sector \
28         get-size \
29         list-exports \
30         open-qcow2 \
31         reads-and-writes \
32         server-flags \
33         strict-structured-reads \
34         threaded-reads-and-writes \
35         $(NULL)
37 if HAVE_GLIB
38 noinst_PROGRAMS += \
39         glib-main-loop
40 endif
42 if HAVE_LIBEV
43 noinst_PROGRAMS += \
44         copy-libev
45 endif
47 aio_connect_read_SOURCES = \
48         aio-connect-read.c \
49         $(NULL)
50 aio_connect_read_CPPFLAGS = \
51         -I$(top_srcdir)/include \
52         $(NULL)
53 aio_connect_read_CFLAGS = \
54         $(WARNINGS_CFLAGS) \
55         $(NULL)
56 aio_connect_read_LDADD = \
57         $(top_builddir)/lib/libnbd.la \
58         $(NULL)
60 connect_command_SOURCES = \
61         connect-command.c \
62         $(NULL)
63 connect_command_CPPFLAGS = \
64         -I$(top_srcdir)/include \
65         $(NULL)
66 connect_command_CFLAGS = \
67         $(WARNINGS_CFLAGS) \
68         $(NULL)
69 connect_command_LDADD = \
70         $(top_builddir)/lib/libnbd.la \
71         $(NULL)
73 encryption_SOURCES = \
74         encryption.c \
75         $(NULL)
76 encryption_CPPFLAGS = \
77         -I$(top_srcdir)/include \
78         $(NULL)
79 encryption_CFLAGS = \
80         $(WARNINGS_CFLAGS) \
81         $(NULL)
82 encryption_LDADD = \
83         $(top_builddir)/lib/libnbd.la \
84         $(NULL)
86 fetch_first_sector_SOURCES = \
87         fetch-first-sector.c \
88         $(NULL)
89 fetch_first_sector_CPPFLAGS = \
90         -I$(top_srcdir)/include \
91         $(NULL)
92 fetch_first_sector_CFLAGS = \
93         $(WARNINGS_CFLAGS) \
94         $(NULL)
95 fetch_first_sector_LDADD = \
96         $(top_builddir)/lib/libnbd.la \
97         $(NULL)
99 get_size_SOURCES = \
100         get-size.c \
101         $(NULL)
102 get_size_CPPFLAGS = \
103         -I$(top_srcdir)/include \
104         $(NULL)
105 get_size_CFLAGS = \
106         $(WARNINGS_CFLAGS) \
107         $(NULL)
108 get_size_LDADD = \
109         $(top_builddir)/lib/libnbd.la \
110         $(NULL)
112 list_exports_SOURCES = \
113         list-exports.c \
114         $(NULL)
115 list_exports_CPPFLAGS = \
116         -I$(top_srcdir)/include \
117         $(NULL)
118 list_exports_CFLAGS = \
119         $(WARNINGS_CFLAGS) \
120         $(NULL)
121 list_exports_LDADD = \
122         $(top_builddir)/lib/libnbd.la \
123         $(NULL)
125 open_qcow2_SOURCES = \
126         open-qcow2.c \
127         $(NULL)
128 open_qcow2_CPPFLAGS = \
129         -I$(top_srcdir)/include \
130         $(NULL)
131 open_qcow2_CFLAGS = \
132         $(WARNINGS_CFLAGS) \
133         $(NULL)
134 open_qcow2_LDADD = \
135         $(top_builddir)/lib/libnbd.la \
136         $(NULL)
138 reads_and_writes_SOURCES = \
139         reads-and-writes.c \
140         $(NULL)
141 reads_and_writes_CPPFLAGS = \
142         -I$(top_srcdir)/include \
143         $(NULL)
144 reads_and_writes_CFLAGS = \
145         $(WARNINGS_CFLAGS) \
146         $(NULL)
147 reads_and_writes_LDADD = \
148         $(top_builddir)/lib/libnbd.la \
149         $(NULL)
151 server_flags_SOURCES = \
152         server-flags.c \
153         $(NULL)
154 server_flags_CPPFLAGS = \
155         -I$(top_srcdir)/include \
156         $(NULL)
157 server_flags_CFLAGS = \
158         $(WARNINGS_CFLAGS) \
159         $(NULL)
160 server_flags_LDADD = \
161         $(top_builddir)/lib/libnbd.la \
162         $(NULL)
164 strict_structured_reads_SOURCES = \
165         strict-structured-reads.c \
166         $(NULL)
167 strict_structured_reads_CPPFLAGS = \
168         -I$(top_srcdir)/include \
169         $(NULL)
170 strict_structured_reads_CFLAGS = \
171         $(WARNINGS_CFLAGS) \
172         $(NULL)
173 strict_structured_reads_LDADD = \
174         $(top_builddir)/lib/libnbd.la \
175         $(NULL)
177 threaded_reads_and_writes_SOURCES = \
178         threaded-reads-and-writes.c \
179         $(NULL)
180 threaded_reads_and_writes_CPPFLAGS = \
181         -I$(top_srcdir)/include \
182         $(NULL)
183 threaded_reads_and_writes_CFLAGS = \
184         $(WARNINGS_CFLAGS) \
185         $(PTHREAD_CFLAGS) \
186         $(NULL)
187 threaded_reads_and_writes_LDADD = \
188         $(top_builddir)/lib/libnbd.la \
189         $(PTHREAD_LIBS) \
190         $(NULL)
192 batched_read_write_SOURCES = \
193         batched-read-write.c \
194         $(NULL)
195 batched_read_write_CPPFLAGS = \
196         -I$(top_srcdir)/include \
197         $(NULL)
198 batched_read_write_CFLAGS = \
199         $(WARNINGS_CFLAGS) \
200         $(NULL)
201 batched_read_write_LDADD = \
202         $(top_builddir)/lib/libnbd.la \
203         $(NULL)
205 if HAVE_GLIB
206 glib_main_loop_SOURCES = \
207         glib-main-loop.c \
208         $(NULL)
209 glib_main_loop_CPPFLAGS = \
210         -I$(top_srcdir)/include \
211         $(NULL)
212 glib_main_loop_CFLAGS = \
213         $(WARNINGS_CFLAGS) \
214         $(GLIB_CFLAGS) \
215         $(NULL)
216 glib_main_loop_LDADD = \
217         $(top_builddir)/lib/libnbd.la \
218         $(GLIB_LIBS) \
219         $(NULL)
220 endif
222 if HAVE_LIBEV
223 copy_libev_SOURCES = \
224         copy-libev.c \
225         $(NULL)
226 copy_libev_CPPFLAGS = \
227         -I$(top_srcdir)/include \
228         $(NULL)
229 copy_libev_CFLAGS = \
230         $(WARNINGS_CFLAGS) \
231         $(LIBEV_CFLAGS) \
232         $(NULL)
233 copy_libev_LDADD = \
234         $(top_builddir)/lib/libnbd.la \
235         $(LIBEV_LIBS) \
236         $(NULL)
237 endif