]>
Commit | Line | Data |
---|---|---|
b3cfa26b TK |
1 | ## Process this file with automake to produce Makefile.in |
2 | ||
3 | AUTOMAKE_OPTIONS= foreign subdir-objects | |
3de7eac9 | 4 | ACLOCAL_AMFLAGS = -I build/autoconf |
b3cfa26b TK |
5 | |
6 | # | |
7 | # What to build and install | |
8 | # | |
9 | lib_LTLIBRARIES= libarchive.la | |
71d1bfe0 | 10 | noinst_LTLIBRARIES= libarchive_fe.la |
5d3f56d2 MK |
11 | bin_PROGRAMS= $(bsdtar_programs) $(bsdcpio_programs) $(bsdcat_programs) |
12 | man_MANS= $(libarchive_man_MANS) $(bsdtar_man_MANS) $(bsdcpio_man_MANS) $(bsdcat_man_MANS) | |
c03898de | 13 | BUILT_SOURCES= libarchive/test/list.h tar/test/list.h cpio/test/list.h cat/test/list.h |
b3cfa26b TK |
14 | |
15 | # | |
16 | # What to test: We always test libarchive, test bsdtar and bsdcpio only | |
17 | # if we built them. | |
18 | # | |
c03898de MK |
19 | check_PROGRAMS= libarchive_test $(bsdtar_test_programs) $(bsdcpio_test_programs) $(bsdcat_test_programs) |
20 | TESTS= libarchive_test $(bsdtar_test_programs) $(bsdcpio_test_programs) $(bsdcat_test_programs) | |
21 | TESTS_ENVIRONMENT= $(libarchive_TESTS_ENVIRONMENT) $(bsdtar_TESTS_ENVIRONMENT) $(bsdcpio_TESTS_ENVIRONMENT) $(bsdcat_TESTS_ENVIRONMENT) | |
b3cfa26b TK |
22 | # Always build and test both bsdtar and bsdcpio as part of 'distcheck' |
23 | DISTCHECK_CONFIGURE_FLAGS = --enable-bsdtar --enable-bsdcpio | |
0380c976 TK |
24 | # The next line is commented out by default in shipping libarchive releases. |
25 | # It is uncommented by default in trunk. | |
98a69539 | 26 | # DEV_CFLAGS=-Werror -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wcast-qual -g |
9f6c6d5d | 27 | AM_CFLAGS=$(DEV_CFLAGS) |
c31d1bc4 CW |
28 | PLATFORMCPPFLAGS = @PLATFORMCPPFLAGS@ |
29 | AM_CPPFLAGS=$(PLATFORMCPPFLAGS) | |
b3cfa26b TK |
30 | |
31 | # | |
32 | # What to include in the distribution | |
33 | # | |
952928f5 | 34 | EXTRA_DIST= \ |
154865e1 | 35 | CMakeLists.txt \ |
8f52de24 | 36 | README.md \ |
154865e1 TK |
37 | build/autogen.sh \ |
38 | build/bump-version.sh \ | |
39 | build/clean.sh \ | |
40 | build/cmake \ | |
41 | build/version \ | |
42 | contrib \ | |
43 | doc \ | |
44 | examples \ | |
45 | $(libarchive_EXTRA_DIST) \ | |
46 | $(libarchive_test_EXTRA_DIST) \ | |
47 | $(bsdtar_EXTRA_DIST) \ | |
48 | $(bsdtar_test_EXTRA_DIST) \ | |
49 | $(bsdcpio_EXTRA_DIST) \ | |
cff02ba1 | 50 | $(bsdcpio_test_EXTRA_DIST) \ |
c03898de MK |
51 | $(bsdcat_EXTRA_DIST) \ |
52 | $(bsdcat_test_EXTRA_DIST) | |
b3cfa26b TK |
53 | |
54 | # a) Clean out some unneeded files and directories | |
55 | # b) Collect all documentation and format it for distribution. | |
56 | dist-hook: | |
57 | rm -rf `find $(distdir) -name CVS -type d` | |
58 | rm -rf `find $(distdir) -name .svn -type d` | |
59 | rm -f `find $(distdir) -name '*~'` | |
60 | rm -f `find $(distdir) -name '*.out'` | |
61 | rm -f `find $(distdir) -name '*.core'` | |
62 | -rm -f $(distdir)/*/Makefile $(distdir)/*/*/Makefile | |
09549f49 | 63 | cd $(distdir)/doc && /bin/sh update.sh |
b3cfa26b TK |
64 | |
65 | # | |
66 | # Extra rules for cleanup | |
67 | # | |
154865e1 TK |
68 | DISTCLEANFILES= \ |
69 | libarchive/test/list.h \ | |
70 | tar/test/list.h \ | |
c03898de MK |
71 | cpio/test/list.h \ |
72 | cat/test/list.h | |
b3cfa26b TK |
73 | |
74 | distclean-local: | |
75 | -rm -rf .ref | |
76 | -rm -rf autom4te.cache/ | |
77 | -rm -f *~ | |
78 | -[ -f libarchive/Makefile ] && cd libarchive && make clean | |
79 | -[ -f libarchive/test/Makefile ] && cd libarchive/test && make clean | |
80 | -[ -f tar/Makefile ] && cd tar && make clean | |
81 | -[ -f tar/test/Makefile ] && cd tar/test && make clean | |
82 | -[ -f cpio/Makefile ] && cd cpio && make clean | |
83 | -[ -f cpio/test/Makefile ] && cd cpio/test && make clean | |
5d3f56d2 | 84 | -[ -f cat/Makefile ] && cd cat && make clean |
c03898de | 85 | -[ -f cpio/test/Makefile ] && cd cat/test && make clean |
b3cfa26b TK |
86 | |
87 | # | |
88 | # Libarchive headers, source, etc. | |
89 | # | |
90 | # | |
91 | ||
09549f49 | 92 | include_HEADERS= libarchive/archive.h libarchive/archive_entry.h |
b3cfa26b | 93 | |
154865e1 TK |
94 | libarchive_la_SOURCES= \ |
95 | libarchive/archive_acl.c \ | |
96 | libarchive/archive_acl_private.h \ | |
97 | libarchive/archive_check_magic.c \ | |
98 | libarchive/archive_cmdline.c \ | |
99 | libarchive/archive_cmdline_private.h \ | |
100 | libarchive/archive_crc32.h \ | |
a35a8d3b MN |
101 | libarchive/archive_cryptor.c \ |
102 | libarchive/archive_cryptor_private.h \ | |
04ba9678 MN |
103 | libarchive/archive_digest.c \ |
104 | libarchive/archive_digest_private.h \ | |
154865e1 TK |
105 | libarchive/archive_endian.h \ |
106 | libarchive/archive_entry.c \ | |
107 | libarchive/archive_entry.h \ | |
108 | libarchive/archive_entry_copy_stat.c \ | |
109 | libarchive/archive_entry_link_resolver.c \ | |
110 | libarchive/archive_entry_locale.h \ | |
111 | libarchive/archive_entry_private.h \ | |
112 | libarchive/archive_entry_sparse.c \ | |
113 | libarchive/archive_entry_stat.c \ | |
114 | libarchive/archive_entry_strmode.c \ | |
115 | libarchive/archive_entry_xattr.c \ | |
116 | libarchive/archive_getdate.c \ | |
f1e70066 | 117 | libarchive/archive_getdate.h \ |
c3c366eb | 118 | libarchive/archive_hmac.c \ |
e317cc0e | 119 | libarchive/archive_hmac_private.h \ |
154865e1 | 120 | libarchive/archive_match.c \ |
aa8f7708 BK |
121 | libarchive/archive_openssl_evp_private.h \ |
122 | libarchive/archive_openssl_hmac_private.h \ | |
154865e1 TK |
123 | libarchive/archive_options.c \ |
124 | libarchive/archive_options_private.h \ | |
125 | libarchive/archive_pack_dev.h \ | |
126 | libarchive/archive_pack_dev.c \ | |
127 | libarchive/archive_pathmatch.c \ | |
128 | libarchive/archive_pathmatch.h \ | |
129 | libarchive/archive_platform.h \ | |
f57d129d | 130 | libarchive/archive_platform_acl.h \ |
365a91de | 131 | libarchive/archive_platform_xattr.h \ |
154865e1 TK |
132 | libarchive/archive_ppmd_private.h \ |
133 | libarchive/archive_ppmd7.c \ | |
134 | libarchive/archive_ppmd7_private.h \ | |
135 | libarchive/archive_private.h \ | |
de0a204e MN |
136 | libarchive/archive_random.c \ |
137 | libarchive/archive_random_private.h \ | |
154865e1 TK |
138 | libarchive/archive_rb.c \ |
139 | libarchive/archive_rb.h \ | |
140 | libarchive/archive_read.c \ | |
6c222e59 | 141 | libarchive/archive_read_add_passphrase.c \ |
154865e1 TK |
142 | libarchive/archive_read_append_filter.c \ |
143 | libarchive/archive_read_data_into_fd.c \ | |
144 | libarchive/archive_read_disk_entry_from_file.c \ | |
145 | libarchive/archive_read_disk_posix.c \ | |
146 | libarchive/archive_read_disk_private.h \ | |
147 | libarchive/archive_read_disk_set_standard_lookup.c \ | |
148 | libarchive/archive_read_extract.c \ | |
90250478 | 149 | libarchive/archive_read_extract2.c \ |
154865e1 TK |
150 | libarchive/archive_read_open_fd.c \ |
151 | libarchive/archive_read_open_file.c \ | |
152 | libarchive/archive_read_open_filename.c \ | |
153 | libarchive/archive_read_open_memory.c \ | |
154 | libarchive/archive_read_private.h \ | |
155 | libarchive/archive_read_set_format.c \ | |
156 | libarchive/archive_read_set_options.c \ | |
157 | libarchive/archive_read_support_filter_all.c \ | |
158 | libarchive/archive_read_support_filter_bzip2.c \ | |
159 | libarchive/archive_read_support_filter_compress.c \ | |
160 | libarchive/archive_read_support_filter_grzip.c \ | |
161 | libarchive/archive_read_support_filter_gzip.c \ | |
162 | libarchive/archive_read_support_filter_lrzip.c \ | |
724f3f91 | 163 | libarchive/archive_read_support_filter_lz4.c \ |
154865e1 TK |
164 | libarchive/archive_read_support_filter_lzop.c \ |
165 | libarchive/archive_read_support_filter_none.c \ | |
166 | libarchive/archive_read_support_filter_program.c \ | |
167 | libarchive/archive_read_support_filter_rpm.c \ | |
168 | libarchive/archive_read_support_filter_uu.c \ | |
169 | libarchive/archive_read_support_filter_xz.c \ | |
cd63bdcd | 170 | libarchive/archive_read_support_filter_zstd.c \ |
154865e1 TK |
171 | libarchive/archive_read_support_format_7zip.c \ |
172 | libarchive/archive_read_support_format_all.c \ | |
173 | libarchive/archive_read_support_format_ar.c \ | |
174 | libarchive/archive_read_support_format_by_code.c \ | |
175 | libarchive/archive_read_support_format_cab.c \ | |
176 | libarchive/archive_read_support_format_cpio.c \ | |
177 | libarchive/archive_read_support_format_empty.c \ | |
178 | libarchive/archive_read_support_format_iso9660.c \ | |
179 | libarchive/archive_read_support_format_lha.c \ | |
180 | libarchive/archive_read_support_format_mtree.c \ | |
181 | libarchive/archive_read_support_format_rar.c \ | |
58167a9a | 182 | libarchive/archive_read_support_format_rar5.c \ |
154865e1 TK |
183 | libarchive/archive_read_support_format_raw.c \ |
184 | libarchive/archive_read_support_format_tar.c \ | |
96938015 | 185 | libarchive/archive_read_support_format_warc.c \ |
154865e1 TK |
186 | libarchive/archive_read_support_format_xar.c \ |
187 | libarchive/archive_read_support_format_zip.c \ | |
188 | libarchive/archive_string.c \ | |
189 | libarchive/archive_string.h \ | |
190 | libarchive/archive_string_composition.h \ | |
191 | libarchive/archive_string_sprintf.c \ | |
192 | libarchive/archive_util.c \ | |
45a0bce1 | 193 | libarchive/archive_version_details.c \ |
154865e1 TK |
194 | libarchive/archive_virtual.c \ |
195 | libarchive/archive_write.c \ | |
154865e1 TK |
196 | libarchive/archive_write_disk_posix.c \ |
197 | libarchive/archive_write_disk_private.h \ | |
198 | libarchive/archive_write_disk_set_standard_lookup.c \ | |
199 | libarchive/archive_write_open_fd.c \ | |
200 | libarchive/archive_write_open_file.c \ | |
201 | libarchive/archive_write_open_filename.c \ | |
202 | libarchive/archive_write_open_memory.c \ | |
203 | libarchive/archive_write_private.h \ | |
204 | libarchive/archive_write_add_filter.c \ | |
205 | libarchive/archive_write_add_filter_b64encode.c \ | |
206 | libarchive/archive_write_add_filter_by_name.c \ | |
207 | libarchive/archive_write_add_filter_bzip2.c \ | |
208 | libarchive/archive_write_add_filter_compress.c \ | |
209 | libarchive/archive_write_add_filter_grzip.c \ | |
210 | libarchive/archive_write_add_filter_gzip.c \ | |
211 | libarchive/archive_write_add_filter_lrzip.c \ | |
8c4be28f | 212 | libarchive/archive_write_add_filter_lz4.c \ |
154865e1 TK |
213 | libarchive/archive_write_add_filter_lzop.c \ |
214 | libarchive/archive_write_add_filter_none.c \ | |
215 | libarchive/archive_write_add_filter_program.c \ | |
216 | libarchive/archive_write_add_filter_uuencode.c \ | |
217 | libarchive/archive_write_add_filter_xz.c \ | |
cd63bdcd | 218 | libarchive/archive_write_add_filter_zstd.c \ |
154865e1 TK |
219 | libarchive/archive_write_set_format.c \ |
220 | libarchive/archive_write_set_format_7zip.c \ | |
221 | libarchive/archive_write_set_format_ar.c \ | |
222 | libarchive/archive_write_set_format_by_name.c \ | |
223 | libarchive/archive_write_set_format_cpio.c \ | |
224 | libarchive/archive_write_set_format_cpio_newc.c \ | |
98b127e5 | 225 | libarchive/archive_write_set_format_filter_by_ext.c \ |
154865e1 TK |
226 | libarchive/archive_write_set_format_iso9660.c \ |
227 | libarchive/archive_write_set_format_mtree.c \ | |
228 | libarchive/archive_write_set_format_pax.c \ | |
229 | libarchive/archive_write_set_format_raw.c \ | |
230 | libarchive/archive_write_set_format_shar.c \ | |
231 | libarchive/archive_write_set_format_ustar.c \ | |
232 | libarchive/archive_write_set_format_v7tar.c \ | |
233 | libarchive/archive_write_set_format_gnutar.c \ | |
667961d7 | 234 | libarchive/archive_write_set_format_warc.c \ |
154865e1 TK |
235 | libarchive/archive_write_set_format_xar.c \ |
236 | libarchive/archive_write_set_format_zip.c \ | |
237 | libarchive/archive_write_set_options.c \ | |
6c222e59 | 238 | libarchive/archive_write_set_passphrase.c \ |
724f3f91 | 239 | libarchive/archive_xxhash.h \ |
154865e1 TK |
240 | libarchive/config_freebsd.h \ |
241 | libarchive/filter_fork_posix.c \ | |
724f3f91 | 242 | libarchive/filter_fork.h \ |
20d54519 | 243 | libarchive/xxhash.c |
b3cfa26b | 244 | |
79cb8e5b | 245 | if INC_WINDOWS_FILES |
154865e1 TK |
246 | libarchive_la_SOURCES+= \ |
247 | libarchive/archive_entry_copy_bhfi.c \ | |
248 | libarchive/archive_read_disk_windows.c \ | |
249 | libarchive/archive_windows.h \ | |
250 | libarchive/archive_windows.c \ | |
251 | libarchive/archive_write_disk_windows.c \ | |
79cb8e5b CW |
252 | libarchive/filter_fork_windows.c |
253 | endif | |
254 | ||
c5013112 MM |
255 | if INC_BLAKE2 |
256 | libarchive_la_SOURCES+= \ | |
257 | libarchive/archive_blake2s_ref.c \ | |
258 | libarchive/archive_blake2sp_ref.c | |
259 | endif | |
260 | ||
f57d129d | 261 | if INC_LINUX_ACL |
93b986c3 | 262 | libarchive_la_SOURCES+= libarchive/archive_disk_acl_linux.c |
f57d129d MM |
263 | else |
264 | if INC_SUNOS_ACL | |
93b986c3 | 265 | libarchive_la_SOURCES+= libarchive/archive_disk_acl_sunos.c |
f57d129d MM |
266 | else |
267 | if INC_DARWIN_ACL | |
93b986c3 | 268 | libarchive_la_SOURCES+= libarchive/archive_disk_acl_darwin.c |
f57d129d MM |
269 | else |
270 | if INC_FREEBSD_ACL | |
93b986c3 | 271 | libarchive_la_SOURCES+= libarchive/archive_disk_acl_freebsd.c |
f57d129d MM |
272 | endif |
273 | endif | |
274 | endif | |
275 | endif | |
276 | ||
171f7927 | 277 | # -no-undefined marks that libarchive doesn't rely on symbols |
dc423134 | 278 | # defined in the application. This is mandatory for cygwin. |
b3cfa26b | 279 | libarchive_la_LDFLAGS= -no-undefined -version-info $(ARCHIVE_LIBTOOL_VERSION) |
17fd872a | 280 | libarchive_la_LIBADD= $(LTLIBICONV) |
b3cfa26b TK |
281 | |
282 | # Manpages to install | |
154865e1 TK |
283 | libarchive_man_MANS= \ |
284 | libarchive/archive_entry.3 \ | |
285 | libarchive/archive_entry_acl.3 \ | |
286 | libarchive/archive_entry_linkify.3 \ | |
287 | libarchive/archive_entry_paths.3 \ | |
288 | libarchive/archive_entry_perms.3 \ | |
289 | libarchive/archive_entry_stat.3 \ | |
290 | libarchive/archive_entry_time.3 \ | |
291 | libarchive/archive_read.3 \ | |
6c222e59 | 292 | libarchive/archive_read_add_passphrase.3 \ |
154865e1 TK |
293 | libarchive/archive_read_data.3 \ |
294 | libarchive/archive_read_disk.3 \ | |
295 | libarchive/archive_read_extract.3 \ | |
296 | libarchive/archive_read_filter.3 \ | |
297 | libarchive/archive_read_format.3 \ | |
298 | libarchive/archive_read_free.3 \ | |
299 | libarchive/archive_read_header.3 \ | |
300 | libarchive/archive_read_new.3 \ | |
301 | libarchive/archive_read_open.3 \ | |
302 | libarchive/archive_read_set_options.3 \ | |
303 | libarchive/archive_util.3 \ | |
304 | libarchive/archive_write.3 \ | |
305 | libarchive/archive_write_blocksize.3 \ | |
306 | libarchive/archive_write_data.3 \ | |
307 | libarchive/archive_write_disk.3 \ | |
308 | libarchive/archive_write_filter.3 \ | |
309 | libarchive/archive_write_finish_entry.3 \ | |
310 | libarchive/archive_write_format.3 \ | |
311 | libarchive/archive_write_free.3 \ | |
312 | libarchive/archive_write_header.3 \ | |
313 | libarchive/archive_write_new.3 \ | |
314 | libarchive/archive_write_open.3 \ | |
315 | libarchive/archive_write_set_options.3 \ | |
6c222e59 | 316 | libarchive/archive_write_set_passphrase.3 \ |
154865e1 TK |
317 | libarchive/cpio.5 \ |
318 | libarchive/libarchive.3 \ | |
319 | libarchive/libarchive_changes.3 \ | |
320 | libarchive/libarchive_internals.3 \ | |
321 | libarchive/libarchive-formats.5 \ | |
322 | libarchive/mtree.5 \ | |
b3cfa26b TK |
323 | libarchive/tar.5 |
324 | ||
325 | # Additional libarchive files to include in the distribution | |
154865e1 TK |
326 | libarchive_EXTRA_DIST= \ |
327 | libarchive/archive_windows.c \ | |
328 | libarchive/archive_windows.h \ | |
329 | libarchive/filter_fork_windows.c \ | |
330 | libarchive/CMakeLists.txt \ | |
b3cfa26b TK |
331 | $(libarchive_man_MANS) |
332 | ||
bafc3c6b TK |
333 | # pkgconfig |
334 | pkgconfigdir = $(libdir)/pkgconfig | |
335 | pkgconfig_DATA = build/pkgconfig/libarchive.pc | |
336 | ||
aa95a749 AM |
337 | # Sources needed by all test programs |
338 | test_utils_SOURCES= \ | |
7cc97c98 | 339 | test_utils/test_utils.c \ |
47ac1b53 | 340 | test_utils/test_utils.h \ |
52d5a14c MM |
341 | test_utils/test_main.c \ |
342 | test_utils/test_common.h | |
aa95a749 | 343 | |
b3cfa26b TK |
344 | # |
345 | # | |
346 | # libarchive_test program | |
347 | # | |
348 | # | |
154865e1 TK |
349 | libarchive_test_SOURCES= \ |
350 | $(libarchive_la_SOURCES) \ | |
351 | $(test_utils_SOURCES) \ | |
154865e1 TK |
352 | libarchive/test/read_open_memory.c \ |
353 | libarchive/test/test.h \ | |
154865e1 TK |
354 | libarchive/test/test_acl_nfs4.c \ |
355 | libarchive/test/test_acl_pax.c \ | |
cb869b40 MM |
356 | libarchive/test/test_acl_platform_nfs4.c \ |
357 | libarchive/test/test_acl_platform_posix1e.c \ | |
154865e1 | 358 | libarchive/test/test_acl_posix1e.c \ |
379867ec | 359 | libarchive/test/test_acl_text.c \ |
154865e1 TK |
360 | libarchive/test/test_archive_api_feature.c \ |
361 | libarchive/test/test_archive_clear_error.c \ | |
362 | libarchive/test/test_archive_cmdline.c \ | |
04ba9678 | 363 | libarchive/test/test_archive_digest.c \ |
154865e1 TK |
364 | libarchive/test/test_archive_getdate.c \ |
365 | libarchive/test/test_archive_match_owner.c \ | |
366 | libarchive/test/test_archive_match_path.c \ | |
367 | libarchive/test/test_archive_match_time.c \ | |
368 | libarchive/test/test_archive_pathmatch.c \ | |
6c222e59 | 369 | libarchive/test/test_archive_read_add_passphrase.c \ |
154865e1 TK |
370 | libarchive/test/test_archive_read_close_twice.c \ |
371 | libarchive/test/test_archive_read_close_twice_open_fd.c \ | |
372 | libarchive/test/test_archive_read_close_twice_open_filename.c \ | |
373 | libarchive/test/test_archive_read_multiple_data_objects.c \ | |
374 | libarchive/test/test_archive_read_next_header_empty.c \ | |
375 | libarchive/test/test_archive_read_next_header_raw.c \ | |
376 | libarchive/test/test_archive_read_open2.c \ | |
377 | libarchive/test/test_archive_read_set_filter_option.c \ | |
378 | libarchive/test/test_archive_read_set_format_option.c \ | |
379 | libarchive/test/test_archive_read_set_option.c \ | |
380 | libarchive/test/test_archive_read_set_options.c \ | |
381 | libarchive/test/test_archive_read_support.c \ | |
382 | libarchive/test/test_archive_set_error.c \ | |
383 | libarchive/test/test_archive_string.c \ | |
384 | libarchive/test/test_archive_string_conversion.c \ | |
385 | libarchive/test/test_archive_write_add_filter_by_name.c \ | |
386 | libarchive/test/test_archive_write_set_filter_option.c \ | |
387 | libarchive/test/test_archive_write_set_format_by_name.c \ | |
8c55eada | 388 | libarchive/test/test_archive_write_set_format_filter_by_ext.c \ |
154865e1 TK |
389 | libarchive/test/test_archive_write_set_format_option.c \ |
390 | libarchive/test/test_archive_write_set_option.c \ | |
391 | libarchive/test/test_archive_write_set_options.c \ | |
6c222e59 | 392 | libarchive/test/test_archive_write_set_passphrase.c \ |
154865e1 TK |
393 | libarchive/test/test_bad_fd.c \ |
394 | libarchive/test/test_compat_bzip2.c \ | |
395 | libarchive/test/test_compat_cpio.c \ | |
396 | libarchive/test/test_compat_gtar.c \ | |
397 | libarchive/test/test_compat_gzip.c \ | |
724f3f91 | 398 | libarchive/test/test_compat_lz4.c \ |
154865e1 TK |
399 | libarchive/test/test_compat_lzip.c \ |
400 | libarchive/test/test_compat_lzma.c \ | |
401 | libarchive/test/test_compat_lzop.c \ | |
402 | libarchive/test/test_compat_mac.c \ | |
403 | libarchive/test/test_compat_pax_libarchive_2x.c \ | |
2d2b3e92 | 404 | libarchive/test/test_compat_perl_archive_tar.c \ |
9b9cdbec | 405 | libarchive/test/test_compat_plexus_archiver_tar.c \ |
154865e1 TK |
406 | libarchive/test/test_compat_solaris_tar_acl.c \ |
407 | libarchive/test/test_compat_solaris_pax_sparse.c \ | |
379867ec | 408 | libarchive/test/test_compat_star_acl.c \ |
154865e1 TK |
409 | libarchive/test/test_compat_tar_hardlink.c \ |
410 | libarchive/test/test_compat_uudecode.c \ | |
2b79319f | 411 | libarchive/test/test_compat_uudecode_large.c \ |
154865e1 TK |
412 | libarchive/test/test_compat_xz.c \ |
413 | libarchive/test/test_compat_zip.c \ | |
cd63bdcd | 414 | libarchive/test/test_compat_zstd.c \ |
154865e1 TK |
415 | libarchive/test/test_empty_write.c \ |
416 | libarchive/test/test_entry.c \ | |
417 | libarchive/test/test_entry_strmode.c \ | |
418 | libarchive/test/test_extattr_freebsd.c \ | |
419 | libarchive/test/test_filter_count.c \ | |
420 | libarchive/test/test_fuzz.c \ | |
421 | libarchive/test/test_gnutar_filename_encoding.c \ | |
422 | libarchive/test/test_link_resolver.c \ | |
423 | libarchive/test/test_open_failure.c \ | |
424 | libarchive/test/test_open_fd.c \ | |
425 | libarchive/test/test_open_file.c \ | |
426 | libarchive/test/test_open_filename.c \ | |
427 | libarchive/test/test_pax_filename_encoding.c \ | |
428 | libarchive/test/test_read_data_large.c \ | |
429 | libarchive/test/test_read_disk.c \ | |
430 | libarchive/test/test_read_disk_directory_traversals.c \ | |
431 | libarchive/test/test_read_disk_entry_from_file.c \ | |
432 | libarchive/test/test_read_extract.c \ | |
433 | libarchive/test/test_read_file_nonexistent.c \ | |
618618c8 | 434 | libarchive/test/test_read_filter_compress.c \ |
154865e1 TK |
435 | libarchive/test/test_read_filter_grzip.c \ |
436 | libarchive/test/test_read_filter_lrzip.c \ | |
437 | libarchive/test/test_read_filter_lzop.c \ | |
438 | libarchive/test/test_read_filter_lzop_multiple_parts.c \ | |
439 | libarchive/test/test_read_filter_program.c \ | |
440 | libarchive/test/test_read_filter_program_signature.c \ | |
441 | libarchive/test/test_read_filter_uudecode.c \ | |
442 | libarchive/test/test_read_format_7zip.c \ | |
443 | libarchive/test/test_read_format_7zip_encryption_data.c \ | |
444 | libarchive/test/test_read_format_7zip_encryption_partially.c \ | |
445 | libarchive/test/test_read_format_7zip_encryption_header.c \ | |
d094dc02 | 446 | libarchive/test/test_read_format_7zip_malformed.c \ |
154865e1 TK |
447 | libarchive/test/test_read_format_ar.c \ |
448 | libarchive/test/test_read_format_cab.c \ | |
449 | libarchive/test/test_read_format_cab_filename.c \ | |
450 | libarchive/test/test_read_format_cpio_afio.c \ | |
451 | libarchive/test/test_read_format_cpio_bin.c \ | |
452 | libarchive/test/test_read_format_cpio_bin_Z.c \ | |
453 | libarchive/test/test_read_format_cpio_bin_be.c \ | |
454 | libarchive/test/test_read_format_cpio_bin_bz2.c \ | |
455 | libarchive/test/test_read_format_cpio_bin_gz.c \ | |
68321d4c | 456 | libarchive/test/test_read_format_cpio_bin_le.c \ |
154865e1 TK |
457 | libarchive/test/test_read_format_cpio_bin_lzip.c \ |
458 | libarchive/test/test_read_format_cpio_bin_lzma.c \ | |
459 | libarchive/test/test_read_format_cpio_bin_xz.c \ | |
460 | libarchive/test/test_read_format_cpio_filename.c \ | |
461 | libarchive/test/test_read_format_cpio_odc.c \ | |
462 | libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.c \ | |
463 | libarchive/test/test_read_format_cpio_svr4_gzip.c \ | |
464 | libarchive/test/test_read_format_cpio_svr4_gzip_rpm.c \ | |
465 | libarchive/test/test_read_format_cpio_svr4c_Z.c \ | |
466 | libarchive/test/test_read_format_empty.c \ | |
467 | libarchive/test/test_read_format_gtar_filename.c \ | |
468 | libarchive/test/test_read_format_gtar_gz.c \ | |
469 | libarchive/test/test_read_format_gtar_lzma.c \ | |
470 | libarchive/test/test_read_format_gtar_sparse.c \ | |
bf4f6ec6 | 471 | libarchive/test/test_read_format_gtar_sparse_skip_entry.c \ |
154865e1 TK |
472 | libarchive/test/test_read_format_iso_Z.c \ |
473 | libarchive/test/test_read_format_iso_multi_extent.c \ | |
474 | libarchive/test/test_read_format_iso_xorriso.c \ | |
475 | libarchive/test/test_read_format_isojoliet_bz2.c \ | |
476 | libarchive/test/test_read_format_isojoliet_long.c \ | |
477 | libarchive/test/test_read_format_isojoliet_rr.c \ | |
478 | libarchive/test/test_read_format_isojoliet_versioned.c \ | |
479 | libarchive/test/test_read_format_isorr_bz2.c \ | |
480 | libarchive/test/test_read_format_isorr_ce.c \ | |
481 | libarchive/test/test_read_format_isorr_new_bz2.c \ | |
482 | libarchive/test/test_read_format_isorr_rr_moved.c \ | |
483 | libarchive/test/test_read_format_isozisofs_bz2.c \ | |
484 | libarchive/test/test_read_format_lha.c \ | |
3ce11df0 | 485 | libarchive/test/test_read_format_lha_bugfix_0.c \ |
154865e1 TK |
486 | libarchive/test/test_read_format_lha_filename.c \ |
487 | libarchive/test/test_read_format_mtree.c \ | |
eec077f5 | 488 | libarchive/test/test_read_format_mtree_crash747.c \ |
154865e1 TK |
489 | libarchive/test/test_read_format_pax_bz2.c \ |
490 | libarchive/test/test_read_format_rar.c \ | |
491 | libarchive/test/test_read_format_rar_encryption_data.c \ | |
492 | libarchive/test/test_read_format_rar_encryption_partially.c \ | |
493 | libarchive/test/test_read_format_rar_encryption_header.c \ | |
206615fc | 494 | libarchive/test/test_read_format_rar_invalid1.c \ |
58167a9a | 495 | libarchive/test/test_read_format_rar5.c \ |
154865e1 TK |
496 | libarchive/test/test_read_format_raw.c \ |
497 | libarchive/test/test_read_format_tar.c \ | |
498 | libarchive/test/test_read_format_tar_concatenated.c \ | |
499 | libarchive/test/test_read_format_tar_empty_pax.c \ | |
500 | libarchive/test/test_read_format_tar_empty_filename.c \ | |
501 | libarchive/test/test_read_format_tar_filename.c \ | |
502 | libarchive/test/test_read_format_tbz.c \ | |
503 | libarchive/test/test_read_format_tgz.c \ | |
504 | libarchive/test/test_read_format_tlz.c \ | |
505 | libarchive/test/test_read_format_txz.c \ | |
506 | libarchive/test/test_read_format_tz.c \ | |
507 | libarchive/test/test_read_format_ustar_filename.c \ | |
c81efb99 | 508 | libarchive/test/test_read_format_warc.c \ |
154865e1 TK |
509 | libarchive/test/test_read_format_xar.c \ |
510 | libarchive/test/test_read_format_zip.c \ | |
511 | libarchive/test/test_read_format_zip_comment_stored.c \ | |
512 | libarchive/test/test_read_format_zip_encryption_data.c \ | |
513 | libarchive/test/test_read_format_zip_encryption_partially.c \ | |
514 | libarchive/test/test_read_format_zip_encryption_header.c \ | |
515 | libarchive/test/test_read_format_zip_filename.c \ | |
44b3ef5d | 516 | libarchive/test/test_read_format_zip_high_compression.c \ |
2ecf8d1c | 517 | libarchive/test/test_read_format_zip_jar.c \ |
154865e1 | 518 | libarchive/test/test_read_format_zip_mac_metadata.c \ |
9e0689cf | 519 | libarchive/test/test_read_format_zip_malformed.c \ |
618618c8 | 520 | libarchive/test/test_read_format_zip_msdos.c \ |
1ad25e99 | 521 | libarchive/test/test_read_format_zip_nested.c \ |
154865e1 TK |
522 | libarchive/test/test_read_format_zip_nofiletype.c \ |
523 | libarchive/test/test_read_format_zip_padded.c \ | |
524 | libarchive/test/test_read_format_zip_sfx.c \ | |
8145520c | 525 | libarchive/test/test_read_format_zip_traditional_encryption_data.c \ |
c3c366eb MN |
526 | libarchive/test/test_read_format_zip_winzip_aes.c \ |
527 | libarchive/test/test_read_format_zip_winzip_aes_large.c \ | |
154865e1 | 528 | libarchive/test/test_read_format_zip_zip64.c \ |
9bdd4b3c | 529 | libarchive/test/test_read_format_zip_with_invalid_traditional_eocd.c \ |
154865e1 | 530 | libarchive/test/test_read_large.c \ |
efd756be | 531 | libarchive/test/test_read_pax_schily_xattr.c \ |
154865e1 TK |
532 | libarchive/test/test_read_pax_truncated.c \ |
533 | libarchive/test/test_read_position.c \ | |
534 | libarchive/test/test_read_set_format.c \ | |
6e06b1c8 | 535 | libarchive/test/test_read_too_many_filters.c \ |
154865e1 TK |
536 | libarchive/test/test_read_truncated.c \ |
537 | libarchive/test/test_read_truncated_filter.c \ | |
538 | libarchive/test/test_sparse_basic.c \ | |
539 | libarchive/test/test_tar_filenames.c \ | |
540 | libarchive/test/test_tar_large.c \ | |
541 | libarchive/test/test_ustar_filenames.c \ | |
542 | libarchive/test/test_ustar_filename_encoding.c \ | |
05410637 | 543 | libarchive/test/test_warn_missing_hardlink_target.c \ |
154865e1 TK |
544 | libarchive/test/test_write_disk.c \ |
545 | libarchive/test/test_write_disk_appledouble.c \ | |
546 | libarchive/test/test_write_disk_failures.c \ | |
547 | libarchive/test/test_write_disk_hardlink.c \ | |
548 | libarchive/test/test_write_disk_hfs_compression.c \ | |
549 | libarchive/test/test_write_disk_lookup.c \ | |
550 | libarchive/test/test_write_disk_mac_metadata.c \ | |
551 | libarchive/test/test_write_disk_no_hfs_compression.c \ | |
552 | libarchive/test/test_write_disk_perms.c \ | |
553 | libarchive/test/test_write_disk_secure.c \ | |
063ea3ea TK |
554 | libarchive/test/test_write_disk_secure744.c \ |
555 | libarchive/test/test_write_disk_secure745.c \ | |
556 | libarchive/test/test_write_disk_secure746.c \ | |
154865e1 TK |
557 | libarchive/test/test_write_disk_sparse.c \ |
558 | libarchive/test/test_write_disk_symlink.c \ | |
559 | libarchive/test/test_write_disk_times.c \ | |
560 | libarchive/test/test_write_filter_b64encode.c \ | |
561 | libarchive/test/test_write_filter_bzip2.c \ | |
562 | libarchive/test/test_write_filter_compress.c \ | |
563 | libarchive/test/test_write_filter_gzip.c \ | |
564 | libarchive/test/test_write_filter_gzip_timestamp.c \ | |
565 | libarchive/test/test_write_filter_lrzip.c \ | |
8c4be28f | 566 | libarchive/test/test_write_filter_lz4.c \ |
154865e1 TK |
567 | libarchive/test/test_write_filter_lzip.c \ |
568 | libarchive/test/test_write_filter_lzma.c \ | |
569 | libarchive/test/test_write_filter_lzop.c \ | |
570 | libarchive/test/test_write_filter_program.c \ | |
571 | libarchive/test/test_write_filter_uuencode.c \ | |
572 | libarchive/test/test_write_filter_xz.c \ | |
cd63bdcd | 573 | libarchive/test/test_write_filter_zstd.c \ |
154865e1 TK |
574 | libarchive/test/test_write_format_7zip.c \ |
575 | libarchive/test/test_write_format_7zip_empty.c \ | |
576 | libarchive/test/test_write_format_7zip_large.c \ | |
577 | libarchive/test/test_write_format_ar.c \ | |
578 | libarchive/test/test_write_format_cpio.c \ | |
579 | libarchive/test/test_write_format_cpio_empty.c \ | |
580 | libarchive/test/test_write_format_cpio_newc.c \ | |
581 | libarchive/test/test_write_format_cpio_odc.c \ | |
582 | libarchive/test/test_write_format_gnutar.c \ | |
b4ce6286 | 583 | libarchive/test/test_write_format_gnutar_filenames.c \ |
154865e1 TK |
584 | libarchive/test/test_write_format_iso9660.c \ |
585 | libarchive/test/test_write_format_iso9660_boot.c \ | |
586 | libarchive/test/test_write_format_iso9660_empty.c \ | |
587 | libarchive/test/test_write_format_iso9660_filename.c \ | |
588 | libarchive/test/test_write_format_iso9660_zisofs.c \ | |
589 | libarchive/test/test_write_format_mtree.c \ | |
590 | libarchive/test/test_write_format_mtree_absolute_path.c \ | |
591 | libarchive/test/test_write_format_mtree_classic.c \ | |
f83da353 | 592 | libarchive/test/test_write_format_mtree_classic_indent.c\ |
154865e1 TK |
593 | libarchive/test/test_write_format_mtree_fflags.c \ |
594 | libarchive/test/test_write_format_mtree_no_separator.c \ | |
2569524b | 595 | libarchive/test/test_write_format_mtree_quoted_filename.c\ |
154865e1 TK |
596 | libarchive/test/test_write_format_pax.c \ |
597 | libarchive/test/test_write_format_raw.c \ | |
598 | libarchive/test/test_write_format_raw_b64.c \ | |
599 | libarchive/test/test_write_format_shar_empty.c \ | |
600 | libarchive/test/test_write_format_tar.c \ | |
601 | libarchive/test/test_write_format_tar_empty.c \ | |
602 | libarchive/test/test_write_format_tar_sparse.c \ | |
603 | libarchive/test/test_write_format_tar_ustar.c \ | |
604 | libarchive/test/test_write_format_tar_v7tar.c \ | |
af784482 SF |
605 | libarchive/test/test_write_format_warc.c \ |
606 | libarchive/test/test_write_format_warc_empty.c \ | |
154865e1 TK |
607 | libarchive/test/test_write_format_xar.c \ |
608 | libarchive/test/test_write_format_xar_empty.c \ | |
609 | libarchive/test/test_write_format_zip.c \ | |
610 | libarchive/test/test_write_format_zip_compression_store.c \ | |
611 | libarchive/test/test_write_format_zip_empty.c \ | |
612 | libarchive/test/test_write_format_zip_empty_zip64.c \ | |
613 | libarchive/test/test_write_format_zip_file.c \ | |
614 | libarchive/test/test_write_format_zip_file_zip64.c \ | |
615 | libarchive/test/test_write_format_zip_large.c \ | |
616 | libarchive/test/test_write_format_zip_zip64.c \ | |
617 | libarchive/test/test_write_open_memory.c \ | |
618 | libarchive/test/test_write_read_format_zip.c \ | |
365a91de | 619 | libarchive/test/test_xattr_platform.c \ |
83c67d6c | 620 | libarchive/test/test_zip_filename_encoding.c |
b3cfa26b | 621 | |
52d5a14c MM |
622 | libarchive_test_CPPFLAGS= \ |
623 | -I$(top_srcdir)/libarchive \ | |
624 | -I$(top_srcdir)/libarchive/test \ | |
625 | -I$(top_srcdir)/test_utils \ | |
626 | -I$(top_builddir)/libarchive/test \ | |
627 | -DLIBARCHIVE_STATIC $(PLATFORMCPPFLAGS) | |
628 | ||
17fd872a | 629 | libarchive_test_LDADD= $(LTLIBICONV) |
79cb8e5b | 630 | |
b3cfa26b TK |
631 | # The "list.h" file just lists all of the tests defined in all of the sources. |
632 | # Building it automatically provides a sanity-check on libarchive_test_SOURCES | |
633 | # above. | |
634 | libarchive/test/list.h: Makefile | |
1c6adda3 | 635 | $(MKDIR_P) libarchive/test |
b06753b6 | 636 | cat $(top_srcdir)/libarchive/test/test_*.c | grep '^DEFINE_TEST' > libarchive/test/list.h |
b3cfa26b | 637 | |
1e5f600e | 638 | libarchive_TESTS_ENVIRONMENT= LIBARCHIVE_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/libarchive/test LRZIP=NOCONFIG |
b3cfa26b TK |
639 | |
640 | libarchive_test_EXTRA_DIST=\ | |
154865e1 | 641 | libarchive/test/list.h \ |
379867ec MM |
642 | libarchive/test/test_acl_pax_posix1e.tar.uu \ |
643 | libarchive/test/test_acl_pax_nfs4.tar.uu \ | |
154865e1 TK |
644 | libarchive/test/test_archive_string_conversion.txt.Z.uu \ |
645 | libarchive/test/test_compat_bzip2_1.tbz.uu \ | |
646 | libarchive/test/test_compat_bzip2_2.tbz.uu \ | |
647 | libarchive/test/test_compat_cpio_1.cpio.uu \ | |
648 | libarchive/test/test_compat_gtar_1.tar.uu \ | |
929722d7 | 649 | libarchive/test/test_compat_gtar_2.tar.uu \ |
154865e1 TK |
650 | libarchive/test/test_compat_gzip_1.tgz.uu \ |
651 | libarchive/test/test_compat_gzip_2.tgz.uu \ | |
724f3f91 MN |
652 | libarchive/test/test_compat_lz4_1.tar.lz4.uu \ |
653 | libarchive/test/test_compat_lz4_2.tar.lz4.uu \ | |
654 | libarchive/test/test_compat_lz4_3.tar.lz4.uu \ | |
655 | libarchive/test/test_compat_lz4_B4.tar.lz4.uu \ | |
656 | libarchive/test/test_compat_lz4_B4BD.tar.lz4.uu \ | |
657 | libarchive/test/test_compat_lz4_B4BDBX.tar.lz4.uu \ | |
658 | libarchive/test/test_compat_lz4_B5.tar.lz4.uu \ | |
659 | libarchive/test/test_compat_lz4_B5BD.tar.lz4.uu \ | |
660 | libarchive/test/test_compat_lz4_B6.tar.lz4.uu \ | |
661 | libarchive/test/test_compat_lz4_B6BD.tar.lz4.uu \ | |
662 | libarchive/test/test_compat_lz4_B7.tar.lz4.uu \ | |
663 | libarchive/test/test_compat_lz4_B7BD.tar.lz4.uu \ | |
154865e1 TK |
664 | libarchive/test/test_compat_lzip_1.tlz.uu \ |
665 | libarchive/test/test_compat_lzip_2.tlz.uu \ | |
666 | libarchive/test/test_compat_lzma_1.tlz.uu \ | |
667 | libarchive/test/test_compat_lzma_2.tlz.uu \ | |
668 | libarchive/test/test_compat_lzma_3.tlz.uu \ | |
669 | libarchive/test/test_compat_lzop_1.tar.lzo.uu \ | |
670 | libarchive/test/test_compat_lzop_2.tar.lzo.uu \ | |
671 | libarchive/test/test_compat_lzop_3.tar.lzo.uu \ | |
672 | libarchive/test/test_compat_mac-1.tar.Z.uu \ | |
673 | libarchive/test/test_compat_mac-2.tar.Z.uu \ | |
674 | libarchive/test/test_compat_pax_libarchive_2x.tar.Z.uu \ | |
2d2b3e92 | 675 | libarchive/test/test_compat_perl_archive_tar.tar.uu \ |
1523af76 | 676 | libarchive/test/test_compat_plexus_archiver_tar.tar.uu \ |
154865e1 TK |
677 | libarchive/test/test_compat_solaris_pax_sparse_1.pax.Z.uu \ |
678 | libarchive/test/test_compat_solaris_pax_sparse_2.pax.Z.uu \ | |
679 | libarchive/test/test_compat_solaris_tar_acl.tar.uu \ | |
379867ec | 680 | libarchive/test/test_compat_star_acl_nfs4.tar.uu \ |
1e3a1ed7 | 681 | libarchive/test/test_compat_star_acl_posix1e.tar.uu \ |
154865e1 | 682 | libarchive/test/test_compat_tar_hardlink_1.tar.uu \ |
2b79319f | 683 | libarchive/test/test_compat_uudecode_large.tar.Z.uu \ |
154865e1 TK |
684 | libarchive/test/test_compat_xz_1.txz.uu \ |
685 | libarchive/test/test_compat_zip_1.zip.uu \ | |
686 | libarchive/test/test_compat_zip_2.zip.uu \ | |
687 | libarchive/test/test_compat_zip_3.zip.uu \ | |
688 | libarchive/test/test_compat_zip_4.zip.uu \ | |
689 | libarchive/test/test_compat_zip_5.zip.uu \ | |
690 | libarchive/test/test_compat_zip_6.zip.uu \ | |
691 | libarchive/test/test_compat_zip_7.xps.uu \ | |
e8e0d6c3 | 692 | libarchive/test/test_compat_zip_8.zip.uu \ |
cd63bdcd | 693 | libarchive/test/test_compat_zstd_1.tar.zst.uu \ |
154865e1 TK |
694 | libarchive/test/test_fuzz.cab.uu \ |
695 | libarchive/test/test_fuzz.lzh.uu \ | |
696 | libarchive/test/test_fuzz_1.iso.Z.uu \ | |
697 | libarchive/test/test_pax_filename_encoding.tar.uu \ | |
a5b03cc1 AM |
698 | libarchive/test/test_rar_multivolume_multiple_files.part1.rar.uu \ |
699 | libarchive/test/test_rar_multivolume_multiple_files.part2.rar.uu \ | |
700 | libarchive/test/test_rar_multivolume_multiple_files.part3.rar.uu \ | |
701 | libarchive/test/test_rar_multivolume_multiple_files.part4.rar.uu \ | |
702 | libarchive/test/test_rar_multivolume_multiple_files.part5.rar.uu \ | |
703 | libarchive/test/test_rar_multivolume_multiple_files.part6.rar.uu \ | |
154865e1 TK |
704 | libarchive/test/test_rar_multivolume_single_file.part1.rar.uu \ |
705 | libarchive/test/test_rar_multivolume_single_file.part2.rar.uu \ | |
706 | libarchive/test/test_rar_multivolume_single_file.part3.rar.uu \ | |
72d27a8c AM |
707 | libarchive/test/test_rar_multivolume_uncompressed_files.part01.rar.uu \ |
708 | libarchive/test/test_rar_multivolume_uncompressed_files.part02.rar.uu \ | |
709 | libarchive/test/test_rar_multivolume_uncompressed_files.part03.rar.uu \ | |
710 | libarchive/test/test_rar_multivolume_uncompressed_files.part04.rar.uu \ | |
711 | libarchive/test/test_rar_multivolume_uncompressed_files.part05.rar.uu \ | |
712 | libarchive/test/test_rar_multivolume_uncompressed_files.part06.rar.uu \ | |
713 | libarchive/test/test_rar_multivolume_uncompressed_files.part07.rar.uu \ | |
714 | libarchive/test/test_rar_multivolume_uncompressed_files.part08.rar.uu \ | |
715 | libarchive/test/test_rar_multivolume_uncompressed_files.part09.rar.uu \ | |
716 | libarchive/test/test_rar_multivolume_uncompressed_files.part10.rar.uu \ | |
154865e1 TK |
717 | libarchive/test/test_read_filter_grzip.tar.grz.uu \ |
718 | libarchive/test/test_read_filter_lrzip.tar.lrz.uu \ | |
719 | libarchive/test/test_read_filter_lzop.tar.lzo.uu \ | |
720 | libarchive/test/test_read_filter_lzop_multiple_parts.tar.lzo.uu \ | |
471338a9 | 721 | libarchive/test/test_read_format_mtree_crash747.mtree.bz2.uu \ |
154865e1 TK |
722 | libarchive/test/test_read_format_7zip_bcj2_bzip2.7z.uu \ |
723 | libarchive/test/test_read_format_7zip_bcj2_copy_1.7z.uu \ | |
724 | libarchive/test/test_read_format_7zip_bcj2_copy_2.7z.uu \ | |
725 | libarchive/test/test_read_format_7zip_bcj2_copy_lzma.7z.uu \ | |
726 | libarchive/test/test_read_format_7zip_bcj2_deflate.7z.uu \ | |
727 | libarchive/test/test_read_format_7zip_bcj2_lzma1_1.7z.uu \ | |
728 | libarchive/test/test_read_format_7zip_bcj2_lzma1_2.7z.uu \ | |
729 | libarchive/test/test_read_format_7zip_bcj2_lzma2_1.7z.uu \ | |
730 | libarchive/test/test_read_format_7zip_bcj2_lzma2_2.7z.uu \ | |
731 | libarchive/test/test_read_format_7zip_bcj_bzip2.7z.uu \ | |
732 | libarchive/test/test_read_format_7zip_bcj_copy.7z.uu \ | |
733 | libarchive/test/test_read_format_7zip_bcj_deflate.7z.uu \ | |
734 | libarchive/test/test_read_format_7zip_bcj_lzma1.7z.uu \ | |
735 | libarchive/test/test_read_format_7zip_bcj_lzma2.7z.uu \ | |
736 | libarchive/test/test_read_format_7zip_bzip2.7z.uu \ | |
737 | libarchive/test/test_read_format_7zip_copy.7z.uu \ | |
738 | libarchive/test/test_read_format_7zip_copy_2.7z.uu \ | |
739 | libarchive/test/test_read_format_7zip_deflate.7z.uu \ | |
740 | libarchive/test/test_read_format_7zip_delta_lzma1.7z.uu \ | |
741 | libarchive/test/test_read_format_7zip_delta_lzma2.7z.uu \ | |
742 | libarchive/test/test_read_format_7zip_empty_archive.7z.uu \ | |
743 | libarchive/test/test_read_format_7zip_empty_file.7z.uu \ | |
744 | libarchive/test/test_read_format_7zip_encryption.7z.uu \ | |
745 | libarchive/test/test_read_format_7zip_encryption_header.7z.uu \ | |
746 | libarchive/test/test_read_format_7zip_encryption_partially.7z.uu \ | |
747 | libarchive/test/test_read_format_7zip_lzma1.7z.uu \ | |
748 | libarchive/test/test_read_format_7zip_lzma1_2.7z.uu \ | |
749 | libarchive/test/test_read_format_7zip_lzma1_lzma2.7z.uu \ | |
750 | libarchive/test/test_read_format_7zip_lzma2.7z.uu \ | |
d094dc02 TK |
751 | libarchive/test/test_read_format_7zip_malformed.7z.uu \ |
752 | libarchive/test/test_read_format_7zip_malformed2.7z.uu \ | |
154865e1 TK |
753 | libarchive/test/test_read_format_7zip_ppmd.7z.uu \ |
754 | libarchive/test/test_read_format_7zip_symbolic_name.7z.uu \ | |
755 | libarchive/test/test_read_format_ar.ar.uu \ | |
756 | libarchive/test/test_read_format_cab_1.cab.uu \ | |
757 | libarchive/test/test_read_format_cab_2.cab.uu \ | |
758 | libarchive/test/test_read_format_cab_3.cab.uu \ | |
759 | libarchive/test/test_read_format_cab_filename_cp932.cab.uu \ | |
760 | libarchive/test/test_read_format_cpio_bin_be.cpio.uu \ | |
68321d4c | 761 | libarchive/test/test_read_format_cpio_bin_le.cpio.uu \ |
154865e1 TK |
762 | libarchive/test/test_read_format_cpio_filename_cp866.cpio.uu \ |
763 | libarchive/test/test_read_format_cpio_filename_eucjp.cpio.uu \ | |
764 | libarchive/test/test_read_format_cpio_filename_koi8r.cpio.uu \ | |
765 | libarchive/test/test_read_format_cpio_filename_utf8_jp.cpio.uu \ | |
766 | libarchive/test/test_read_format_cpio_filename_utf8_ru.cpio.uu \ | |
767 | libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.rpm.uu \ | |
768 | libarchive/test/test_read_format_cpio_svr4_gzip_rpm.rpm.uu \ | |
769 | libarchive/test/test_read_format_gtar_filename_cp866.tar.Z.uu \ | |
770 | libarchive/test/test_read_format_gtar_filename_eucjp.tar.Z.uu \ | |
771 | libarchive/test/test_read_format_gtar_filename_koi8r.tar.Z.uu \ | |
772 | libarchive/test/test_read_format_gtar_sparse_1_13.tar.uu \ | |
773 | libarchive/test/test_read_format_gtar_sparse_1_17.tar.uu \ | |
cf6ad4ba TK |
774 | libarchive/test/test_read_format_gtar_sparse_1_17_posix00.tar.uu \ |
775 | libarchive/test/test_read_format_gtar_sparse_1_17_posix01.tar.uu \ | |
776 | libarchive/test/test_read_format_gtar_sparse_1_17_posix10.tar.uu \ | |
b3cfa26b | 777 | libarchive/test/test_read_format_gtar_sparse_1_17_posix10_modified.tar.uu \ |
bf4f6ec6 | 778 | libarchive/test/test_read_format_gtar_sparse_skip_entry.tar.Z.uu \ |
154865e1 TK |
779 | libarchive/test/test_read_format_iso.iso.Z.uu \ |
780 | libarchive/test/test_read_format_iso_2.iso.Z.uu \ | |
781 | libarchive/test/test_read_format_iso_joliet.iso.Z.uu \ | |
782 | libarchive/test/test_read_format_iso_joliet_by_nero.iso.Z.uu \ | |
783 | libarchive/test/test_read_format_iso_joliet_long.iso.Z.uu \ | |
784 | libarchive/test/test_read_format_iso_joliet_rockridge.iso.Z.uu \ | |
785 | libarchive/test/test_read_format_iso_multi_extent.iso.Z.uu \ | |
786 | libarchive/test/test_read_format_iso_rockridge.iso.Z.uu \ | |
787 | libarchive/test/test_read_format_iso_rockridge_ce.iso.Z.uu \ | |
788 | libarchive/test/test_read_format_iso_rockridge_new.iso.Z.uu \ | |
789 | libarchive/test/test_read_format_iso_rockridge_rr_moved.iso.Z.uu \ | |
790 | libarchive/test/test_read_format_iso_xorriso.iso.Z.uu \ | |
791 | libarchive/test/test_read_format_iso_zisofs.iso.Z.uu \ | |
3ce11df0 | 792 | libarchive/test/test_read_format_lha_bugfix_0.lzh.uu \ |
154865e1 TK |
793 | libarchive/test/test_read_format_lha_filename_cp932.lzh.uu \ |
794 | libarchive/test/test_read_format_lha_header0.lzh.uu \ | |
795 | libarchive/test/test_read_format_lha_header1.lzh.uu \ | |
796 | libarchive/test/test_read_format_lha_header2.lzh.uu \ | |
797 | libarchive/test/test_read_format_lha_header3.lzh.uu \ | |
798 | libarchive/test/test_read_format_lha_lh0.lzh.uu \ | |
799 | libarchive/test/test_read_format_lha_lh6.lzh.uu \ | |
800 | libarchive/test/test_read_format_lha_lh7.lzh.uu \ | |
801 | libarchive/test/test_read_format_lha_withjunk.lzh.uu \ | |
802 | libarchive/test/test_read_format_mtree.mtree.uu \ | |
803 | libarchive/test/test_read_format_mtree_nomagic.mtree.uu \ | |
804 | libarchive/test/test_read_format_mtree_nomagic2.mtree.uu \ | |
805 | libarchive/test/test_read_format_mtree_nomagic3.mtree.uu \ | |
806 | libarchive/test/test_read_format_rar.rar.uu \ | |
807 | libarchive/test/test_read_format_rar_binary_data.rar.uu \ | |
808 | libarchive/test/test_read_format_rar_compress_best.rar.uu \ | |
809 | libarchive/test/test_read_format_rar_compress_normal.rar.uu \ | |
810 | libarchive/test/test_read_format_rar_encryption_data.rar.uu \ | |
811 | libarchive/test/test_read_format_rar_encryption_header.rar.uu \ | |
812 | libarchive/test/test_read_format_rar_encryption_partially.rar.uu \ | |
73f0cb16 | 813 | libarchive/test/test_read_format_rar_invalid1.rar.uu \ |
154865e1 TK |
814 | libarchive/test/test_read_format_rar_multi_lzss_blocks.rar.uu \ |
815 | libarchive/test/test_read_format_rar_multivolume.part0001.rar.uu \ | |
816 | libarchive/test/test_read_format_rar_multivolume.part0002.rar.uu \ | |
817 | libarchive/test/test_read_format_rar_multivolume.part0003.rar.uu \ | |
818 | libarchive/test/test_read_format_rar_multivolume.part0004.rar.uu \ | |
819 | libarchive/test/test_read_format_rar_noeof.rar.uu \ | |
820 | libarchive/test/test_read_format_rar_ppmd_lzss_conversion.rar.uu \ | |
821 | libarchive/test/test_read_format_rar_sfx.exe.uu \ | |
822 | libarchive/test/test_read_format_rar_subblock.rar.uu \ | |
823 | libarchive/test/test_read_format_rar_unicode.rar.uu \ | |
824 | libarchive/test/test_read_format_rar_windows.rar.uu \ | |
929722d7 | 825 | libarchive/test/test_read_format_raw.bufr.uu \ |
154865e1 TK |
826 | libarchive/test/test_read_format_raw.data.Z.uu \ |
827 | libarchive/test/test_read_format_raw.data.uu \ | |
828 | libarchive/test/test_read_format_tar_concatenated.tar.uu \ | |
829 | libarchive/test/test_read_format_tar_empty_filename.tar.uu \ | |
830 | libarchive/test/test_read_format_tar_empty_pax.tar.Z.uu \ | |
831 | libarchive/test/test_read_format_tar_filename_koi8r.tar.Z.uu \ | |
832 | libarchive/test/test_read_format_ustar_filename_cp866.tar.Z.uu \ | |
833 | libarchive/test/test_read_format_ustar_filename_eucjp.tar.Z.uu \ | |
834 | libarchive/test/test_read_format_ustar_filename_koi8r.tar.Z.uu \ | |
d32bbe4f | 835 | libarchive/test/test_read_format_warc.warc.uu \ |
154865e1 TK |
836 | libarchive/test/test_read_format_zip.zip.uu \ |
837 | libarchive/test/test_read_format_zip_comment_stored_1.zip.uu \ | |
838 | libarchive/test/test_read_format_zip_comment_stored_2.zip.uu \ | |
839 | libarchive/test/test_read_format_zip_encryption_data.zip.uu \ | |
840 | libarchive/test/test_read_format_zip_encryption_header.zip.uu \ | |
841 | libarchive/test/test_read_format_zip_encryption_partially.zip.uu \ | |
842 | libarchive/test/test_read_format_zip_filename_cp866.zip.uu \ | |
843 | libarchive/test/test_read_format_zip_filename_cp932.zip.uu \ | |
844 | libarchive/test/test_read_format_zip_filename_koi8r.zip.uu \ | |
845 | libarchive/test/test_read_format_zip_filename_utf8_jp.zip.uu \ | |
846 | libarchive/test/test_read_format_zip_filename_utf8_ru.zip.uu \ | |
847 | libarchive/test/test_read_format_zip_filename_utf8_ru2.zip.uu \ | |
471338a9 | 848 | libarchive/test/test_read_format_zip_high_compression.zip.uu \ |
154865e1 | 849 | libarchive/test/test_read_format_zip_length_at_end.zip.uu \ |
2ecf8d1c | 850 | libarchive/test/test_read_format_zip_jar.jar.uu \ |
154865e1 | 851 | libarchive/test/test_read_format_zip_mac_metadata.zip.uu \ |
9e0689cf | 852 | libarchive/test/test_read_format_zip_malformed1.zip.uu \ |
d32bbe4f | 853 | libarchive/test/test_read_format_zip_msdos.zip.uu \ |
1ad25e99 | 854 | libarchive/test/test_read_format_zip_nested.zip.uu \ |
154865e1 TK |
855 | libarchive/test/test_read_format_zip_nofiletype.zip.uu \ |
856 | libarchive/test/test_read_format_zip_padded1.zip.uu \ | |
857 | libarchive/test/test_read_format_zip_padded2.zip.uu \ | |
858 | libarchive/test/test_read_format_zip_padded3.zip.uu \ | |
859 | libarchive/test/test_read_format_zip_sfx.uu \ | |
860 | libarchive/test/test_read_format_zip_symlink.zip.uu \ | |
8145520c | 861 | libarchive/test/test_read_format_zip_traditional_encryption_data.zip.uu \ |
154865e1 | 862 | libarchive/test/test_read_format_zip_ux.zip.uu \ |
c3c366eb MN |
863 | libarchive/test/test_read_format_zip_winzip_aes128.zip.uu \ |
864 | libarchive/test/test_read_format_zip_winzip_aes256.zip.uu \ | |
865 | libarchive/test/test_read_format_zip_winzip_aes256_large.zip.uu \ | |
866 | libarchive/test/test_read_format_zip_winzip_aes256_stored.zip.uu \ | |
085c1b94 | 867 | libarchive/test/test_read_format_zip_with_invalid_traditional_eocd.zip.uu \ |
154865e1 TK |
868 | libarchive/test/test_read_format_zip_zip64a.zip.uu \ |
869 | libarchive/test/test_read_format_zip_zip64b.zip.uu \ | |
870 | libarchive/test/test_read_large_splitted_rar_aa.uu \ | |
871 | libarchive/test/test_read_large_splitted_rar_ab.uu \ | |
872 | libarchive/test/test_read_large_splitted_rar_ac.uu \ | |
873 | libarchive/test/test_read_large_splitted_rar_ad.uu \ | |
874 | libarchive/test/test_read_large_splitted_rar_ae.uu \ | |
f4661da1 | 875 | libarchive/test/test_read_pax_schily_xattr.tar.uu \ |
154865e1 TK |
876 | libarchive/test/test_read_splitted_rar_aa.uu \ |
877 | libarchive/test/test_read_splitted_rar_ab.uu \ | |
878 | libarchive/test/test_read_splitted_rar_ac.uu \ | |
879 | libarchive/test/test_read_splitted_rar_ad.uu \ | |
6e06b1c8 | 880 | libarchive/test/test_read_too_many_filters.gz.uu \ |
154865e1 TK |
881 | libarchive/test/test_splitted_rar_seek_support_aa.uu \ |
882 | libarchive/test/test_splitted_rar_seek_support_ab.uu \ | |
883 | libarchive/test/test_splitted_rar_seek_support_ac.uu \ | |
884 | libarchive/test/test_write_disk_appledouble.cpio.gz.uu \ | |
885 | libarchive/test/test_write_disk_hfs_compression.tgz.uu \ | |
886 | libarchive/test/test_write_disk_mac_metadata.tar.gz.uu \ | |
887 | libarchive/test/test_write_disk_no_hfs_compression.tgz.uu \ | |
888 | libarchive/test/CMakeLists.txt \ | |
79cb8e5b | 889 | libarchive/test/README |
b3cfa26b | 890 | |
71d1bfe0 JS |
891 | # |
892 | # Common code for libarchive frontends (cpio, tar) | |
893 | # | |
154865e1 TK |
894 | libarchive_fe_la_SOURCES= \ |
895 | libarchive_fe/err.c \ | |
896 | libarchive_fe/err.h \ | |
897 | libarchive_fe/lafe_platform.h \ | |
898 | libarchive_fe/line_reader.c \ | |
9769e6f7 MN |
899 | libarchive_fe/line_reader.h \ |
900 | libarchive_fe/passphrase.c \ | |
901 | libarchive_fe/passphrase.h | |
b3cfa26b | 902 | |
e1a574df | 903 | libarchive_fe_la_CPPFLAGS= -I$(top_srcdir)/libarchive |
b3cfa26b TK |
904 | # |
905 | # | |
906 | # bsdtar source, docs, etc. | |
907 | # | |
908 | # | |
909 | ||
154865e1 TK |
910 | bsdtar_SOURCES= \ |
911 | tar/bsdtar.c \ | |
912 | tar/bsdtar.h \ | |
913 | tar/bsdtar_platform.h \ | |
914 | tar/cmdline.c \ | |
915 | tar/creation_set.c \ | |
916 | tar/read.c \ | |
917 | tar/subst.c \ | |
918 | tar/util.c \ | |
b3cfa26b TK |
919 | tar/write.c |
920 | ||
79cb8e5b | 921 | if INC_WINDOWS_FILES |
154865e1 TK |
922 | bsdtar_SOURCES+= \ |
923 | tar/bsdtar_windows.h \ | |
926d6bcb | 924 | tar/bsdtar_windows.c |
79cb8e5b | 925 | endif |
79cb8e5b | 926 | |
71d1bfe0 | 927 | bsdtar_DEPENDENCIES= libarchive.la libarchive_fe.la |
b3cfa26b TK |
928 | |
929 | if STATIC_BSDTAR | |
66c6a7b4 CW |
930 | bsdtar_ldstatic= -static |
931 | bsdtar_ccstatic= -DLIBARCHIVE_STATIC | |
b3cfa26b | 932 | else |
66c6a7b4 CW |
933 | bsdtar_ldstatic= |
934 | bsdtar_ccstatic= | |
b3cfa26b TK |
935 | endif |
936 | ||
17fd872a | 937 | bsdtar_LDADD= libarchive.la libarchive_fe.la $(LTLIBICONV) |
c31d1bc4 | 938 | bsdtar_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdtar_ccstatic) $(PLATFORMCPPFLAGS) |
66c6a7b4 | 939 | bsdtar_LDFLAGS= $(bsdtar_ldstatic) |
71d1bfe0 | 940 | |
154865e1 TK |
941 | bsdtar_EXTRA_DIST= \ |
942 | tar/bsdtar.1 \ | |
943 | tar/bsdtar_windows.h \ | |
944 | tar/bsdtar_windows.c \ | |
945 | tar/CMakeLists.txt \ | |
9d22dfd5 | 946 | tar/config_freebsd.h |
79cb8e5b | 947 | |
b3cfa26b TK |
948 | |
949 | if BUILD_BSDTAR | |
950 | bsdtar_man_MANS= tar/bsdtar.1 | |
951 | bsdtar_programs= bsdtar | |
952 | else | |
953 | bsdtar_man_MANS= | |
954 | bsdtar_programs= | |
955 | endif | |
956 | ||
957 | # | |
958 | # bsdtar_test | |
959 | # | |
960 | ||
154865e1 TK |
961 | bsdtar_test_SOURCES= \ |
962 | $(test_utils_SOURCES) \ | |
154865e1 TK |
963 | tar/test/test.h \ |
964 | tar/test/test_0.c \ | |
965 | tar/test/test_basic.c \ | |
966 | tar/test/test_copy.c \ | |
967 | tar/test/test_empty_mtree.c \ | |
968 | tar/test/test_extract_tar_Z.c \ | |
969 | tar/test/test_extract_tar_bz2.c \ | |
970 | tar/test/test_extract_tar_grz.c \ | |
971 | tar/test/test_extract_tar_gz.c \ | |
972 | tar/test/test_extract_tar_lrz.c \ | |
973 | tar/test/test_extract_tar_lz.c \ | |
aecd3a2c | 974 | tar/test/test_extract_tar_lz4.c \ |
154865e1 TK |
975 | tar/test/test_extract_tar_lzma.c \ |
976 | tar/test/test_extract_tar_lzo.c \ | |
977 | tar/test/test_extract_tar_xz.c \ | |
cd63bdcd | 978 | tar/test/test_extract_tar_zstd.c \ |
154865e1 TK |
979 | tar/test/test_format_newc.c \ |
980 | tar/test/test_help.c \ | |
cf8e67ff | 981 | tar/test/test_leading_slash.c \ |
ba20a8b3 | 982 | tar/test/test_missing_file.c \ |
adfcc31d | 983 | tar/test/test_option_C_mtree.c \ |
8076d71f | 984 | tar/test/test_option_C_upper.c \ |
154865e1 TK |
985 | tar/test/test_option_H_upper.c \ |
986 | tar/test/test_option_L_upper.c \ | |
987 | tar/test/test_option_O_upper.c \ | |
988 | tar/test/test_option_T_upper.c \ | |
989 | tar/test/test_option_U_upper.c \ | |
990 | tar/test/test_option_X_upper.c \ | |
f5d473ed | 991 | tar/test/test_option_acls.c \ |
154865e1 TK |
992 | tar/test/test_option_a.c \ |
993 | tar/test/test_option_b.c \ | |
994 | tar/test/test_option_b64encode.c \ | |
995 | tar/test/test_option_exclude.c \ | |
be3e97ea | 996 | tar/test/test_option_fflags.c \ |
154865e1 TK |
997 | tar/test/test_option_gid_gname.c \ |
998 | tar/test/test_option_grzip.c \ | |
999 | tar/test/test_option_j.c \ | |
1000 | tar/test/test_option_k.c \ | |
1001 | tar/test/test_option_keep_newer_files.c \ | |
1002 | tar/test/test_option_lrzip.c \ | |
8c4be28f | 1003 | tar/test/test_option_lz4.c \ |
154865e1 TK |
1004 | tar/test/test_option_lzma.c \ |
1005 | tar/test/test_option_lzop.c \ | |
1006 | tar/test/test_option_n.c \ | |
1007 | tar/test/test_option_newer_than.c \ | |
1008 | tar/test/test_option_nodump.c \ | |
1009 | tar/test/test_option_older_than.c \ | |
c9dc6b81 | 1010 | tar/test/test_option_passphrase.c \ |
154865e1 TK |
1011 | tar/test/test_option_q.c \ |
1012 | tar/test/test_option_r.c \ | |
1013 | tar/test/test_option_s.c \ | |
1014 | tar/test/test_option_uid_uname.c \ | |
1015 | tar/test/test_option_uuencode.c \ | |
365a91de | 1016 | tar/test/test_option_xattrs.c \ |
154865e1 TK |
1017 | tar/test/test_option_xz.c \ |
1018 | tar/test/test_option_z.c \ | |
cd63bdcd | 1019 | tar/test/test_option_zstd.c \ |
154865e1 TK |
1020 | tar/test/test_patterns.c \ |
1021 | tar/test/test_print_longpath.c \ | |
1022 | tar/test/test_stdio.c \ | |
1023 | tar/test/test_strip_components.c \ | |
1024 | tar/test/test_symlink_dir.c \ | |
1025 | tar/test/test_version.c \ | |
f470386a | 1026 | tar/test/test_windows.c |
b3cfa26b | 1027 | |
c31d1bc4 CW |
1028 | bsdtar_test_CPPFLAGS=\ |
1029 | -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \ | |
aa95a749 | 1030 | -I$(top_srcdir)/test_utils \ |
52d5a14c MM |
1031 | -I$(top_srcdir)/tar -I$(top_srcdir)/tar/test \ |
1032 | -I$(top_builddir)/tar/test \ | |
c31d1bc4 | 1033 | $(PLATFORMCPPFLAGS) |
b3cfa26b TK |
1034 | |
1035 | tar/test/list.h: Makefile | |
1c6adda3 | 1036 | $(MKDIR_P) tar/test |
b06753b6 | 1037 | cat $(top_srcdir)/tar/test/test_*.c | grep '^DEFINE_TEST' > tar/test/list.h |
b3cfa26b TK |
1038 | |
1039 | if BUILD_BSDTAR | |
1040 | bsdtar_test_programs= bsdtar_test | |
125047fc | 1041 | bsdtar_TESTS_ENVIRONMENT= BSDTAR=`cd $(top_builddir);/bin/pwd`/bsdtar$(EXEEXT) BSDTAR_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/tar/test |
b3cfa26b TK |
1042 | else |
1043 | bsdtar_test_programs= | |
1044 | bsdtar_TESTS_ENVIRONMENT= | |
1045 | endif | |
1046 | ||
154865e1 | 1047 | bsdtar_test_EXTRA_DIST= \ |
9d22dfd5 | 1048 | tar/test/list.h \ |
154865e1 | 1049 | tar/test/test_extract.tar.Z.uu \ |
79c57c39 | 1050 | tar/test/test_extract.tar.bz2.uu \ |
630ead78 | 1051 | tar/test/test_extract.tar.grz.uu \ |
154865e1 | 1052 | tar/test/test_extract.tar.gz.uu \ |
79c57c39 | 1053 | tar/test/test_extract.tar.lrz.uu \ |
154865e1 | 1054 | tar/test/test_extract.tar.lz.uu \ |
aecd3a2c | 1055 | tar/test/test_extract.tar.lz4.uu \ |
0f6b9d7a | 1056 | tar/test/test_extract.tar.zst.uu \ |
79c57c39 MN |
1057 | tar/test/test_extract.tar.lzma.uu \ |
1058 | tar/test/test_extract.tar.lzo.uu \ | |
1059 | tar/test/test_extract.tar.xz.uu \ | |
cf8e67ff | 1060 | tar/test/test_leading_slash.tar.uu \ |
113601be | 1061 | tar/test/test_option_keep_newer_files.tar.Z.uu \ |
c9dc6b81 | 1062 | tar/test/test_option_passphrase.zip.uu \ |
9d22dfd5 | 1063 | tar/test/test_option_s.tar.Z.uu \ |
154865e1 TK |
1064 | tar/test/test_patterns_2.tar.uu \ |
1065 | tar/test/test_patterns_3.tar.uu \ | |
1066 | tar/test/test_patterns_4.tar.uu \ | |
b4a4200f | 1067 | tar/test/test_print_longpath.tar.Z.uu \ |
79cb8e5b | 1068 | tar/test/CMakeLists.txt |
d75f8db1 | 1069 | |
b3cfa26b TK |
1070 | |
1071 | # | |
1072 | # | |
1073 | # bsdcpio source, docs, etc. | |
1074 | # | |
1075 | # | |
1076 | ||
154865e1 TK |
1077 | bsdcpio_SOURCES= \ |
1078 | cpio/cmdline.c \ | |
1079 | cpio/cpio.c \ | |
1080 | cpio/cpio.h \ | |
71d1bfe0 | 1081 | cpio/cpio_platform.h |
b3cfa26b | 1082 | |
79cb8e5b | 1083 | if INC_WINDOWS_FILES |
154865e1 TK |
1084 | bsdcpio_SOURCES+= \ |
1085 | cpio/cpio_windows.h \ | |
926d6bcb | 1086 | cpio/cpio_windows.c |
79cb8e5b | 1087 | endif |
79cb8e5b | 1088 | |
71d1bfe0 | 1089 | bsdcpio_DEPENDENCIES = libarchive.la libarchive_fe.la |
b3cfa26b TK |
1090 | |
1091 | ||
1092 | if STATIC_BSDCPIO | |
66c6a7b4 CW |
1093 | bsdcpio_ldstatic= -static |
1094 | bsdcpio_ccstatic= -DLIBARCHIVE_STATIC | |
b3cfa26b | 1095 | else |
66c6a7b4 CW |
1096 | bsdcpio_ldstatic= |
1097 | bsdcpio_ccstatic= | |
b3cfa26b TK |
1098 | endif |
1099 | ||
17fd872a | 1100 | bsdcpio_LDADD= libarchive_fe.la libarchive.la $(LTLIBICONV) |
c31d1bc4 | 1101 | bsdcpio_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdcpio_ccstatic) $(PLATFORMCPPFLAGS) |
66c6a7b4 CW |
1102 | bsdcpio_LDFLAGS= $(bsdcpio_ldstatic) |
1103 | ||
154865e1 TK |
1104 | bsdcpio_EXTRA_DIST= \ |
1105 | cpio/bsdcpio.1 \ | |
1106 | cpio/cpio_windows.h \ | |
1107 | cpio/cpio_windows.c \ | |
1108 | cpio/CMakeLists.txt \ | |
79cb8e5b CW |
1109 | cpio/config_freebsd.h |
1110 | ||
b3cfa26b TK |
1111 | |
1112 | if BUILD_BSDCPIO | |
1113 | # Manpages to install | |
1114 | bsdcpio_man_MANS= cpio/bsdcpio.1 | |
1115 | bsdcpio_programs= bsdcpio | |
1116 | else | |
1117 | bsdcpio_man_MANS= | |
1118 | bsdcpio_programs= | |
1119 | endif | |
1120 | ||
1121 | # | |
1122 | # bsdcpio_test | |
1123 | # | |
1124 | ||
154865e1 TK |
1125 | bsdcpio_test_SOURCES= \ |
1126 | $(test_utils_SOURCES) \ | |
1127 | cpio/cmdline.c \ | |
154865e1 TK |
1128 | cpio/test/test.h \ |
1129 | cpio/test/test_0.c \ | |
1130 | cpio/test/test_basic.c \ | |
1131 | cpio/test/test_cmdline.c \ | |
1132 | cpio/test/test_extract_cpio_Z.c \ | |
1133 | cpio/test/test_extract_cpio_bz2.c \ | |
1134 | cpio/test/test_extract_cpio_grz.c \ | |
1135 | cpio/test/test_extract_cpio_gz.c \ | |
1136 | cpio/test/test_extract_cpio_lrz.c \ | |
1137 | cpio/test/test_extract_cpio_lz.c \ | |
aecd3a2c | 1138 | cpio/test/test_extract_cpio_lz4.c \ |
154865e1 TK |
1139 | cpio/test/test_extract_cpio_lzma.c \ |
1140 | cpio/test/test_extract_cpio_lzo.c \ | |
1141 | cpio/test/test_extract_cpio_xz.c \ | |
cd63bdcd | 1142 | cpio/test/test_extract_cpio_zstd.c \ |
154865e1 TK |
1143 | cpio/test/test_format_newc.c \ |
1144 | cpio/test/test_gcpio_compat.c \ | |
ba20a8b3 | 1145 | cpio/test/test_missing_file.c \ |
154865e1 TK |
1146 | cpio/test/test_option_0.c \ |
1147 | cpio/test/test_option_B_upper.c \ | |
1148 | cpio/test/test_option_C_upper.c \ | |
1149 | cpio/test/test_option_J_upper.c \ | |
1150 | cpio/test/test_option_L_upper.c \ | |
1151 | cpio/test/test_option_Z_upper.c \ | |
1152 | cpio/test/test_option_a.c \ | |
1153 | cpio/test/test_option_b64encode.c \ | |
1154 | cpio/test/test_option_c.c \ | |
1155 | cpio/test/test_option_d.c \ | |
1156 | cpio/test/test_option_f.c \ | |
1157 | cpio/test/test_option_grzip.c \ | |
1158 | cpio/test/test_option_help.c \ | |
1159 | cpio/test/test_option_l.c \ | |
1160 | cpio/test/test_option_lrzip.c \ | |
8c4be28f | 1161 | cpio/test/test_option_lz4.c \ |
154865e1 TK |
1162 | cpio/test/test_option_lzma.c \ |
1163 | cpio/test/test_option_lzop.c \ | |
1164 | cpio/test/test_option_m.c \ | |
c9dc6b81 | 1165 | cpio/test/test_option_passphrase.c \ |
154865e1 TK |
1166 | cpio/test/test_option_t.c \ |
1167 | cpio/test/test_option_u.c \ | |
1168 | cpio/test/test_option_uuencode.c \ | |
1169 | cpio/test/test_option_version.c \ | |
1170 | cpio/test/test_option_xz.c \ | |
1171 | cpio/test/test_option_y.c \ | |
1172 | cpio/test/test_option_z.c \ | |
cd63bdcd | 1173 | cpio/test/test_option_zstd.c \ |
154865e1 TK |
1174 | cpio/test/test_owner_parse.c \ |
1175 | cpio/test/test_passthrough_dotdot.c \ | |
718b5cc7 | 1176 | cpio/test/test_passthrough_reverse.c |
b3cfa26b | 1177 | |
71d1bfe0 JS |
1178 | bsdcpio_test_CPPFLAGS= \ |
1179 | -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \ | |
aa95a749 | 1180 | -I$(top_srcdir)/test_utils \ |
52d5a14c MM |
1181 | -I$(top_srcdir)/cpio -I$(top_srcdir)/cpio/test \ |
1182 | -I$(top_builddir)/cpio/test \ | |
c31d1bc4 | 1183 | $(PLATFORMCPPFLAGS) |
cee6343a | 1184 | bsdcpio_test_LDADD=libarchive_fe.la |
b3cfa26b TK |
1185 | |
1186 | cpio/test/list.h: Makefile | |
1c6adda3 | 1187 | $(MKDIR_P) cpio/test |
b06753b6 | 1188 | cat $(top_srcdir)/cpio/test/test_*.c | grep '^DEFINE_TEST' > cpio/test/list.h |
b3cfa26b TK |
1189 | |
1190 | if BUILD_BSDCPIO | |
1191 | bsdcpio_test_programs= bsdcpio_test | |
125047fc | 1192 | bsdcpio_TESTS_ENVIRONMENT= BSDCPIO=`cd $(top_builddir);/bin/pwd`/bsdcpio$(EXEEXT) BSDCPIO_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/cpio/test |
b3cfa26b TK |
1193 | else |
1194 | bsdcpio_test_programs= | |
1195 | bsdcpio_TESTS_ENVIRONMENT= | |
1196 | endif | |
1197 | ||
154865e1 TK |
1198 | bsdcpio_test_EXTRA_DIST= \ |
1199 | cpio/test/list.h \ | |
1200 | cpio/test/test_extract.cpio.Z.uu \ | |
1201 | cpio/test/test_extract.cpio.bz2.uu \ | |
1202 | cpio/test/test_extract.cpio.grz.uu \ | |
1203 | cpio/test/test_extract.cpio.gz.uu \ | |
1204 | cpio/test/test_extract.cpio.lrz.uu \ | |
1205 | cpio/test/test_extract.cpio.lz.uu \ | |
aecd3a2c | 1206 | cpio/test/test_extract.cpio.lz4.uu \ |
0f6b9d7a | 1207 | cpio/test/test_extract.cpio.zst.uu \ |
154865e1 TK |
1208 | cpio/test/test_extract.cpio.lzma.uu \ |
1209 | cpio/test/test_extract.cpio.lzo.uu \ | |
1210 | cpio/test/test_extract.cpio.xz.uu \ | |
1211 | cpio/test/test_gcpio_compat_ref.bin.uu \ | |
1212 | cpio/test/test_gcpio_compat_ref.crc.uu \ | |
1213 | cpio/test/test_gcpio_compat_ref.newc.uu \ | |
b3cfa26b | 1214 | cpio/test/test_gcpio_compat_ref.ustar.uu \ |
e8b51424 JS |
1215 | cpio/test/test_gcpio_compat_ref_nosym.bin.uu \ |
1216 | cpio/test/test_gcpio_compat_ref_nosym.crc.uu \ | |
1217 | cpio/test/test_gcpio_compat_ref_nosym.newc.uu \ | |
1218 | cpio/test/test_gcpio_compat_ref_nosym.ustar.uu \ | |
154865e1 TK |
1219 | cpio/test/test_option_f.cpio.uu \ |
1220 | cpio/test/test_option_m.cpio.uu \ | |
c9dc6b81 | 1221 | cpio/test/test_option_passphrase.zip.uu \ |
154865e1 TK |
1222 | cpio/test/test_option_t.cpio.uu \ |
1223 | cpio/test/test_option_t.stdout.uu \ | |
1224 | cpio/test/test_option_tv.stdout.uu \ | |
79cb8e5b | 1225 | cpio/test/CMakeLists.txt |
5d3f56d2 MK |
1226 | |
1227 | # | |
1228 | # | |
1229 | # bsdcat source, docs, etc. | |
1230 | # | |
1231 | # | |
1232 | ||
1233 | bsdcat_SOURCES= \ | |
1234 | cat/bsdcat.c \ | |
15bcb678 MN |
1235 | cat/bsdcat.h \ |
1236 | cat/bsdcat_platform.h \ | |
78743ea7 | 1237 | cat/cmdline.c |
5d3f56d2 MK |
1238 | |
1239 | if INC_WINDOWS_FILES | |
1240 | bsdcat_SOURCES+= | |
1241 | endif | |
1242 | ||
1243 | bsdcat_DEPENDENCIES = libarchive.la libarchive_fe.la | |
1244 | ||
1245 | ||
1246 | if STATIC_BSDCAT | |
1247 | bsdcat_ldstatic= -static | |
1248 | bsdcat_ccstatic= -DLIBARCHIVE_STATIC | |
1249 | else | |
1250 | bsdcat_ldstatic= | |
1251 | bsdcat_ccstatic= | |
1252 | endif | |
1253 | ||
1254 | bsdcat_LDADD= libarchive_fe.la libarchive.la $(LTLIBICONV) | |
1255 | bsdcat_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdcat_ccstatic) $(PLATFORMCPPFLAGS) | |
1256 | bsdcat_LDFLAGS= $(bsdcat_ldstatic) | |
1257 | ||
1258 | bsdcat_EXTRA_DIST= \ | |
1259 | cat/bsdcat.1 \ | |
1260 | cat/CMakeLists.txt | |
1261 | ||
1262 | ||
1263 | if BUILD_BSDCAT | |
1264 | # Manpages to install | |
1265 | bsdcat_man_MANS= cat/bsdcat.1 | |
1266 | bsdcat_programs= bsdcat | |
1267 | else | |
1268 | bsdcat_man_MANS= | |
1269 | bsdcat_programs= | |
1270 | endif | |
c03898de MK |
1271 | |
1272 | # | |
1273 | # bsdcat_test | |
1274 | # | |
1275 | ||
1276 | bsdcat_test_SOURCES= \ | |
1277 | $(test_utils_SOURCES) \ | |
c03898de MK |
1278 | cat/test/test.h \ |
1279 | cat/test/test_0.c \ | |
850c3c8d | 1280 | cat/test/test_empty_gz.c \ |
f6b202b6 | 1281 | cat/test/test_empty_lz4.c \ |
850c3c8d | 1282 | cat/test/test_empty_xz.c \ |
cd63bdcd | 1283 | cat/test/test_empty_zstd.c \ |
c03898de MK |
1284 | cat/test/test_error.c \ |
1285 | cat/test/test_error_mixed.c \ | |
1286 | cat/test/test_expand_Z.c \ | |
1287 | cat/test/test_expand_bz2.c \ | |
1288 | cat/test/test_expand_gz.c \ | |
aecd3a2c | 1289 | cat/test/test_expand_lz4.c \ |
c03898de MK |
1290 | cat/test/test_expand_mixed.c \ |
1291 | cat/test/test_expand_plain.c \ | |
1292 | cat/test/test_expand_xz.c \ | |
cd63bdcd | 1293 | cat/test/test_expand_zstd.c \ |
c03898de | 1294 | cat/test/test_help.c \ |
0bec66ba | 1295 | cat/test/test_stdin.c \ |
c03898de MK |
1296 | cat/test/test_version.c |
1297 | ||
1298 | bsdcat_test_CPPFLAGS= \ | |
1299 | -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \ | |
1300 | -I$(top_srcdir)/test_utils \ | |
52d5a14c MM |
1301 | -I$(top_srcdir)/cat -I$(top_srcdir)/cat/test \ |
1302 | -I$(top_builddir)/cat/test \ | |
c03898de MK |
1303 | $(PLATFORMCPPFLAGS) |
1304 | bsdcat_test_LDADD=libarchive_fe.la | |
1305 | ||
1306 | cat/test/list.h: Makefile | |
b06753b6 | 1307 | cat $(top_srcdir)/cat/test/test_*.c | grep '^DEFINE_TEST' > cat/test/list.h |
c03898de MK |
1308 | |
1309 | if BUILD_BSDCAT | |
1310 | bsdcat_test_programs= bsdcat_test | |
1311 | bsdcat_TESTS_ENVIRONMENT= BSDCAT=`cd $(top_builddir);/bin/pwd`/bsdcat$(EXEEXT) BSDCAT_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/cat/test | |
1312 | else | |
1313 | bsdcat_test_programs= | |
1314 | bsdcat_TESTS_ENVIRONMENT= | |
1315 | endif | |
1316 | ||
1317 | bsdcat_test_EXTRA_DIST= \ | |
1318 | cat/test/list.h \ | |
850c3c8d | 1319 | cat/test/test_empty.gz.uu \ |
f6b202b6 | 1320 | cat/test/test_empty.lz4.uu \ |
0f6b9d7a | 1321 | cat/test/test_empty.zst.uu \ |
850c3c8d | 1322 | cat/test/test_empty.xz.uu \ |
c03898de MK |
1323 | cat/test/test_expand.Z.uu \ |
1324 | cat/test/test_expand.bz2.uu \ | |
1325 | cat/test/test_expand.gz.uu \ | |
aecd3a2c | 1326 | cat/test/test_expand.lz4.uu \ |
0f6b9d7a | 1327 | cat/test/test_expand.zst.uu \ |
c03898de MK |
1328 | cat/test/test_expand.plain.uu \ |
1329 | cat/test/test_expand.xz.uu \ | |
1330 | cat/test/CMakeLists.txt |