File: Makefile.am

package info (click to toggle)
libnbd 1.24.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,956 kB
  • sloc: ansic: 55,158; ml: 12,325; sh: 8,811; python: 4,757; makefile: 3,038; perl: 165; cpp: 24
file content (194 lines) | stat: -rw-r--r-- 4,553 bytes parent folder | download | duplicates (2)
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# nbd client library in userspace
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

include $(top_srcdir)/subdir-rules.mk

EXTRA_DIST = \
	copy-allocated-asynch.sh \
	copy-allocated-synch.sh \
	copy-allocated-destination-zero-asynch.sh \
	copy-allocated-destination-zero-synch.sh \
	copy-blkhash-known.sh \
	copy-blkhash-pattern.sh \
	copy-blkhash-randfile.sh \
	copy-block-to-nbd.sh \
	copy-destination-zero-asynch.sh \
	copy-destination-zero-synch.sh \
	copy-file-to-file.sh \
	copy-file-to-nbd.sh \
	copy-file-to-null.sh \
	copy-file-to-qcow2.sh \
	copy-file-to-qcow2-compressed.sh \
	copy-flush.sh \
	copy-nbd-to-block.sh \
	copy-nbd-to-file.sh \
	copy-nbd-to-hexdump.sh \
	copy-nbd-to-nbd.sh \
	copy-nbd-to-nbd2.sh \
	copy-nbd-to-null.sh \
	copy-nbd-to-small-block-error.sh \
	copy-nbd-to-small-nbd-error.sh \
	copy-nbd-to-sparse-file.sh \
	copy-nbd-to-stdout.sh \
	copy-nbd-error.sh \
	copy-progress-bar.sh \
	copy-sparse.sh \
	copy-sparse-allocated.sh \
	copy-sparse-no-extents.sh \
	copy-sparse-request-size.sh \
	copy-sparse-to-stream.sh \
	copy-stdin-to-nbd.sh \
	copy-stdin-to-null.sh \
	copy-tls.sh \
	copy-zero-to-nbd.sh \
	copy-zero-to-null.sh \
	nbdcopy.pod \
	test-long-options.sh \
	test-short-options.sh \
	test-verbose.sh \
	test-version.sh \
	$(NULL)

TESTS_ENVIRONMENT = \
	LIBNBD_DEBUG=1 \
	$(MALLOC_CHECKS) \
	EXPECTED_VERSION=$(VERSION) \
	PSKTOOL=$(PSKTOOL) \
	QEMU_NBD=$(QEMU_NBD) \
	$(NULL)
LOG_COMPILER = $(top_builddir)/run
TESTS =

nbdcopy_SOURCES = \
	nbdcopy.h \
	blkhash.c \
	file-ops.c \
	main.c \
	multi-thread-copying.c \
	nbd-ops.c \
	null-ops.c \
	pipe-ops.c \
	progress.c \
	synch-copying.c \
	$(NULL)
nbdcopy_CPPFLAGS = \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/common/include \
	-I$(top_srcdir)/common/utils \
	$(NULL)
nbdcopy_CFLAGS = \
	$(WARNINGS_CFLAGS) \
	$(PTHREAD_CFLAGS) \
	$(GNUTLS_CFLAGS) \
	$(NULL)
nbdcopy_LDADD = \
	$(GNUTLS_LIBS) \
	$(PTHREAD_LIBS) \
	$(top_builddir)/common/utils/libutils.la \
	$(top_builddir)/lib/libnbd.la \
	$(NULL)

# This program depends on URI support; no point in installing it otherwise
if HAVE_LIBXML2

bin_PROGRAMS = nbdcopy

if HAVE_POD

man_MANS = \
	nbdcopy.1 \
	$(NULL)

nbdcopy.1: nbdcopy.pod $(top_builddir)/podwrapper.pl
	$(PODWRAPPER) --section=1 --man $@ \
	    --html $(top_builddir)/html/$@.html \
	    $<

endif HAVE_POD

ROOT_TESTS = \
	copy-block-to-nbd.sh \
	copy-nbd-to-block.sh \
	copy-nbd-to-small-block-error.sh \
	$(NULL)
TESTS += \
	copy-file-to-file.sh \
	copy-file-to-nbd.sh \
	copy-file-to-null.sh \
	copy-nbd-to-file.sh \
	copy-nbd-to-hexdump.sh \
	copy-nbd-to-nbd.sh \
	copy-nbd-to-nbd2.sh \
	copy-nbd-to-null.sh \
	copy-nbd-to-small-nbd-error.sh \
	copy-nbd-to-sparse-file.sh \
	copy-stdin-to-nbd.sh \
	copy-stdin-to-null.sh \
	copy-nbd-to-stdout.sh \
	copy-nbd-error.sh \
	copy-progress-bar.sh \
	copy-sparse.sh \
	copy-sparse-allocated.sh \
	copy-sparse-no-extents.sh \
	copy-sparse-request-size.sh \
	copy-sparse-to-stream.sh \
	copy-zero-to-nbd.sh \
	copy-zero-to-null.sh \
	copy-flush.sh \
	copy-allocated-asynch.sh \
	copy-allocated-synch.sh \
	copy-destination-zero-asynch.sh \
	copy-destination-zero-synch.sh \
	copy-allocated-destination-zero-asynch.sh \
	copy-allocated-destination-zero-synch.sh \
	$(ROOT_TESTS) \
	test-long-options.sh \
	test-short-options.sh \
	test-verbose.sh \
	test-version.sh \
	$(NULL)

if HAVE_QEMU_NBD
TESTS += \
	copy-file-to-qcow2.sh \
	copy-file-to-qcow2-compressed.sh \
	$(NULL)
endif

if HAVE_GNUTLS
TESTS += \
	copy-blkhash-known.sh \
	copy-blkhash-pattern.sh \
	copy-blkhash-randfile.sh \
	$(NULL)

if HAVE_PSKTOOL
TESTS += copy-tls.sh
endif
endif

check-valgrind:
	LIBNBD_VALGRIND=1 $(MAKE) check

# Test which require root permissions.
#
# We have to run these tests serially (-j1) because they all try to
# use /dev/nbd0.
check-root:
	$(MAKE) check -j1 TESTS="$(ROOT_TESTS)"

endif HAVE_LIBXML2