]> git.ipfire.org Git - thirdparty/libarchive.git/blame - Makefile.am
Implant WARC support in tar's get_format_code()
[thirdparty/libarchive.git] / Makefile.am
CommitLineData
b3cfa26b
TK
1## Process this file with automake to produce Makefile.in
2
3AUTOMAKE_OPTIONS= foreign subdir-objects
3de7eac9 4ACLOCAL_AMFLAGS = -I build/autoconf
b3cfa26b
TK
5
6#
7# What to build and install
8#
9lib_LTLIBRARIES= libarchive.la
71d1bfe0 10noinst_LTLIBRARIES= libarchive_fe.la
5d3f56d2
MK
11bin_PROGRAMS= $(bsdtar_programs) $(bsdcpio_programs) $(bsdcat_programs)
12man_MANS= $(libarchive_man_MANS) $(bsdtar_man_MANS) $(bsdcpio_man_MANS) $(bsdcat_man_MANS)
c03898de 13BUILT_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
19check_PROGRAMS= libarchive_test $(bsdtar_test_programs) $(bsdcpio_test_programs) $(bsdcat_test_programs)
20TESTS= libarchive_test $(bsdtar_test_programs) $(bsdcpio_test_programs) $(bsdcat_test_programs)
21TESTS_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'
23DISTCHECK_CONFIGURE_FLAGS = --enable-bsdtar --enable-bsdcpio
5ea29ca0 24COMMON_CFLAGS=-Wall -Wformat -Wformat-security
0380c976
TK
25# The next line is commented out by default in shipping libarchive releases.
26# It is uncommented by default in trunk.
94a49b18 27DEV_CFLAGS=-Werror -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wcast-qual
014de9ca 28AM_CFLAGS=$(COMMON_CFLAGS) $(DEV_CFLAGS)
c31d1bc4
CW
29PLATFORMCPPFLAGS = @PLATFORMCPPFLAGS@
30AM_CPPFLAGS=$(PLATFORMCPPFLAGS)
b3cfa26b
TK
31
32#
33# What to include in the distribution
34#
952928f5 35EXTRA_DIST= \
154865e1
TK
36 CMakeLists.txt \
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.
56dist-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
68DISTCLEANFILES= \
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
74distclean-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 92include_HEADERS= libarchive/archive.h libarchive/archive_entry.h
b3cfa26b 93
154865e1
TK
94libarchive_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 \
101 libarchive/archive_crypto.c \
102 libarchive/archive_crypto_private.h \
103 libarchive/archive_endian.h \
104 libarchive/archive_entry.c \
105 libarchive/archive_entry.h \
106 libarchive/archive_entry_copy_stat.c \
107 libarchive/archive_entry_link_resolver.c \
108 libarchive/archive_entry_locale.h \
109 libarchive/archive_entry_private.h \
110 libarchive/archive_entry_sparse.c \
111 libarchive/archive_entry_stat.c \
112 libarchive/archive_entry_strmode.c \
113 libarchive/archive_entry_xattr.c \
114 libarchive/archive_getdate.c \
115 libarchive/archive_match.c \
116 libarchive/archive_options.c \
117 libarchive/archive_options_private.h \
118 libarchive/archive_pack_dev.h \
119 libarchive/archive_pack_dev.c \
120 libarchive/archive_pathmatch.c \
121 libarchive/archive_pathmatch.h \
122 libarchive/archive_platform.h \
123 libarchive/archive_ppmd_private.h \
124 libarchive/archive_ppmd7.c \
125 libarchive/archive_ppmd7_private.h \
126 libarchive/archive_private.h \
127 libarchive/archive_rb.c \
128 libarchive/archive_rb.h \
129 libarchive/archive_read.c \
130 libarchive/archive_read_append_filter.c \
131 libarchive/archive_read_data_into_fd.c \
132 libarchive/archive_read_disk_entry_from_file.c \
133 libarchive/archive_read_disk_posix.c \
134 libarchive/archive_read_disk_private.h \
135 libarchive/archive_read_disk_set_standard_lookup.c \
136 libarchive/archive_read_extract.c \
90250478 137 libarchive/archive_read_extract2.c \
154865e1
TK
138 libarchive/archive_read_open_fd.c \
139 libarchive/archive_read_open_file.c \
140 libarchive/archive_read_open_filename.c \
141 libarchive/archive_read_open_memory.c \
142 libarchive/archive_read_private.h \
143 libarchive/archive_read_set_format.c \
144 libarchive/archive_read_set_options.c \
145 libarchive/archive_read_support_filter_all.c \
146 libarchive/archive_read_support_filter_bzip2.c \
147 libarchive/archive_read_support_filter_compress.c \
148 libarchive/archive_read_support_filter_grzip.c \
149 libarchive/archive_read_support_filter_gzip.c \
150 libarchive/archive_read_support_filter_lrzip.c \
151 libarchive/archive_read_support_filter_lzop.c \
152 libarchive/archive_read_support_filter_none.c \
153 libarchive/archive_read_support_filter_program.c \
154 libarchive/archive_read_support_filter_rpm.c \
155 libarchive/archive_read_support_filter_uu.c \
156 libarchive/archive_read_support_filter_xz.c \
157 libarchive/archive_read_support_format_7zip.c \
158 libarchive/archive_read_support_format_all.c \
159 libarchive/archive_read_support_format_ar.c \
160 libarchive/archive_read_support_format_by_code.c \
161 libarchive/archive_read_support_format_cab.c \
162 libarchive/archive_read_support_format_cpio.c \
163 libarchive/archive_read_support_format_empty.c \
164 libarchive/archive_read_support_format_iso9660.c \
165 libarchive/archive_read_support_format_lha.c \
166 libarchive/archive_read_support_format_mtree.c \
167 libarchive/archive_read_support_format_rar.c \
168 libarchive/archive_read_support_format_raw.c \
169 libarchive/archive_read_support_format_tar.c \
96938015 170 libarchive/archive_read_support_format_warc.c \
154865e1
TK
171 libarchive/archive_read_support_format_xar.c \
172 libarchive/archive_read_support_format_zip.c \
173 libarchive/archive_string.c \
174 libarchive/archive_string.h \
175 libarchive/archive_string_composition.h \
176 libarchive/archive_string_sprintf.c \
177 libarchive/archive_util.c \
178 libarchive/archive_virtual.c \
179 libarchive/archive_write.c \
180 libarchive/archive_write_disk_acl.c \
181 libarchive/archive_write_disk_posix.c \
182 libarchive/archive_write_disk_private.h \
183 libarchive/archive_write_disk_set_standard_lookup.c \
184 libarchive/archive_write_open_fd.c \
185 libarchive/archive_write_open_file.c \
186 libarchive/archive_write_open_filename.c \
187 libarchive/archive_write_open_memory.c \
188 libarchive/archive_write_private.h \
189 libarchive/archive_write_add_filter.c \
190 libarchive/archive_write_add_filter_b64encode.c \
191 libarchive/archive_write_add_filter_by_name.c \
192 libarchive/archive_write_add_filter_bzip2.c \
193 libarchive/archive_write_add_filter_compress.c \
194 libarchive/archive_write_add_filter_grzip.c \
195 libarchive/archive_write_add_filter_gzip.c \
196 libarchive/archive_write_add_filter_lrzip.c \
197 libarchive/archive_write_add_filter_lzop.c \
198 libarchive/archive_write_add_filter_none.c \
199 libarchive/archive_write_add_filter_program.c \
200 libarchive/archive_write_add_filter_uuencode.c \
201 libarchive/archive_write_add_filter_xz.c \
202 libarchive/archive_write_set_format.c \
203 libarchive/archive_write_set_format_7zip.c \
204 libarchive/archive_write_set_format_ar.c \
205 libarchive/archive_write_set_format_by_name.c \
206 libarchive/archive_write_set_format_cpio.c \
207 libarchive/archive_write_set_format_cpio_newc.c \
208 libarchive/archive_write_set_format_iso9660.c \
209 libarchive/archive_write_set_format_mtree.c \
210 libarchive/archive_write_set_format_pax.c \
211 libarchive/archive_write_set_format_raw.c \
212 libarchive/archive_write_set_format_shar.c \
213 libarchive/archive_write_set_format_ustar.c \
214 libarchive/archive_write_set_format_v7tar.c \
215 libarchive/archive_write_set_format_gnutar.c \
667961d7 216 libarchive/archive_write_set_format_warc.c \
154865e1
TK
217 libarchive/archive_write_set_format_xar.c \
218 libarchive/archive_write_set_format_zip.c \
219 libarchive/archive_write_set_options.c \
220 libarchive/config_freebsd.h \
221 libarchive/filter_fork_posix.c \
b3cfa26b
TK
222 libarchive/filter_fork.h
223
79cb8e5b 224if INC_WINDOWS_FILES
154865e1
TK
225libarchive_la_SOURCES+= \
226 libarchive/archive_entry_copy_bhfi.c \
227 libarchive/archive_read_disk_windows.c \
228 libarchive/archive_windows.h \
229 libarchive/archive_windows.c \
230 libarchive/archive_write_disk_windows.c \
79cb8e5b
CW
231 libarchive/filter_fork_windows.c
232endif
233
171f7927 234# -no-undefined marks that libarchive doesn't rely on symbols
dc423134 235# defined in the application. This is mandatory for cygwin.
b3cfa26b 236libarchive_la_LDFLAGS= -no-undefined -version-info $(ARCHIVE_LIBTOOL_VERSION)
17fd872a 237libarchive_la_LIBADD= $(LTLIBICONV)
b3cfa26b
TK
238
239# Manpages to install
154865e1
TK
240libarchive_man_MANS= \
241 libarchive/archive_entry.3 \
242 libarchive/archive_entry_acl.3 \
243 libarchive/archive_entry_linkify.3 \
244 libarchive/archive_entry_paths.3 \
245 libarchive/archive_entry_perms.3 \
246 libarchive/archive_entry_stat.3 \
247 libarchive/archive_entry_time.3 \
248 libarchive/archive_read.3 \
249 libarchive/archive_read_data.3 \
250 libarchive/archive_read_disk.3 \
251 libarchive/archive_read_extract.3 \
252 libarchive/archive_read_filter.3 \
253 libarchive/archive_read_format.3 \
254 libarchive/archive_read_free.3 \
255 libarchive/archive_read_header.3 \
256 libarchive/archive_read_new.3 \
257 libarchive/archive_read_open.3 \
258 libarchive/archive_read_set_options.3 \
259 libarchive/archive_util.3 \
260 libarchive/archive_write.3 \
261 libarchive/archive_write_blocksize.3 \
262 libarchive/archive_write_data.3 \
263 libarchive/archive_write_disk.3 \
264 libarchive/archive_write_filter.3 \
265 libarchive/archive_write_finish_entry.3 \
266 libarchive/archive_write_format.3 \
267 libarchive/archive_write_free.3 \
268 libarchive/archive_write_header.3 \
269 libarchive/archive_write_new.3 \
270 libarchive/archive_write_open.3 \
271 libarchive/archive_write_set_options.3 \
272 libarchive/cpio.5 \
273 libarchive/libarchive.3 \
274 libarchive/libarchive_changes.3 \
275 libarchive/libarchive_internals.3 \
276 libarchive/libarchive-formats.5 \
277 libarchive/mtree.5 \
b3cfa26b
TK
278 libarchive/tar.5
279
280# Additional libarchive files to include in the distribution
154865e1
TK
281libarchive_EXTRA_DIST= \
282 libarchive/archive_windows.c \
283 libarchive/archive_windows.h \
284 libarchive/filter_fork_windows.c \
285 libarchive/CMakeLists.txt \
b3cfa26b
TK
286 $(libarchive_man_MANS)
287
bafc3c6b
TK
288# pkgconfig
289pkgconfigdir = $(libdir)/pkgconfig
290pkgconfig_DATA = build/pkgconfig/libarchive.pc
291
aa95a749
AM
292# Sources needed by all test programs
293test_utils_SOURCES= \
7cc97c98
AM
294 test_utils/test_utils.c \
295 test_utils/test_utils.h
aa95a749 296
b3cfa26b
TK
297#
298#
299# libarchive_test program
300#
301#
154865e1
TK
302libarchive_test_SOURCES= \
303 $(libarchive_la_SOURCES) \
304 $(test_utils_SOURCES) \
305 libarchive/test/main.c \
306 libarchive/test/read_open_memory.c \
307 libarchive/test/test.h \
308 libarchive/test/test_acl_freebsd_posix1e.c \
309 libarchive/test/test_acl_freebsd_nfs4.c \
310 libarchive/test/test_acl_nfs4.c \
311 libarchive/test/test_acl_pax.c \
312 libarchive/test/test_acl_posix1e.c \
313 libarchive/test/test_archive_api_feature.c \
314 libarchive/test/test_archive_clear_error.c \
315 libarchive/test/test_archive_cmdline.c \
316 libarchive/test/test_archive_crypto.c \
317 libarchive/test/test_archive_getdate.c \
318 libarchive/test/test_archive_match_owner.c \
319 libarchive/test/test_archive_match_path.c \
320 libarchive/test/test_archive_match_time.c \
321 libarchive/test/test_archive_pathmatch.c \
322 libarchive/test/test_archive_read_close_twice.c \
323 libarchive/test/test_archive_read_close_twice_open_fd.c \
324 libarchive/test/test_archive_read_close_twice_open_filename.c \
325 libarchive/test/test_archive_read_multiple_data_objects.c \
326 libarchive/test/test_archive_read_next_header_empty.c \
327 libarchive/test/test_archive_read_next_header_raw.c \
328 libarchive/test/test_archive_read_open2.c \
329 libarchive/test/test_archive_read_set_filter_option.c \
330 libarchive/test/test_archive_read_set_format_option.c \
331 libarchive/test/test_archive_read_set_option.c \
332 libarchive/test/test_archive_read_set_options.c \
333 libarchive/test/test_archive_read_support.c \
334 libarchive/test/test_archive_set_error.c \
335 libarchive/test/test_archive_string.c \
336 libarchive/test/test_archive_string_conversion.c \
337 libarchive/test/test_archive_write_add_filter_by_name.c \
338 libarchive/test/test_archive_write_set_filter_option.c \
339 libarchive/test/test_archive_write_set_format_by_name.c \
340 libarchive/test/test_archive_write_set_format_option.c \
341 libarchive/test/test_archive_write_set_option.c \
342 libarchive/test/test_archive_write_set_options.c \
343 libarchive/test/test_bad_fd.c \
344 libarchive/test/test_compat_bzip2.c \
345 libarchive/test/test_compat_cpio.c \
346 libarchive/test/test_compat_gtar.c \
347 libarchive/test/test_compat_gzip.c \
348 libarchive/test/test_compat_lzip.c \
349 libarchive/test/test_compat_lzma.c \
350 libarchive/test/test_compat_lzop.c \
351 libarchive/test/test_compat_mac.c \
352 libarchive/test/test_compat_pax_libarchive_2x.c \
353 libarchive/test/test_compat_solaris_tar_acl.c \
354 libarchive/test/test_compat_solaris_pax_sparse.c \
355 libarchive/test/test_compat_tar_hardlink.c \
356 libarchive/test/test_compat_uudecode.c \
357 libarchive/test/test_compat_xz.c \
358 libarchive/test/test_compat_zip.c \
359 libarchive/test/test_empty_write.c \
360 libarchive/test/test_entry.c \
361 libarchive/test/test_entry_strmode.c \
362 libarchive/test/test_extattr_freebsd.c \
363 libarchive/test/test_filter_count.c \
364 libarchive/test/test_fuzz.c \
365 libarchive/test/test_gnutar_filename_encoding.c \
366 libarchive/test/test_link_resolver.c \
367 libarchive/test/test_open_failure.c \
368 libarchive/test/test_open_fd.c \
369 libarchive/test/test_open_file.c \
370 libarchive/test/test_open_filename.c \
371 libarchive/test/test_pax_filename_encoding.c \
372 libarchive/test/test_read_data_large.c \
373 libarchive/test/test_read_disk.c \
374 libarchive/test/test_read_disk_directory_traversals.c \
375 libarchive/test/test_read_disk_entry_from_file.c \
376 libarchive/test/test_read_extract.c \
377 libarchive/test/test_read_file_nonexistent.c \
378 libarchive/test/test_read_filter_grzip.c \
379 libarchive/test/test_read_filter_lrzip.c \
380 libarchive/test/test_read_filter_lzop.c \
381 libarchive/test/test_read_filter_lzop_multiple_parts.c \
382 libarchive/test/test_read_filter_program.c \
383 libarchive/test/test_read_filter_program_signature.c \
384 libarchive/test/test_read_filter_uudecode.c \
385 libarchive/test/test_read_format_7zip.c \
386 libarchive/test/test_read_format_7zip_encryption_data.c \
387 libarchive/test/test_read_format_7zip_encryption_partially.c \
388 libarchive/test/test_read_format_7zip_encryption_header.c \
389 libarchive/test/test_read_format_ar.c \
390 libarchive/test/test_read_format_cab.c \
391 libarchive/test/test_read_format_cab_filename.c \
392 libarchive/test/test_read_format_cpio_afio.c \
393 libarchive/test/test_read_format_cpio_bin.c \
394 libarchive/test/test_read_format_cpio_bin_Z.c \
395 libarchive/test/test_read_format_cpio_bin_be.c \
396 libarchive/test/test_read_format_cpio_bin_bz2.c \
397 libarchive/test/test_read_format_cpio_bin_gz.c \
398 libarchive/test/test_read_format_cpio_bin_lzip.c \
399 libarchive/test/test_read_format_cpio_bin_lzma.c \
400 libarchive/test/test_read_format_cpio_bin_xz.c \
401 libarchive/test/test_read_format_cpio_filename.c \
402 libarchive/test/test_read_format_cpio_odc.c \
403 libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.c \
404 libarchive/test/test_read_format_cpio_svr4_gzip.c \
405 libarchive/test/test_read_format_cpio_svr4_gzip_rpm.c \
406 libarchive/test/test_read_format_cpio_svr4c_Z.c \
407 libarchive/test/test_read_format_empty.c \
408 libarchive/test/test_read_format_gtar_filename.c \
409 libarchive/test/test_read_format_gtar_gz.c \
410 libarchive/test/test_read_format_gtar_lzma.c \
411 libarchive/test/test_read_format_gtar_sparse.c \
412 libarchive/test/test_read_format_iso_Z.c \
413 libarchive/test/test_read_format_iso_multi_extent.c \
414 libarchive/test/test_read_format_iso_xorriso.c \
415 libarchive/test/test_read_format_isojoliet_bz2.c \
416 libarchive/test/test_read_format_isojoliet_long.c \
417 libarchive/test/test_read_format_isojoliet_rr.c \
418 libarchive/test/test_read_format_isojoliet_versioned.c \
419 libarchive/test/test_read_format_isorr_bz2.c \
420 libarchive/test/test_read_format_isorr_ce.c \
421 libarchive/test/test_read_format_isorr_new_bz2.c \
422 libarchive/test/test_read_format_isorr_rr_moved.c \
423 libarchive/test/test_read_format_isozisofs_bz2.c \
424 libarchive/test/test_read_format_lha.c \
425 libarchive/test/test_read_format_lha_filename.c \
426 libarchive/test/test_read_format_mtree.c \
427 libarchive/test/test_read_format_pax_bz2.c \
428 libarchive/test/test_read_format_rar.c \
429 libarchive/test/test_read_format_rar_encryption_data.c \
430 libarchive/test/test_read_format_rar_encryption_partially.c \
431 libarchive/test/test_read_format_rar_encryption_header.c \
432 libarchive/test/test_read_format_raw.c \
433 libarchive/test/test_read_format_tar.c \
434 libarchive/test/test_read_format_tar_concatenated.c \
435 libarchive/test/test_read_format_tar_empty_pax.c \
436 libarchive/test/test_read_format_tar_empty_filename.c \
437 libarchive/test/test_read_format_tar_filename.c \
438 libarchive/test/test_read_format_tbz.c \
439 libarchive/test/test_read_format_tgz.c \
440 libarchive/test/test_read_format_tlz.c \
441 libarchive/test/test_read_format_txz.c \
442 libarchive/test/test_read_format_tz.c \
443 libarchive/test/test_read_format_ustar_filename.c \
444 libarchive/test/test_read_format_xar.c \
445 libarchive/test/test_read_format_zip.c \
446 libarchive/test/test_read_format_zip_comment_stored.c \
447 libarchive/test/test_read_format_zip_encryption_data.c \
448 libarchive/test/test_read_format_zip_encryption_partially.c \
449 libarchive/test/test_read_format_zip_encryption_header.c \
450 libarchive/test/test_read_format_zip_filename.c \
451 libarchive/test/test_read_format_zip_mac_metadata.c \
452 libarchive/test/test_read_format_zip_nofiletype.c \
453 libarchive/test/test_read_format_zip_padded.c \
454 libarchive/test/test_read_format_zip_sfx.c \
455 libarchive/test/test_read_format_zip_zip64.c \
456 libarchive/test/test_read_large.c \
457 libarchive/test/test_read_pax_truncated.c \
458 libarchive/test/test_read_position.c \
459 libarchive/test/test_read_set_format.c \
460 libarchive/test/test_read_truncated.c \
461 libarchive/test/test_read_truncated_filter.c \
462 libarchive/test/test_sparse_basic.c \
463 libarchive/test/test_tar_filenames.c \
464 libarchive/test/test_tar_large.c \
465 libarchive/test/test_ustar_filenames.c \
466 libarchive/test/test_ustar_filename_encoding.c \
467 libarchive/test/test_write_disk.c \
468 libarchive/test/test_write_disk_appledouble.c \
469 libarchive/test/test_write_disk_failures.c \
470 libarchive/test/test_write_disk_hardlink.c \
471 libarchive/test/test_write_disk_hfs_compression.c \
472 libarchive/test/test_write_disk_lookup.c \
473 libarchive/test/test_write_disk_mac_metadata.c \
474 libarchive/test/test_write_disk_no_hfs_compression.c \
475 libarchive/test/test_write_disk_perms.c \
476 libarchive/test/test_write_disk_secure.c \
477 libarchive/test/test_write_disk_sparse.c \
478 libarchive/test/test_write_disk_symlink.c \
479 libarchive/test/test_write_disk_times.c \
480 libarchive/test/test_write_filter_b64encode.c \
481 libarchive/test/test_write_filter_bzip2.c \
482 libarchive/test/test_write_filter_compress.c \
483 libarchive/test/test_write_filter_gzip.c \
484 libarchive/test/test_write_filter_gzip_timestamp.c \
485 libarchive/test/test_write_filter_lrzip.c \
486 libarchive/test/test_write_filter_lzip.c \
487 libarchive/test/test_write_filter_lzma.c \
488 libarchive/test/test_write_filter_lzop.c \
489 libarchive/test/test_write_filter_program.c \
490 libarchive/test/test_write_filter_uuencode.c \
491 libarchive/test/test_write_filter_xz.c \
492 libarchive/test/test_write_format_7zip.c \
493 libarchive/test/test_write_format_7zip_empty.c \
494 libarchive/test/test_write_format_7zip_large.c \
495 libarchive/test/test_write_format_ar.c \
496 libarchive/test/test_write_format_cpio.c \
497 libarchive/test/test_write_format_cpio_empty.c \
498 libarchive/test/test_write_format_cpio_newc.c \
499 libarchive/test/test_write_format_cpio_odc.c \
500 libarchive/test/test_write_format_gnutar.c \
501 libarchive/test/test_write_format_iso9660.c \
502 libarchive/test/test_write_format_iso9660_boot.c \
503 libarchive/test/test_write_format_iso9660_empty.c \
504 libarchive/test/test_write_format_iso9660_filename.c \
505 libarchive/test/test_write_format_iso9660_zisofs.c \
506 libarchive/test/test_write_format_mtree.c \
507 libarchive/test/test_write_format_mtree_absolute_path.c \
508 libarchive/test/test_write_format_mtree_classic.c \
f83da353 509 libarchive/test/test_write_format_mtree_classic_indent.c\
154865e1
TK
510 libarchive/test/test_write_format_mtree_fflags.c \
511 libarchive/test/test_write_format_mtree_no_separator.c \
2569524b 512 libarchive/test/test_write_format_mtree_quoted_filename.c\
154865e1
TK
513 libarchive/test/test_write_format_pax.c \
514 libarchive/test/test_write_format_raw.c \
515 libarchive/test/test_write_format_raw_b64.c \
516 libarchive/test/test_write_format_shar_empty.c \
517 libarchive/test/test_write_format_tar.c \
518 libarchive/test/test_write_format_tar_empty.c \
519 libarchive/test/test_write_format_tar_sparse.c \
520 libarchive/test/test_write_format_tar_ustar.c \
521 libarchive/test/test_write_format_tar_v7tar.c \
522 libarchive/test/test_write_format_xar.c \
523 libarchive/test/test_write_format_xar_empty.c \
524 libarchive/test/test_write_format_zip.c \
525 libarchive/test/test_write_format_zip_compression_store.c \
526 libarchive/test/test_write_format_zip_empty.c \
527 libarchive/test/test_write_format_zip_empty_zip64.c \
528 libarchive/test/test_write_format_zip_file.c \
529 libarchive/test/test_write_format_zip_file_zip64.c \
530 libarchive/test/test_write_format_zip_large.c \
531 libarchive/test/test_write_format_zip_zip64.c \
532 libarchive/test/test_write_open_memory.c \
533 libarchive/test/test_write_read_format_zip.c \
83c67d6c 534 libarchive/test/test_zip_filename_encoding.c
b3cfa26b 535
aa95a749 536libarchive_test_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/test_utils -I$(top_builddir)/libarchive/test -DLIBARCHIVE_STATIC $(PLATFORMCPPFLAGS)
17fd872a 537libarchive_test_LDADD= $(LTLIBICONV)
79cb8e5b 538
b3cfa26b
TK
539# The "list.h" file just lists all of the tests defined in all of the sources.
540# Building it automatically provides a sanity-check on libarchive_test_SOURCES
541# above.
542libarchive/test/list.h: Makefile
543 cat $(top_srcdir)/libarchive/test/test_*.c | grep DEFINE_TEST > libarchive/test/list.h
544
1e5f600e 545libarchive_TESTS_ENVIRONMENT= LIBARCHIVE_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/libarchive/test LRZIP=NOCONFIG
b3cfa26b
TK
546
547libarchive_test_EXTRA_DIST=\
154865e1
TK
548 libarchive/test/list.h \
549 libarchive/test/test_acl_pax.tar.uu \
550 libarchive/test/test_archive_string_conversion.txt.Z.uu \
551 libarchive/test/test_compat_bzip2_1.tbz.uu \
552 libarchive/test/test_compat_bzip2_2.tbz.uu \
553 libarchive/test/test_compat_cpio_1.cpio.uu \
554 libarchive/test/test_compat_gtar_1.tar.uu \
555 libarchive/test/test_compat_gzip_1.tgz.uu \
556 libarchive/test/test_compat_gzip_2.tgz.uu \
557 libarchive/test/test_compat_lzip_1.tlz.uu \
558 libarchive/test/test_compat_lzip_2.tlz.uu \
559 libarchive/test/test_compat_lzma_1.tlz.uu \
560 libarchive/test/test_compat_lzma_2.tlz.uu \
561 libarchive/test/test_compat_lzma_3.tlz.uu \
562 libarchive/test/test_compat_lzop_1.tar.lzo.uu \
563 libarchive/test/test_compat_lzop_2.tar.lzo.uu \
564 libarchive/test/test_compat_lzop_3.tar.lzo.uu \
565 libarchive/test/test_compat_mac-1.tar.Z.uu \
566 libarchive/test/test_compat_mac-2.tar.Z.uu \
567 libarchive/test/test_compat_pax_libarchive_2x.tar.Z.uu \
568 libarchive/test/test_compat_solaris_pax_sparse_1.pax.Z.uu \
569 libarchive/test/test_compat_solaris_pax_sparse_2.pax.Z.uu \
570 libarchive/test/test_compat_solaris_tar_acl.tar.uu \
571 libarchive/test/test_compat_tar_hardlink_1.tar.uu \
572 libarchive/test/test_compat_xz_1.txz.uu \
573 libarchive/test/test_compat_zip_1.zip.uu \
574 libarchive/test/test_compat_zip_2.zip.uu \
575 libarchive/test/test_compat_zip_3.zip.uu \
576 libarchive/test/test_compat_zip_4.zip.uu \
577 libarchive/test/test_compat_zip_5.zip.uu \
578 libarchive/test/test_compat_zip_6.zip.uu \
579 libarchive/test/test_compat_zip_7.xps.uu \
580 libarchive/test/test_fuzz.cab.uu \
581 libarchive/test/test_fuzz.lzh.uu \
582 libarchive/test/test_fuzz_1.iso.Z.uu \
583 libarchive/test/test_pax_filename_encoding.tar.uu \
a5b03cc1
AM
584 libarchive/test/test_rar_multivolume_multiple_files.part1.rar.uu \
585 libarchive/test/test_rar_multivolume_multiple_files.part2.rar.uu \
586 libarchive/test/test_rar_multivolume_multiple_files.part3.rar.uu \
587 libarchive/test/test_rar_multivolume_multiple_files.part4.rar.uu \
588 libarchive/test/test_rar_multivolume_multiple_files.part5.rar.uu \
589 libarchive/test/test_rar_multivolume_multiple_files.part6.rar.uu \
154865e1
TK
590 libarchive/test/test_rar_multivolume_single_file.part1.rar.uu \
591 libarchive/test/test_rar_multivolume_single_file.part2.rar.uu \
592 libarchive/test/test_rar_multivolume_single_file.part3.rar.uu \
72d27a8c
AM
593 libarchive/test/test_rar_multivolume_uncompressed_files.part01.rar.uu \
594 libarchive/test/test_rar_multivolume_uncompressed_files.part02.rar.uu \
595 libarchive/test/test_rar_multivolume_uncompressed_files.part03.rar.uu \
596 libarchive/test/test_rar_multivolume_uncompressed_files.part04.rar.uu \
597 libarchive/test/test_rar_multivolume_uncompressed_files.part05.rar.uu \
598 libarchive/test/test_rar_multivolume_uncompressed_files.part06.rar.uu \
599 libarchive/test/test_rar_multivolume_uncompressed_files.part07.rar.uu \
600 libarchive/test/test_rar_multivolume_uncompressed_files.part08.rar.uu \
601 libarchive/test/test_rar_multivolume_uncompressed_files.part09.rar.uu \
602 libarchive/test/test_rar_multivolume_uncompressed_files.part10.rar.uu \
154865e1
TK
603 libarchive/test/test_read_filter_grzip.tar.grz.uu \
604 libarchive/test/test_read_filter_lrzip.tar.lrz.uu \
605 libarchive/test/test_read_filter_lzop.tar.lzo.uu \
606 libarchive/test/test_read_filter_lzop_multiple_parts.tar.lzo.uu \
607 libarchive/test/test_read_format_7zip_bcj2_bzip2.7z.uu \
608 libarchive/test/test_read_format_7zip_bcj2_copy_1.7z.uu \
609 libarchive/test/test_read_format_7zip_bcj2_copy_2.7z.uu \
610 libarchive/test/test_read_format_7zip_bcj2_copy_lzma.7z.uu \
611 libarchive/test/test_read_format_7zip_bcj2_deflate.7z.uu \
612 libarchive/test/test_read_format_7zip_bcj2_lzma1_1.7z.uu \
613 libarchive/test/test_read_format_7zip_bcj2_lzma1_2.7z.uu \
614 libarchive/test/test_read_format_7zip_bcj2_lzma2_1.7z.uu \
615 libarchive/test/test_read_format_7zip_bcj2_lzma2_2.7z.uu \
616 libarchive/test/test_read_format_7zip_bcj_bzip2.7z.uu \
617 libarchive/test/test_read_format_7zip_bcj_copy.7z.uu \
618 libarchive/test/test_read_format_7zip_bcj_deflate.7z.uu \
619 libarchive/test/test_read_format_7zip_bcj_lzma1.7z.uu \
620 libarchive/test/test_read_format_7zip_bcj_lzma2.7z.uu \
621 libarchive/test/test_read_format_7zip_bzip2.7z.uu \
622 libarchive/test/test_read_format_7zip_copy.7z.uu \
623 libarchive/test/test_read_format_7zip_copy_2.7z.uu \
624 libarchive/test/test_read_format_7zip_deflate.7z.uu \
625 libarchive/test/test_read_format_7zip_delta_lzma1.7z.uu \
626 libarchive/test/test_read_format_7zip_delta_lzma2.7z.uu \
627 libarchive/test/test_read_format_7zip_empty_archive.7z.uu \
628 libarchive/test/test_read_format_7zip_empty_file.7z.uu \
629 libarchive/test/test_read_format_7zip_encryption.7z.uu \
630 libarchive/test/test_read_format_7zip_encryption_header.7z.uu \
631 libarchive/test/test_read_format_7zip_encryption_partially.7z.uu \
632 libarchive/test/test_read_format_7zip_lzma1.7z.uu \
633 libarchive/test/test_read_format_7zip_lzma1_2.7z.uu \
634 libarchive/test/test_read_format_7zip_lzma1_lzma2.7z.uu \
635 libarchive/test/test_read_format_7zip_lzma2.7z.uu \
636 libarchive/test/test_read_format_7zip_ppmd.7z.uu \
637 libarchive/test/test_read_format_7zip_symbolic_name.7z.uu \
638 libarchive/test/test_read_format_ar.ar.uu \
639 libarchive/test/test_read_format_cab_1.cab.uu \
640 libarchive/test/test_read_format_cab_2.cab.uu \
641 libarchive/test/test_read_format_cab_3.cab.uu \
642 libarchive/test/test_read_format_cab_filename_cp932.cab.uu \
643 libarchive/test/test_read_format_cpio_bin_be.cpio.uu \
644 libarchive/test/test_read_format_cpio_filename_cp866.cpio.uu \
645 libarchive/test/test_read_format_cpio_filename_eucjp.cpio.uu \
646 libarchive/test/test_read_format_cpio_filename_koi8r.cpio.uu \
647 libarchive/test/test_read_format_cpio_filename_utf8_jp.cpio.uu \
648 libarchive/test/test_read_format_cpio_filename_utf8_ru.cpio.uu \
649 libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.rpm.uu \
650 libarchive/test/test_read_format_cpio_svr4_gzip_rpm.rpm.uu \
651 libarchive/test/test_read_format_gtar_filename_cp866.tar.Z.uu \
652 libarchive/test/test_read_format_gtar_filename_eucjp.tar.Z.uu \
653 libarchive/test/test_read_format_gtar_filename_koi8r.tar.Z.uu \
654 libarchive/test/test_read_format_gtar_sparse_1_13.tar.uu \
655 libarchive/test/test_read_format_gtar_sparse_1_17.tar.uu \
cf6ad4ba
TK
656 libarchive/test/test_read_format_gtar_sparse_1_17_posix00.tar.uu \
657 libarchive/test/test_read_format_gtar_sparse_1_17_posix01.tar.uu \
658 libarchive/test/test_read_format_gtar_sparse_1_17_posix10.tar.uu \
b3cfa26b 659 libarchive/test/test_read_format_gtar_sparse_1_17_posix10_modified.tar.uu \
154865e1
TK
660 libarchive/test/test_read_format_iso.iso.Z.uu \
661 libarchive/test/test_read_format_iso_2.iso.Z.uu \
662 libarchive/test/test_read_format_iso_joliet.iso.Z.uu \
663 libarchive/test/test_read_format_iso_joliet_by_nero.iso.Z.uu \
664 libarchive/test/test_read_format_iso_joliet_long.iso.Z.uu \
665 libarchive/test/test_read_format_iso_joliet_rockridge.iso.Z.uu \
666 libarchive/test/test_read_format_iso_multi_extent.iso.Z.uu \
667 libarchive/test/test_read_format_iso_rockridge.iso.Z.uu \
668 libarchive/test/test_read_format_iso_rockridge_ce.iso.Z.uu \
669 libarchive/test/test_read_format_iso_rockridge_new.iso.Z.uu \
670 libarchive/test/test_read_format_iso_rockridge_rr_moved.iso.Z.uu \
671 libarchive/test/test_read_format_iso_xorriso.iso.Z.uu \
672 libarchive/test/test_read_format_iso_zisofs.iso.Z.uu \
673 libarchive/test/test_read_format_lha_filename_cp932.lzh.uu \
674 libarchive/test/test_read_format_lha_header0.lzh.uu \
675 libarchive/test/test_read_format_lha_header1.lzh.uu \
676 libarchive/test/test_read_format_lha_header2.lzh.uu \
677 libarchive/test/test_read_format_lha_header3.lzh.uu \
678 libarchive/test/test_read_format_lha_lh0.lzh.uu \
679 libarchive/test/test_read_format_lha_lh6.lzh.uu \
680 libarchive/test/test_read_format_lha_lh7.lzh.uu \
681 libarchive/test/test_read_format_lha_withjunk.lzh.uu \
682 libarchive/test/test_read_format_mtree.mtree.uu \
683 libarchive/test/test_read_format_mtree_nomagic.mtree.uu \
684 libarchive/test/test_read_format_mtree_nomagic2.mtree.uu \
685 libarchive/test/test_read_format_mtree_nomagic3.mtree.uu \
686 libarchive/test/test_read_format_rar.rar.uu \
687 libarchive/test/test_read_format_rar_binary_data.rar.uu \
688 libarchive/test/test_read_format_rar_compress_best.rar.uu \
689 libarchive/test/test_read_format_rar_compress_normal.rar.uu \
690 libarchive/test/test_read_format_rar_encryption_data.rar.uu \
691 libarchive/test/test_read_format_rar_encryption_header.rar.uu \
692 libarchive/test/test_read_format_rar_encryption_partially.rar.uu \
693 libarchive/test/test_read_format_rar_multi_lzss_blocks.rar.uu \
694 libarchive/test/test_read_format_rar_multivolume.part0001.rar.uu \
695 libarchive/test/test_read_format_rar_multivolume.part0002.rar.uu \
696 libarchive/test/test_read_format_rar_multivolume.part0003.rar.uu \
697 libarchive/test/test_read_format_rar_multivolume.part0004.rar.uu \
698 libarchive/test/test_read_format_rar_noeof.rar.uu \
699 libarchive/test/test_read_format_rar_ppmd_lzss_conversion.rar.uu \
700 libarchive/test/test_read_format_rar_sfx.exe.uu \
701 libarchive/test/test_read_format_rar_subblock.rar.uu \
702 libarchive/test/test_read_format_rar_unicode.rar.uu \
703 libarchive/test/test_read_format_rar_windows.rar.uu \
704 libarchive/test/test_read_format_raw.data.Z.uu \
705 libarchive/test/test_read_format_raw.data.uu \
706 libarchive/test/test_read_format_tar_concatenated.tar.uu \
707 libarchive/test/test_read_format_tar_empty_filename.tar.uu \
708 libarchive/test/test_read_format_tar_empty_pax.tar.Z.uu \
709 libarchive/test/test_read_format_tar_filename_koi8r.tar.Z.uu \
710 libarchive/test/test_read_format_ustar_filename_cp866.tar.Z.uu \
711 libarchive/test/test_read_format_ustar_filename_eucjp.tar.Z.uu \
712 libarchive/test/test_read_format_ustar_filename_koi8r.tar.Z.uu \
713 libarchive/test/test_read_format_zip.zip.uu \
714 libarchive/test/test_read_format_zip_comment_stored_1.zip.uu \
715 libarchive/test/test_read_format_zip_comment_stored_2.zip.uu \
716 libarchive/test/test_read_format_zip_encryption_data.zip.uu \
717 libarchive/test/test_read_format_zip_encryption_header.zip.uu \
718 libarchive/test/test_read_format_zip_encryption_partially.zip.uu \
719 libarchive/test/test_read_format_zip_filename_cp866.zip.uu \
720 libarchive/test/test_read_format_zip_filename_cp932.zip.uu \
721 libarchive/test/test_read_format_zip_filename_koi8r.zip.uu \
722 libarchive/test/test_read_format_zip_filename_utf8_jp.zip.uu \
723 libarchive/test/test_read_format_zip_filename_utf8_ru.zip.uu \
724 libarchive/test/test_read_format_zip_filename_utf8_ru2.zip.uu \
725 libarchive/test/test_read_format_zip_length_at_end.zip.uu \
726 libarchive/test/test_read_format_zip_mac_metadata.zip.uu \
727 libarchive/test/test_read_format_zip_nofiletype.zip.uu \
728 libarchive/test/test_read_format_zip_padded1.zip.uu \
729 libarchive/test/test_read_format_zip_padded2.zip.uu \
730 libarchive/test/test_read_format_zip_padded3.zip.uu \
731 libarchive/test/test_read_format_zip_sfx.uu \
732 libarchive/test/test_read_format_zip_symlink.zip.uu \
733 libarchive/test/test_read_format_zip_ux.zip.uu \
734 libarchive/test/test_read_format_zip_zip64a.zip.uu \
735 libarchive/test/test_read_format_zip_zip64b.zip.uu \
736 libarchive/test/test_read_large_splitted_rar_aa.uu \
737 libarchive/test/test_read_large_splitted_rar_ab.uu \
738 libarchive/test/test_read_large_splitted_rar_ac.uu \
739 libarchive/test/test_read_large_splitted_rar_ad.uu \
740 libarchive/test/test_read_large_splitted_rar_ae.uu \
741 libarchive/test/test_read_splitted_rar_aa.uu \
742 libarchive/test/test_read_splitted_rar_ab.uu \
743 libarchive/test/test_read_splitted_rar_ac.uu \
744 libarchive/test/test_read_splitted_rar_ad.uu \
745 libarchive/test/test_splitted_rar_seek_support_aa.uu \
746 libarchive/test/test_splitted_rar_seek_support_ab.uu \
747 libarchive/test/test_splitted_rar_seek_support_ac.uu \
748 libarchive/test/test_write_disk_appledouble.cpio.gz.uu \
749 libarchive/test/test_write_disk_hfs_compression.tgz.uu \
750 libarchive/test/test_write_disk_mac_metadata.tar.gz.uu \
751 libarchive/test/test_write_disk_no_hfs_compression.tgz.uu \
752 libarchive/test/CMakeLists.txt \
79cb8e5b 753 libarchive/test/README
b3cfa26b 754
71d1bfe0
JS
755#
756# Common code for libarchive frontends (cpio, tar)
757#
154865e1
TK
758libarchive_fe_la_SOURCES= \
759 libarchive_fe/err.c \
760 libarchive_fe/err.h \
761 libarchive_fe/lafe_platform.h \
762 libarchive_fe/line_reader.c \
ae314ad8 763 libarchive_fe/line_reader.h
b3cfa26b 764
e1a574df 765libarchive_fe_la_CPPFLAGS= -I$(top_srcdir)/libarchive
b3cfa26b
TK
766#
767#
768# bsdtar source, docs, etc.
769#
770#
771
154865e1
TK
772bsdtar_SOURCES= \
773 tar/bsdtar.c \
774 tar/bsdtar.h \
775 tar/bsdtar_platform.h \
776 tar/cmdline.c \
777 tar/creation_set.c \
778 tar/read.c \
779 tar/subst.c \
780 tar/util.c \
b3cfa26b
TK
781 tar/write.c
782
79cb8e5b 783if INC_WINDOWS_FILES
154865e1
TK
784bsdtar_SOURCES+= \
785 tar/bsdtar_windows.h \
926d6bcb 786 tar/bsdtar_windows.c
79cb8e5b 787endif
79cb8e5b 788
71d1bfe0 789bsdtar_DEPENDENCIES= libarchive.la libarchive_fe.la
b3cfa26b
TK
790
791if STATIC_BSDTAR
66c6a7b4
CW
792bsdtar_ldstatic= -static
793bsdtar_ccstatic= -DLIBARCHIVE_STATIC
b3cfa26b 794else
66c6a7b4
CW
795bsdtar_ldstatic=
796bsdtar_ccstatic=
b3cfa26b
TK
797endif
798
17fd872a 799bsdtar_LDADD= libarchive.la libarchive_fe.la $(LTLIBICONV)
c31d1bc4 800bsdtar_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdtar_ccstatic) $(PLATFORMCPPFLAGS)
66c6a7b4 801bsdtar_LDFLAGS= $(bsdtar_ldstatic)
71d1bfe0 802
154865e1
TK
803bsdtar_EXTRA_DIST= \
804 tar/bsdtar.1 \
805 tar/bsdtar_windows.h \
806 tar/bsdtar_windows.c \
807 tar/CMakeLists.txt \
9d22dfd5 808 tar/config_freebsd.h
79cb8e5b 809
b3cfa26b
TK
810
811if BUILD_BSDTAR
812bsdtar_man_MANS= tar/bsdtar.1
813bsdtar_programs= bsdtar
814else
815bsdtar_man_MANS=
816bsdtar_programs=
817endif
818
819#
820# bsdtar_test
821#
822
154865e1
TK
823bsdtar_test_SOURCES= \
824 $(test_utils_SOURCES) \
825 tar/test/main.c \
826 tar/test/test.h \
827 tar/test/test_0.c \
828 tar/test/test_basic.c \
829 tar/test/test_copy.c \
830 tar/test/test_empty_mtree.c \
831 tar/test/test_extract_tar_Z.c \
832 tar/test/test_extract_tar_bz2.c \
833 tar/test/test_extract_tar_grz.c \
834 tar/test/test_extract_tar_gz.c \
835 tar/test/test_extract_tar_lrz.c \
836 tar/test/test_extract_tar_lz.c \
837 tar/test/test_extract_tar_lzma.c \
838 tar/test/test_extract_tar_lzo.c \
839 tar/test/test_extract_tar_xz.c \
840 tar/test/test_format_newc.c \
841 tar/test/test_help.c \
842 tar/test/test_option_C_upper.c \
843 tar/test/test_option_H_upper.c \
844 tar/test/test_option_L_upper.c \
845 tar/test/test_option_O_upper.c \
846 tar/test/test_option_T_upper.c \
847 tar/test/test_option_U_upper.c \
848 tar/test/test_option_X_upper.c \
849 tar/test/test_option_a.c \
850 tar/test/test_option_b.c \
851 tar/test/test_option_b64encode.c \
852 tar/test/test_option_exclude.c \
853 tar/test/test_option_gid_gname.c \
854 tar/test/test_option_grzip.c \
855 tar/test/test_option_j.c \
856 tar/test/test_option_k.c \
857 tar/test/test_option_keep_newer_files.c \
858 tar/test/test_option_lrzip.c \
859 tar/test/test_option_lzma.c \
860 tar/test/test_option_lzop.c \
861 tar/test/test_option_n.c \
862 tar/test/test_option_newer_than.c \
863 tar/test/test_option_nodump.c \
864 tar/test/test_option_older_than.c \
865 tar/test/test_option_q.c \
866 tar/test/test_option_r.c \
867 tar/test/test_option_s.c \
868 tar/test/test_option_uid_uname.c \
869 tar/test/test_option_uuencode.c \
870 tar/test/test_option_xz.c \
871 tar/test/test_option_z.c \
872 tar/test/test_patterns.c \
873 tar/test/test_print_longpath.c \
874 tar/test/test_stdio.c \
875 tar/test/test_strip_components.c \
876 tar/test/test_symlink_dir.c \
877 tar/test/test_version.c \
f470386a 878 tar/test/test_windows.c
b3cfa26b 879
c31d1bc4
CW
880bsdtar_test_CPPFLAGS=\
881 -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \
aa95a749 882 -I$(top_srcdir)/test_utils \
c31d1bc4
CW
883 -I$(top_srcdir)/tar -I$(top_builddir)/tar/test \
884 $(PLATFORMCPPFLAGS)
b3cfa26b
TK
885
886tar/test/list.h: Makefile
887 cat $(top_srcdir)/tar/test/test_*.c | grep DEFINE_TEST > tar/test/list.h
888
889if BUILD_BSDTAR
890bsdtar_test_programs= bsdtar_test
125047fc 891bsdtar_TESTS_ENVIRONMENT= BSDTAR=`cd $(top_builddir);/bin/pwd`/bsdtar$(EXEEXT) BSDTAR_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/tar/test
b3cfa26b
TK
892else
893bsdtar_test_programs=
894bsdtar_TESTS_ENVIRONMENT=
895endif
896
154865e1 897bsdtar_test_EXTRA_DIST= \
9d22dfd5 898 tar/test/list.h \
154865e1 899 tar/test/test_extract.tar.Z.uu \
79c57c39 900 tar/test/test_extract.tar.bz2.uu \
630ead78 901 tar/test/test_extract.tar.grz.uu \
154865e1 902 tar/test/test_extract.tar.gz.uu \
79c57c39 903 tar/test/test_extract.tar.lrz.uu \
154865e1 904 tar/test/test_extract.tar.lz.uu \
79c57c39
MN
905 tar/test/test_extract.tar.lzma.uu \
906 tar/test/test_extract.tar.lzo.uu \
907 tar/test/test_extract.tar.xz.uu \
113601be 908 tar/test/test_option_keep_newer_files.tar.Z.uu \
9d22dfd5 909 tar/test/test_option_s.tar.Z.uu \
154865e1
TK
910 tar/test/test_patterns_2.tar.uu \
911 tar/test/test_patterns_3.tar.uu \
912 tar/test/test_patterns_4.tar.uu \
b4a4200f 913 tar/test/test_print_longpath.tar.Z.uu \
79cb8e5b 914 tar/test/CMakeLists.txt
d75f8db1 915
b3cfa26b
TK
916
917#
918#
919# bsdcpio source, docs, etc.
920#
921#
922
154865e1
TK
923bsdcpio_SOURCES= \
924 cpio/cmdline.c \
925 cpio/cpio.c \
926 cpio/cpio.h \
71d1bfe0 927 cpio/cpio_platform.h
b3cfa26b 928
79cb8e5b 929if INC_WINDOWS_FILES
154865e1
TK
930bsdcpio_SOURCES+= \
931 cpio/cpio_windows.h \
926d6bcb 932 cpio/cpio_windows.c
79cb8e5b 933endif
79cb8e5b 934
71d1bfe0 935bsdcpio_DEPENDENCIES = libarchive.la libarchive_fe.la
b3cfa26b
TK
936
937
938if STATIC_BSDCPIO
66c6a7b4
CW
939bsdcpio_ldstatic= -static
940bsdcpio_ccstatic= -DLIBARCHIVE_STATIC
b3cfa26b 941else
66c6a7b4
CW
942bsdcpio_ldstatic=
943bsdcpio_ccstatic=
b3cfa26b
TK
944endif
945
17fd872a 946bsdcpio_LDADD= libarchive_fe.la libarchive.la $(LTLIBICONV)
c31d1bc4 947bsdcpio_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdcpio_ccstatic) $(PLATFORMCPPFLAGS)
66c6a7b4
CW
948bsdcpio_LDFLAGS= $(bsdcpio_ldstatic)
949
154865e1
TK
950bsdcpio_EXTRA_DIST= \
951 cpio/bsdcpio.1 \
952 cpio/cpio_windows.h \
953 cpio/cpio_windows.c \
954 cpio/CMakeLists.txt \
79cb8e5b
CW
955 cpio/config_freebsd.h
956
b3cfa26b
TK
957
958if BUILD_BSDCPIO
959# Manpages to install
960bsdcpio_man_MANS= cpio/bsdcpio.1
961bsdcpio_programs= bsdcpio
962else
963bsdcpio_man_MANS=
964bsdcpio_programs=
965endif
966
967#
968# bsdcpio_test
969#
970
154865e1
TK
971bsdcpio_test_SOURCES= \
972 $(test_utils_SOURCES) \
973 cpio/cmdline.c \
974 cpio/test/main.c \
975 cpio/test/test.h \
976 cpio/test/test_0.c \
977 cpio/test/test_basic.c \
978 cpio/test/test_cmdline.c \
979 cpio/test/test_extract_cpio_Z.c \
980 cpio/test/test_extract_cpio_bz2.c \
981 cpio/test/test_extract_cpio_grz.c \
982 cpio/test/test_extract_cpio_gz.c \
983 cpio/test/test_extract_cpio_lrz.c \
984 cpio/test/test_extract_cpio_lz.c \
985 cpio/test/test_extract_cpio_lzma.c \
986 cpio/test/test_extract_cpio_lzo.c \
987 cpio/test/test_extract_cpio_xz.c \
988 cpio/test/test_format_newc.c \
989 cpio/test/test_gcpio_compat.c \
990 cpio/test/test_option_0.c \
991 cpio/test/test_option_B_upper.c \
992 cpio/test/test_option_C_upper.c \
993 cpio/test/test_option_J_upper.c \
994 cpio/test/test_option_L_upper.c \
995 cpio/test/test_option_Z_upper.c \
996 cpio/test/test_option_a.c \
997 cpio/test/test_option_b64encode.c \
998 cpio/test/test_option_c.c \
999 cpio/test/test_option_d.c \
1000 cpio/test/test_option_f.c \
1001 cpio/test/test_option_grzip.c \
1002 cpio/test/test_option_help.c \
1003 cpio/test/test_option_l.c \
1004 cpio/test/test_option_lrzip.c \
1005 cpio/test/test_option_lzma.c \
1006 cpio/test/test_option_lzop.c \
1007 cpio/test/test_option_m.c \
1008 cpio/test/test_option_t.c \
1009 cpio/test/test_option_u.c \
1010 cpio/test/test_option_uuencode.c \
1011 cpio/test/test_option_version.c \
1012 cpio/test/test_option_xz.c \
1013 cpio/test/test_option_y.c \
1014 cpio/test/test_option_z.c \
1015 cpio/test/test_owner_parse.c \
1016 cpio/test/test_passthrough_dotdot.c \
718b5cc7 1017 cpio/test/test_passthrough_reverse.c
b3cfa26b 1018
71d1bfe0
JS
1019bsdcpio_test_CPPFLAGS= \
1020 -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \
aa95a749 1021 -I$(top_srcdir)/test_utils \
c31d1bc4
CW
1022 -I$(top_srcdir)/cpio -I$(top_builddir)/cpio/test \
1023 $(PLATFORMCPPFLAGS)
cee6343a 1024bsdcpio_test_LDADD=libarchive_fe.la
b3cfa26b
TK
1025
1026cpio/test/list.h: Makefile
1027 cat $(top_srcdir)/cpio/test/test_*.c | grep DEFINE_TEST > cpio/test/list.h
1028
1029if BUILD_BSDCPIO
1030bsdcpio_test_programs= bsdcpio_test
125047fc 1031bsdcpio_TESTS_ENVIRONMENT= BSDCPIO=`cd $(top_builddir);/bin/pwd`/bsdcpio$(EXEEXT) BSDCPIO_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/cpio/test
b3cfa26b
TK
1032else
1033bsdcpio_test_programs=
1034bsdcpio_TESTS_ENVIRONMENT=
1035endif
1036
154865e1
TK
1037bsdcpio_test_EXTRA_DIST= \
1038 cpio/test/list.h \
1039 cpio/test/test_extract.cpio.Z.uu \
1040 cpio/test/test_extract.cpio.bz2.uu \
1041 cpio/test/test_extract.cpio.grz.uu \
1042 cpio/test/test_extract.cpio.gz.uu \
1043 cpio/test/test_extract.cpio.lrz.uu \
1044 cpio/test/test_extract.cpio.lz.uu \
1045 cpio/test/test_extract.cpio.lzma.uu \
1046 cpio/test/test_extract.cpio.lzo.uu \
1047 cpio/test/test_extract.cpio.xz.uu \
1048 cpio/test/test_gcpio_compat_ref.bin.uu \
1049 cpio/test/test_gcpio_compat_ref.crc.uu \
1050 cpio/test/test_gcpio_compat_ref.newc.uu \
b3cfa26b 1051 cpio/test/test_gcpio_compat_ref.ustar.uu \
e8b51424
JS
1052 cpio/test/test_gcpio_compat_ref_nosym.bin.uu \
1053 cpio/test/test_gcpio_compat_ref_nosym.crc.uu \
1054 cpio/test/test_gcpio_compat_ref_nosym.newc.uu \
1055 cpio/test/test_gcpio_compat_ref_nosym.ustar.uu \
154865e1
TK
1056 cpio/test/test_option_f.cpio.uu \
1057 cpio/test/test_option_m.cpio.uu \
1058 cpio/test/test_option_t.cpio.uu \
1059 cpio/test/test_option_t.stdout.uu \
1060 cpio/test/test_option_tv.stdout.uu \
79cb8e5b 1061 cpio/test/CMakeLists.txt
5d3f56d2
MK
1062
1063#
1064#
1065# bsdcat source, docs, etc.
1066#
1067#
1068
1069bsdcat_SOURCES= \
1070 cat/bsdcat.c \
1071 cat/bsdcat.h
1072
1073if INC_WINDOWS_FILES
1074bsdcat_SOURCES+=
1075endif
1076
1077bsdcat_DEPENDENCIES = libarchive.la libarchive_fe.la
1078
1079
1080if STATIC_BSDCAT
1081bsdcat_ldstatic= -static
1082bsdcat_ccstatic= -DLIBARCHIVE_STATIC
1083else
1084bsdcat_ldstatic=
1085bsdcat_ccstatic=
1086endif
1087
1088bsdcat_LDADD= libarchive_fe.la libarchive.la $(LTLIBICONV)
1089bsdcat_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdcat_ccstatic) $(PLATFORMCPPFLAGS)
1090bsdcat_LDFLAGS= $(bsdcat_ldstatic)
1091
1092bsdcat_EXTRA_DIST= \
1093 cat/bsdcat.1 \
1094 cat/CMakeLists.txt
1095
1096
1097if BUILD_BSDCAT
1098# Manpages to install
1099bsdcat_man_MANS= cat/bsdcat.1
1100bsdcat_programs= bsdcat
1101else
1102bsdcat_man_MANS=
1103bsdcat_programs=
1104endif
c03898de
MK
1105
1106#
1107# bsdcat_test
1108#
1109
1110bsdcat_test_SOURCES= \
1111 $(test_utils_SOURCES) \
1112 cat/test/main.c \
1113 cat/test/test.h \
1114 cat/test/test_0.c \
1115 cat/test/test_error.c \
1116 cat/test/test_error_mixed.c \
1117 cat/test/test_expand_Z.c \
1118 cat/test/test_expand_bz2.c \
1119 cat/test/test_expand_gz.c \
1120 cat/test/test_expand_mixed.c \
1121 cat/test/test_expand_plain.c \
1122 cat/test/test_expand_xz.c \
1123 cat/test/test_help.c \
1124 cat/test/test_version.c
1125
1126bsdcat_test_CPPFLAGS= \
1127 -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \
1128 -I$(top_srcdir)/test_utils \
1129 -I$(top_srcdir)/cat -I$(top_builddir)/cat/test \
1130 $(PLATFORMCPPFLAGS)
1131bsdcat_test_LDADD=libarchive_fe.la
1132
1133cat/test/list.h: Makefile
1134 cat $(top_srcdir)/cat/test/test_*.c | grep DEFINE_TEST > cat/test/list.h
1135
1136if BUILD_BSDCAT
1137bsdcat_test_programs= bsdcat_test
1138bsdcat_TESTS_ENVIRONMENT= BSDCAT=`cd $(top_builddir);/bin/pwd`/bsdcat$(EXEEXT) BSDCAT_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/cat/test
1139else
1140bsdcat_test_programs=
1141bsdcat_TESTS_ENVIRONMENT=
1142endif
1143
1144bsdcat_test_EXTRA_DIST= \
1145 cat/test/list.h \
1146 cat/test/test_expand.Z.uu \
1147 cat/test/test_expand.bz2.uu \
1148 cat/test/test_expand.gz.uu \
1149 cat/test/test_expand.plain.uu \
1150 cat/test/test_expand.xz.uu \
1151 cat/test/CMakeLists.txt