]>
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 |
b3cfa26b TK |
11 | bin_PROGRAMS= $(bsdtar_programs) $(bsdcpio_programs) |
12 | man_MANS= $(libarchive_man_MANS) $(bsdtar_man_MANS) $(bsdcpio_man_MANS) | |
13 | BUILT_SOURCES= libarchive/test/list.h tar/test/list.h cpio/test/list.h | |
14 | ||
15 | # | |
16 | # What to test: We always test libarchive, test bsdtar and bsdcpio only | |
17 | # if we built them. | |
18 | # | |
19 | check_PROGRAMS= libarchive_test $(bsdtar_test_programs) $(bsdcpio_test_programs) | |
20 | TESTS= libarchive_test $(bsdtar_test_programs) $(bsdcpio_test_programs) | |
21 | TESTS_ENVIRONMENT= $(libarchive_TESTS_ENVIRONMENT) $(bsdtar_TESTS_ENVIRONMENT) $(bsdcpio_TESTS_ENVIRONMENT) | |
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. | |
9008e2a4 | 26 | AM_CFLAGS=-Wall -Werror |
c31d1bc4 CW |
27 | PLATFORMCPPFLAGS = @PLATFORMCPPFLAGS@ |
28 | AM_CPPFLAGS=$(PLATFORMCPPFLAGS) | |
b3cfa26b TK |
29 | |
30 | # | |
31 | # What to include in the distribution | |
32 | # | |
952928f5 | 33 | EXTRA_DIST= \ |
8dd1cb93 | 34 | CMakeLists.txt \ |
842877bf | 35 | build/autogen.sh \ |
192fd4ff TK |
36 | build/bump-version.sh \ |
37 | build/clean.sh \ | |
952928f5 TK |
38 | build/cmake \ |
39 | build/version \ | |
b3cfa26b | 40 | contrib \ |
3f3749c4 | 41 | doc \ |
b3cfa26b | 42 | examples \ |
b3cfa26b TK |
43 | $(libarchive_EXTRA_DIST) \ |
44 | $(libarchive_test_EXTRA_DIST) \ | |
45 | $(bsdtar_EXTRA_DIST) \ | |
46 | $(bsdtar_test_EXTRA_DIST) \ | |
47 | $(bsdcpio_EXTRA_DIST) \ | |
48 | $(bsdcpio_test_EXTRA_DIST) | |
49 | ||
50 | # a) Clean out some unneeded files and directories | |
51 | # b) Collect all documentation and format it for distribution. | |
52 | dist-hook: | |
53 | rm -rf `find $(distdir) -name CVS -type d` | |
54 | rm -rf `find $(distdir) -name .svn -type d` | |
55 | rm -f `find $(distdir) -name '*~'` | |
56 | rm -f `find $(distdir) -name '*.out'` | |
57 | rm -f `find $(distdir) -name '*.core'` | |
58 | -rm -f $(distdir)/*/Makefile $(distdir)/*/*/Makefile | |
09549f49 | 59 | cd $(distdir)/doc && /bin/sh update.sh |
b3cfa26b TK |
60 | |
61 | # | |
62 | # Extra rules for cleanup | |
63 | # | |
438c6911 | 64 | DISTCLEANFILES= \ |
b3cfa26b TK |
65 | libarchive/test/list.h \ |
66 | tar/test/list.h \ | |
67 | cpio/test/list.h | |
68 | ||
69 | distclean-local: | |
70 | -rm -rf .ref | |
71 | -rm -rf autom4te.cache/ | |
72 | -rm -f *~ | |
73 | -[ -f libarchive/Makefile ] && cd libarchive && make clean | |
74 | -[ -f libarchive/test/Makefile ] && cd libarchive/test && make clean | |
75 | -[ -f tar/Makefile ] && cd tar && make clean | |
76 | -[ -f tar/test/Makefile ] && cd tar/test && make clean | |
77 | -[ -f cpio/Makefile ] && cd cpio && make clean | |
78 | -[ -f cpio/test/Makefile ] && cd cpio/test && make clean | |
79 | ||
80 | # | |
81 | # Libarchive headers, source, etc. | |
82 | # | |
83 | # | |
84 | ||
09549f49 | 85 | include_HEADERS= libarchive/archive.h libarchive/archive_entry.h |
b3cfa26b TK |
86 | |
87 | libarchive_la_SOURCES= \ | |
d08b8d7e | 88 | libarchive/archive_acl.c \ |
ab9806b4 | 89 | libarchive/archive_acl_private.h \ |
b3cfa26b | 90 | libarchive/archive_check_magic.c \ |
4bb676bd | 91 | libarchive/archive_crc32.h \ |
2d53ab9e AM |
92 | libarchive/archive_crypto.c \ |
93 | libarchive/archive_crypto_private.h \ | |
b3cfa26b TK |
94 | libarchive/archive_endian.h \ |
95 | libarchive/archive_entry.c \ | |
96 | libarchive/archive_entry.h \ | |
97 | libarchive/archive_entry_copy_stat.c \ | |
98 | libarchive/archive_entry_link_resolver.c \ | |
ae543941 | 99 | libarchive/archive_entry_locale.h \ |
b3cfa26b | 100 | libarchive/archive_entry_private.h \ |
d216d028 | 101 | libarchive/archive_entry_sparse.c \ |
b3cfa26b TK |
102 | libarchive/archive_entry_stat.c \ |
103 | libarchive/archive_entry_strmode.c \ | |
ef595b56 | 104 | libarchive/archive_entry_xattr.c \ |
11e7a909 TK |
105 | libarchive/archive_options.c \ |
106 | libarchive/archive_options_private.h \ | |
b3cfa26b | 107 | libarchive/archive_platform.h \ |
12071c1c | 108 | libarchive/archive_ppmd_private.h \ |
d81916d0 | 109 | libarchive/archive_ppmd7.c \ |
12071c1c | 110 | libarchive/archive_ppmd7_private.h \ |
b3cfa26b | 111 | libarchive/archive_private.h \ |
74689448 JS |
112 | libarchive/archive_rb.c \ |
113 | libarchive/archive_rb.h \ | |
b3cfa26b TK |
114 | libarchive/archive_read.c \ |
115 | libarchive/archive_read_data_into_fd.c \ | |
a8ac0b18 | 116 | libarchive/archive_read_disk_entry_from_file.c \ |
1867a104 | 117 | libarchive/archive_read_disk_posix.c \ |
45d1330f TK |
118 | libarchive/archive_read_disk_private.h \ |
119 | libarchive/archive_read_disk_set_standard_lookup.c \ | |
b3cfa26b TK |
120 | libarchive/archive_read_extract.c \ |
121 | libarchive/archive_read_open_fd.c \ | |
122 | libarchive/archive_read_open_file.c \ | |
123 | libarchive/archive_read_open_filename.c \ | |
124 | libarchive/archive_read_open_memory.c \ | |
125 | libarchive/archive_read_private.h \ | |
11e7a909 | 126 | libarchive/archive_read_set_options.c \ |
77fc5b1e RN |
127 | libarchive/archive_read_support_filter_all.c \ |
128 | libarchive/archive_read_support_filter_bzip2.c \ | |
129 | libarchive/archive_read_support_filter_compress.c \ | |
130 | libarchive/archive_read_support_filter_gzip.c \ | |
131 | libarchive/archive_read_support_filter_none.c \ | |
132 | libarchive/archive_read_support_filter_program.c \ | |
133 | libarchive/archive_read_support_filter_rpm.c \ | |
134 | libarchive/archive_read_support_filter_uu.c \ | |
135 | libarchive/archive_read_support_filter_xz.c \ | |
b3cfa26b TK |
136 | libarchive/archive_read_support_format_all.c \ |
137 | libarchive/archive_read_support_format_ar.c \ | |
12a3fef6 | 138 | libarchive/archive_read_support_format_cab.c \ |
b3cfa26b TK |
139 | libarchive/archive_read_support_format_cpio.c \ |
140 | libarchive/archive_read_support_format_empty.c \ | |
141 | libarchive/archive_read_support_format_iso9660.c \ | |
344711d5 | 142 | libarchive/archive_read_support_format_lha.c \ |
b3cfa26b | 143 | libarchive/archive_read_support_format_mtree.c \ |
099075c1 | 144 | libarchive/archive_read_support_format_rar.c \ |
ccdb0318 | 145 | libarchive/archive_read_support_format_raw.c \ |
b3cfa26b | 146 | libarchive/archive_read_support_format_tar.c \ |
d2c0930d | 147 | libarchive/archive_read_support_format_xar.c \ |
b3cfa26b TK |
148 | libarchive/archive_read_support_format_zip.c \ |
149 | libarchive/archive_string.c \ | |
150 | libarchive/archive_string.h \ | |
8a33ea4f | 151 | libarchive/archive_string_composition.h \ |
b3cfa26b TK |
152 | libarchive/archive_string_sprintf.c \ |
153 | libarchive/archive_util.c \ | |
154 | libarchive/archive_virtual.c \ | |
155 | libarchive/archive_write.c \ | |
5b3644c3 | 156 | libarchive/archive_write_disk_posix.c \ |
b3cfa26b TK |
157 | libarchive/archive_write_disk_private.h \ |
158 | libarchive/archive_write_disk_set_standard_lookup.c \ | |
159 | libarchive/archive_write_open_fd.c \ | |
160 | libarchive/archive_write_open_file.c \ | |
161 | libarchive/archive_write_open_filename.c \ | |
162 | libarchive/archive_write_open_memory.c \ | |
163 | libarchive/archive_write_private.h \ | |
911dc2bf TK |
164 | libarchive/archive_write_add_filter_bzip2.c \ |
165 | libarchive/archive_write_add_filter_compress.c \ | |
166 | libarchive/archive_write_add_filter_gzip.c \ | |
167 | libarchive/archive_write_add_filter_none.c \ | |
168 | libarchive/archive_write_add_filter_program.c \ | |
169 | libarchive/archive_write_add_filter_xz.c \ | |
b3cfa26b TK |
170 | libarchive/archive_write_set_format.c \ |
171 | libarchive/archive_write_set_format_ar.c \ | |
172 | libarchive/archive_write_set_format_by_name.c \ | |
173 | libarchive/archive_write_set_format_cpio.c \ | |
174 | libarchive/archive_write_set_format_cpio_newc.c \ | |
9d72ea76 | 175 | libarchive/archive_write_set_format_iso9660.c \ |
cedb073b | 176 | libarchive/archive_write_set_format_mtree.c \ |
b3cfa26b TK |
177 | libarchive/archive_write_set_format_pax.c \ |
178 | libarchive/archive_write_set_format_shar.c \ | |
179 | libarchive/archive_write_set_format_ustar.c \ | |
7862cf7a | 180 | libarchive/archive_write_set_format_gnutar.c \ |
b7115a7d | 181 | libarchive/archive_write_set_format_xar.c \ |
efd0b578 | 182 | libarchive/archive_write_set_format_zip.c \ |
bcbf7a2a | 183 | libarchive/archive_write_set_options.c \ |
b3cfa26b | 184 | libarchive/config_freebsd.h \ |
b3cfa26b TK |
185 | libarchive/filter_fork.c \ |
186 | libarchive/filter_fork.h | |
187 | ||
79cb8e5b CW |
188 | if INC_WINDOWS_FILES |
189 | libarchive_la_SOURCES+= \ | |
a79bf3f2 | 190 | libarchive/archive_entry_copy_bhfi.c \ |
35d9eb81 | 191 | libarchive/archive_read_disk_windows.c \ |
79cb8e5b CW |
192 | libarchive/archive_windows.h \ |
193 | libarchive/archive_windows.c \ | |
5b3644c3 | 194 | libarchive/archive_write_disk_windows.c \ |
79cb8e5b CW |
195 | libarchive/filter_fork_windows.c |
196 | endif | |
197 | ||
171f7927 | 198 | # -no-undefined marks that libarchive doesn't rely on symbols |
dc423134 | 199 | # defined in the application. This is mandatory for cygwin. |
b3cfa26b TK |
200 | libarchive_la_LDFLAGS= -no-undefined -version-info $(ARCHIVE_LIBTOOL_VERSION) |
201 | ||
202 | # Manpages to install | |
203 | libarchive_man_MANS= \ | |
204 | libarchive/archive_entry.3 \ | |
4f844183 | 205 | libarchive/archive_entry_acl.3 \ |
c13da1af JS |
206 | libarchive/archive_entry_linkify.3 \ |
207 | libarchive/archive_entry_paths.3 \ | |
208 | libarchive/archive_entry_perms.3 \ | |
209 | libarchive/archive_entry_stat.3 \ | |
4f844183 | 210 | libarchive/archive_entry_time.3 \ |
b3cfa26b | 211 | libarchive/archive_read.3 \ |
7daad42f | 212 | libarchive/archive_read_disk.3 \ |
11e7a909 | 213 | libarchive/archive_read_set_options.3 \ |
b3cfa26b TK |
214 | libarchive/archive_util.3 \ |
215 | libarchive/archive_write.3 \ | |
216 | libarchive/archive_write_disk.3 \ | |
061edc88 | 217 | libarchive/archive_write_set_options.3 \ |
b3cfa26b TK |
218 | libarchive/cpio.5 \ |
219 | libarchive/libarchive.3 \ | |
220 | libarchive/libarchive_internals.3 \ | |
221 | libarchive/libarchive-formats.5 \ | |
222 | libarchive/mtree.5 \ | |
223 | libarchive/tar.5 | |
224 | ||
225 | # Additional libarchive files to include in the distribution | |
56c61904 TK |
226 | libarchive_EXTRA_DIST= \ |
227 | libarchive/test/list.h \ | |
228 | libarchive/archive_windows.c \ | |
229 | libarchive/archive_windows.h \ | |
79cb8e5b CW |
230 | libarchive/filter_fork_windows.c \ |
231 | libarchive/CMakeLists.txt \ | |
b3cfa26b TK |
232 | $(libarchive_man_MANS) |
233 | ||
bafc3c6b TK |
234 | # pkgconfig |
235 | pkgconfigdir = $(libdir)/pkgconfig | |
236 | pkgconfig_DATA = build/pkgconfig/libarchive.pc | |
237 | ||
b3cfa26b TK |
238 | # |
239 | # | |
240 | # libarchive_test program | |
241 | # | |
242 | # | |
243 | libarchive_test_SOURCES= \ | |
244 | $(libarchive_la_SOURCES) \ | |
245 | libarchive/test/main.c \ | |
246 | libarchive/test/read_open_memory.c \ | |
247 | libarchive/test/test.h \ | |
3c700f83 | 248 | libarchive/test/test_acl_freebsd.c \ |
73d99a29 | 249 | libarchive/test/test_acl_nfs4.c \ |
b3cfa26b | 250 | libarchive/test/test_acl_pax.c \ |
73d99a29 | 251 | libarchive/test/test_acl_posix1e.c \ |
b3cfa26b | 252 | libarchive/test/test_archive_api_feature.c \ |
a6ea9526 | 253 | libarchive/test/test_archive_clear_error.c \ |
2d53ab9e | 254 | libarchive/test/test_archive_crypto.c \ |
34fe1abb TK |
255 | libarchive/test/test_archive_read_close_twice.c \ |
256 | libarchive/test/test_archive_read_close_twice_open_fd.c \ | |
257 | libarchive/test/test_archive_read_close_twice_open_filename.c \ | |
67f5c3d5 | 258 | libarchive/test/test_archive_read_next_header_empty.c \ |
65aa7ba0 | 259 | libarchive/test/test_archive_read_next_header_raw.c \ |
f3e892f1 | 260 | libarchive/test/test_archive_read_open2.c \ |
11e7a909 TK |
261 | libarchive/test/test_archive_read_set_filter_option.c \ |
262 | libarchive/test/test_archive_read_set_format_option.c \ | |
263 | libarchive/test/test_archive_read_set_option.c \ | |
264 | libarchive/test/test_archive_read_set_options.c \ | |
15b42b94 | 265 | libarchive/test/test_archive_read_support.c \ |
65aa7ba0 | 266 | libarchive/test/test_archive_set_error.c \ |
bb9dc5c3 | 267 | libarchive/test/test_archive_string.c \ |
8a33ea4f | 268 | libarchive/test/test_archive_string_conversion.c \ |
11e7a909 TK |
269 | libarchive/test/test_archive_write_set_filter_option.c \ |
270 | libarchive/test/test_archive_write_set_format_option.c \ | |
271 | libarchive/test/test_archive_write_set_option.c \ | |
272 | libarchive/test/test_archive_write_set_options.c \ | |
b3cfa26b | 273 | libarchive/test/test_bad_fd.c \ |
56f6b5fa | 274 | libarchive/test/test_compat_bzip2.c \ |
07df1de4 | 275 | libarchive/test/test_compat_cpio.c \ |
b3cfa26b | 276 | libarchive/test/test_compat_gtar.c \ |
2d96c65b | 277 | libarchive/test/test_compat_gzip.c \ |
74f5c570 | 278 | libarchive/test/test_compat_lzip.c \ |
24dbaced | 279 | libarchive/test/test_compat_lzma.c \ |
be59321d | 280 | libarchive/test/test_compat_mac.c \ |
446b093f | 281 | libarchive/test/test_compat_pax_libarchive_2x.c \ |
495a1970 | 282 | libarchive/test/test_compat_solaris_tar_acl.c \ |
742118f7 | 283 | libarchive/test/test_compat_solaris_pax_sparse.c \ |
b3cfa26b | 284 | libarchive/test/test_compat_tar_hardlink.c \ |
a330a345 | 285 | libarchive/test/test_compat_xz.c \ |
b3cfa26b TK |
286 | libarchive/test/test_compat_zip.c \ |
287 | libarchive/test/test_empty_write.c \ | |
288 | libarchive/test/test_entry.c \ | |
65aa7ba0 | 289 | libarchive/test/test_entry_strmode.c \ |
731a553d | 290 | libarchive/test/test_extattr_freebsd.c \ |
65aa7ba0 | 291 | libarchive/test/test_filter_count.c \ |
56f6b5fa | 292 | libarchive/test/test_fuzz.c \ |
492ccc59 | 293 | libarchive/test/test_gnutar_filename_encoding.c \ |
b3cfa26b | 294 | libarchive/test/test_link_resolver.c \ |
b6bbeb20 | 295 | libarchive/test/test_open_failure.c \ |
854445c4 TK |
296 | libarchive/test/test_open_fd.c \ |
297 | libarchive/test/test_open_file.c \ | |
298 | libarchive/test/test_open_filename.c \ | |
b3cfa26b TK |
299 | libarchive/test/test_pax_filename_encoding.c \ |
300 | libarchive/test/test_read_compress_program.c \ | |
301 | libarchive/test/test_read_data_large.c \ | |
45d1330f | 302 | libarchive/test/test_read_disk.c \ |
3311bb52 | 303 | libarchive/test/test_read_disk_directory_traversals.c \ |
7aede267 | 304 | libarchive/test/test_read_disk_entry_from_file.c \ |
b3cfa26b | 305 | libarchive/test/test_read_extract.c \ |
f2711404 | 306 | libarchive/test/test_read_file_nonexistent.c \ |
b3cfa26b | 307 | libarchive/test/test_read_format_ar.c \ |
12a3fef6 | 308 | libarchive/test/test_read_format_cab.c \ |
bc56f3b0 | 309 | libarchive/test/test_read_format_cab_filename.c \ |
19cc1b68 | 310 | libarchive/test/test_read_format_cpio_afio.c \ |
b3cfa26b TK |
311 | libarchive/test/test_read_format_cpio_bin.c \ |
312 | libarchive/test/test_read_format_cpio_bin_Z.c \ | |
3242831d | 313 | libarchive/test/test_read_format_cpio_bin_be.c \ |
b3cfa26b TK |
314 | libarchive/test/test_read_format_cpio_bin_bz2.c \ |
315 | libarchive/test/test_read_format_cpio_bin_gz.c \ | |
d8961d39 | 316 | libarchive/test/test_read_format_cpio_bin_lzip.c \ |
bf8b28f1 | 317 | libarchive/test/test_read_format_cpio_bin_lzma.c \ |
31854da9 | 318 | libarchive/test/test_read_format_cpio_bin_xz.c \ |
9b1e0954 | 319 | libarchive/test/test_read_format_cpio_filename.c \ |
b3cfa26b | 320 | libarchive/test/test_read_format_cpio_odc.c \ |
f7ec974a | 321 | libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.c \ |
b3cfa26b | 322 | libarchive/test/test_read_format_cpio_svr4_gzip.c \ |
f7ec974a | 323 | libarchive/test/test_read_format_cpio_svr4_gzip_rpm.c \ |
b3cfa26b TK |
324 | libarchive/test/test_read_format_cpio_svr4c_Z.c \ |
325 | libarchive/test/test_read_format_empty.c \ | |
7f590844 | 326 | libarchive/test/test_read_format_gtar_filename.c \ |
b3cfa26b | 327 | libarchive/test/test_read_format_gtar_gz.c \ |
2b15ccf4 | 328 | libarchive/test/test_read_format_gtar_lzma.c \ |
b3cfa26b | 329 | libarchive/test/test_read_format_gtar_sparse.c \ |
bb4d9826 | 330 | libarchive/test/test_read_format_iso_Z.c \ |
73cf372f | 331 | libarchive/test/test_read_format_iso_multi_extent.c \ |
d6799988 | 332 | libarchive/test/test_read_format_iso_xorriso.c \ |
e2f46586 | 333 | libarchive/test/test_read_format_isojoliet_bz2.c \ |
529d5db9 | 334 | libarchive/test/test_read_format_isojoliet_long.c \ |
c1597512 | 335 | libarchive/test/test_read_format_isojoliet_rr.c \ |
169a5d3b | 336 | libarchive/test/test_read_format_isojoliet_versioned.c \ |
b3cfa26b | 337 | libarchive/test/test_read_format_isorr_bz2.c \ |
5a98dcf8 | 338 | libarchive/test/test_read_format_isorr_ce.c \ |
2d332008 | 339 | libarchive/test/test_read_format_isorr_new_bz2.c \ |
0bd9deb4 | 340 | libarchive/test/test_read_format_isorr_rr_moved.c \ |
140e3eb9 | 341 | libarchive/test/test_read_format_isozisofs_bz2.c \ |
344711d5 | 342 | libarchive/test/test_read_format_lha.c \ |
79a8745d | 343 | libarchive/test/test_read_format_lha_filename.c \ |
b3cfa26b TK |
344 | libarchive/test/test_read_format_mtree.c \ |
345 | libarchive/test/test_read_format_pax_bz2.c \ | |
099075c1 | 346 | libarchive/test/test_read_format_rar.c \ |
d5b624a2 | 347 | libarchive/test/test_read_format_raw.c \ |
b3cfa26b TK |
348 | libarchive/test/test_read_format_tar.c \ |
349 | libarchive/test/test_read_format_tar_empty_filename.c \ | |
eb9f900d | 350 | libarchive/test/test_read_format_tar_filename.c \ |
b3cfa26b TK |
351 | libarchive/test/test_read_format_tbz.c \ |
352 | libarchive/test/test_read_format_tgz.c \ | |
bf8b28f1 | 353 | libarchive/test/test_read_format_tlz.c \ |
fdddf983 | 354 | libarchive/test/test_read_format_txz.c \ |
b3cfa26b | 355 | libarchive/test/test_read_format_tz.c \ |
bc3636cd | 356 | libarchive/test/test_read_format_ustar_filename.c \ |
d2c0930d | 357 | libarchive/test/test_read_format_xar.c \ |
b3cfa26b | 358 | libarchive/test/test_read_format_zip.c \ |
c6b4037d | 359 | libarchive/test/test_read_format_zip_filename.c \ |
b3cfa26b TK |
360 | libarchive/test/test_read_large.c \ |
361 | libarchive/test/test_read_pax_truncated.c \ | |
362 | libarchive/test/test_read_position.c \ | |
363 | libarchive/test/test_read_truncated.c \ | |
d08b8d7e | 364 | libarchive/test/test_read_truncated_filter.c \ |
ecf376dd | 365 | libarchive/test/test_read_uu.c \ |
d216d028 | 366 | libarchive/test/test_sparse_basic.c \ |
b3cfa26b TK |
367 | libarchive/test/test_tar_filenames.c \ |
368 | libarchive/test/test_tar_large.c \ | |
369 | libarchive/test/test_ustar_filenames.c \ | |
7de65921 | 370 | libarchive/test/test_ustar_filename_encoding.c \ |
b3cfa26b | 371 | libarchive/test/test_write_compress.c \ |
818104e1 | 372 | libarchive/test/test_write_compress_bzip2.c \ |
14231abf | 373 | libarchive/test/test_write_compress_gzip.c \ |
4295807f | 374 | libarchive/test/test_write_compress_lzip.c \ |
8d58852b | 375 | libarchive/test/test_write_compress_lzma.c \ |
b3cfa26b | 376 | libarchive/test/test_write_compress_program.c \ |
8d58852b | 377 | libarchive/test/test_write_compress_xz.c \ |
b3cfa26b | 378 | libarchive/test/test_write_disk.c \ |
1a861bca | 379 | libarchive/test/test_write_disk_failures.c \ |
b3cfa26b TK |
380 | libarchive/test/test_write_disk_hardlink.c \ |
381 | libarchive/test/test_write_disk_perms.c \ | |
382 | libarchive/test/test_write_disk_secure.c \ | |
8ffc8720 | 383 | libarchive/test/test_write_disk_sparse.c \ |
19a4ab36 | 384 | libarchive/test/test_write_disk_symlink.c \ |
3c700f83 | 385 | libarchive/test/test_write_disk_times.c \ |
b3cfa26b TK |
386 | libarchive/test/test_write_format_ar.c \ |
387 | libarchive/test/test_write_format_cpio.c \ | |
388 | libarchive/test/test_write_format_cpio_empty.c \ | |
b3cfa26b | 389 | libarchive/test/test_write_format_cpio_newc.c \ |
65aa7ba0 | 390 | libarchive/test/test_write_format_cpio_odc.c \ |
7862cf7a | 391 | libarchive/test/test_write_format_gnutar.c \ |
9d72ea76 MN |
392 | libarchive/test/test_write_format_iso9660.c \ |
393 | libarchive/test/test_write_format_iso9660_boot.c \ | |
394 | libarchive/test/test_write_format_iso9660_empty.c \ | |
395 | libarchive/test/test_write_format_iso9660_filename.c \ | |
396 | libarchive/test/test_write_format_iso9660_zisofs.c \ | |
59b1e9b9 | 397 | libarchive/test/test_write_format_mtree.c \ |
65338f74 | 398 | libarchive/test/test_write_format_mtree_fflags.c \ |
f17b5830 | 399 | libarchive/test/test_write_format_pax.c \ |
b3cfa26b TK |
400 | libarchive/test/test_write_format_shar_empty.c \ |
401 | libarchive/test/test_write_format_tar.c \ | |
402 | libarchive/test/test_write_format_tar_empty.c \ | |
403 | libarchive/test/test_write_format_tar_ustar.c \ | |
b7115a7d MN |
404 | libarchive/test/test_write_format_xar.c \ |
405 | libarchive/test/test_write_format_xar_empty.c \ | |
efd0b578 TK |
406 | libarchive/test/test_write_format_zip.c \ |
407 | libarchive/test/test_write_format_zip_empty.c \ | |
408 | libarchive/test/test_write_format_zip_no_compression.c \ | |
83c67d6c MN |
409 | libarchive/test/test_write_open_memory.c \ |
410 | libarchive/test/test_zip_filename_encoding.c | |
b3cfa26b | 411 | |
c31d1bc4 | 412 | libarchive_test_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_builddir)/libarchive/test -DLIBARCHIVE_STATIC $(PLATFORMCPPFLAGS) |
79cb8e5b | 413 | |
b3cfa26b TK |
414 | # The "list.h" file just lists all of the tests defined in all of the sources. |
415 | # Building it automatically provides a sanity-check on libarchive_test_SOURCES | |
416 | # above. | |
417 | libarchive/test/list.h: Makefile | |
418 | cat $(top_srcdir)/libarchive/test/test_*.c | grep DEFINE_TEST > libarchive/test/list.h | |
419 | ||
420 | libarchive_TESTS_ENVIRONMENT= LIBARCHIVE_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/libarchive/test | |
421 | ||
422 | libarchive_test_EXTRA_DIST=\ | |
e5c2486c | 423 | libarchive/test/test_acl_pax.tar.uu \ |
cf8a42fc | 424 | libarchive/test/test_archive_string_conversion.txt.Z.uu \ |
56f6b5fa TK |
425 | libarchive/test/test_compat_bzip2_1.tbz.uu \ |
426 | libarchive/test/test_compat_bzip2_2.tbz.uu \ | |
07df1de4 | 427 | libarchive/test/test_compat_cpio_1.cpio.uu \ |
cf6ad4ba | 428 | libarchive/test/test_compat_gtar_1.tar.uu \ |
2d96c65b TK |
429 | libarchive/test/test_compat_gzip_1.tgz.uu \ |
430 | libarchive/test/test_compat_gzip_2.tgz.uu \ | |
bab0f252 | 431 | libarchive/test/test_compat_lzip_1.tlz.uu \ |
7c7aef9e | 432 | libarchive/test/test_compat_lzip_2.tlz.uu \ |
24dbaced MN |
433 | libarchive/test/test_compat_lzma_1.tlz.uu \ |
434 | libarchive/test/test_compat_lzma_2.tlz.uu \ | |
435 | libarchive/test/test_compat_lzma_3.tlz.uu \ | |
7c7aef9e AM |
436 | libarchive/test/test_compat_mac-1.tar.Z.uu \ |
437 | libarchive/test/test_compat_mac-2.tar.Z.uu \ | |
446b093f | 438 | libarchive/test/test_compat_pax_libarchive_2x.tar.Z.uu \ |
495a1970 | 439 | libarchive/test/test_compat_solaris_tar_acl.tar.uu \ |
742118f7 MN |
440 | libarchive/test/test_compat_solaris_pax_sparse_1.pax.Z.uu \ |
441 | libarchive/test/test_compat_solaris_pax_sparse_2.pax.Z.uu \ | |
b3cfa26b | 442 | libarchive/test/test_compat_tar_hardlink_1.tar.uu \ |
a330a345 | 443 | libarchive/test/test_compat_xz_1.txz.uu \ |
b3cfa26b | 444 | libarchive/test/test_compat_zip_1.zip.uu \ |
3b431a53 | 445 | libarchive/test/test_compat_zip_2.zip.uu \ |
67421348 | 446 | libarchive/test/test_compat_zip_3.zip.uu \ |
bafc3c6b | 447 | libarchive/test/test_fuzz_1.iso.Z.uu \ |
3e7782c0 | 448 | libarchive/test/test_fuzz.cab.uu \ |
e3b29df3 | 449 | libarchive/test/test_fuzz.lzh.uu \ |
cf6ad4ba | 450 | libarchive/test/test_pax_filename_encoding.tar.uu \ |
bafc3c6b | 451 | libarchive/test/test_read_format_ar.ar.uu \ |
12a3fef6 MN |
452 | libarchive/test/test_read_format_cab_1.cab.uu \ |
453 | libarchive/test/test_read_format_cab_2.cab.uu \ | |
3e7782c0 | 454 | libarchive/test/test_read_format_cab_3.cab.uu \ |
ac07959b | 455 | libarchive/test/test_read_format_cab_filename_cp932.cab.uu \ |
495a1970 | 456 | libarchive/test/test_read_format_cpio_bin_be.cpio.uu \ |
ac07959b MN |
457 | libarchive/test/test_read_format_cpio_filename_cp866.cpio.uu \ |
458 | libarchive/test/test_read_format_cpio_filename_eucjp.cpio.uu \ | |
459 | libarchive/test/test_read_format_cpio_filename_koi8r.cpio.uu \ | |
460 | libarchive/test/test_read_format_cpio_filename_utf8_jp.cpio.uu \ | |
461 | libarchive/test/test_read_format_cpio_filename_utf8_ru.cpio.uu \ | |
f7ec974a MN |
462 | libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.rpm.uu \ |
463 | libarchive/test/test_read_format_cpio_svr4_gzip_rpm.rpm.uu \ | |
ac07959b MN |
464 | libarchive/test/test_read_format_gtar_filename_cp866.tar.Z.uu \ |
465 | libarchive/test/test_read_format_gtar_filename_eucjp.tar.Z.uu \ | |
466 | libarchive/test/test_read_format_gtar_filename_koi8r.tar.Z.uu \ | |
cf6ad4ba TK |
467 | libarchive/test/test_read_format_gtar_sparse_1_13.tar.uu \ |
468 | libarchive/test/test_read_format_gtar_sparse_1_17.tar.uu \ | |
469 | libarchive/test/test_read_format_gtar_sparse_1_17_posix00.tar.uu \ | |
470 | libarchive/test/test_read_format_gtar_sparse_1_17_posix01.tar.uu \ | |
471 | libarchive/test/test_read_format_gtar_sparse_1_17_posix10.tar.uu \ | |
b3cfa26b | 472 | libarchive/test/test_read_format_gtar_sparse_1_17_posix10_modified.tar.uu \ |
40200e95 | 473 | libarchive/test/test_read_format_iso.iso.Z.uu \ |
bb4d9826 | 474 | libarchive/test/test_read_format_iso_2.iso.Z.uu \ |
40200e95 | 475 | libarchive/test/test_read_format_iso_joliet.iso.Z.uu \ |
3b431a53 | 476 | libarchive/test/test_read_format_iso_joliet_by_nero.iso.Z.uu \ |
40200e95 MN |
477 | libarchive/test/test_read_format_iso_joliet_long.iso.Z.uu \ |
478 | libarchive/test/test_read_format_iso_joliet_rockridge.iso.Z.uu \ | |
479 | libarchive/test/test_read_format_iso_multi_extent.iso.Z.uu \ | |
480 | libarchive/test/test_read_format_iso_rockridge.iso.Z.uu \ | |
481 | libarchive/test/test_read_format_iso_rockridge_ce.iso.Z.uu \ | |
482 | libarchive/test/test_read_format_iso_rockridge_new.iso.Z.uu \ | |
483 | libarchive/test/test_read_format_iso_rockridge_rr_moved.iso.Z.uu\ | |
d6799988 | 484 | libarchive/test/test_read_format_iso_xorriso.iso.Z.uu \ |
40200e95 | 485 | libarchive/test/test_read_format_iso_zisofs.iso.Z.uu \ |
ac07959b | 486 | libarchive/test/test_read_format_lha_filename_cp932.lzh.uu \ |
344711d5 MN |
487 | libarchive/test/test_read_format_lha_header0.lzh.uu \ |
488 | libarchive/test/test_read_format_lha_header1.lzh.uu \ | |
489 | libarchive/test/test_read_format_lha_header2.lzh.uu \ | |
b4ca4f0a | 490 | libarchive/test/test_read_format_lha_header3.lzh.uu \ |
344711d5 MN |
491 | libarchive/test/test_read_format_lha_lh0.lzh.uu \ |
492 | libarchive/test/test_read_format_lha_lh6.lzh.uu \ | |
493 | libarchive/test/test_read_format_lha_lh7.lzh.uu \ | |
494 | libarchive/test/test_read_format_lha_withjunk.lzh.uu \ | |
bafc3c6b | 495 | libarchive/test/test_read_format_mtree.mtree.uu \ |
cbc36660 | 496 | libarchive/test/test_read_format_mtree_nomagic.mtree.uu \ |
099075c1 | 497 | libarchive/test/test_read_format_rar.rar.uu \ |
a37d9437 | 498 | libarchive/test/test_read_format_rar_binary_data.rar.uu \ |
d81916d0 | 499 | libarchive/test/test_read_format_rar_compress_best.rar.uu \ |
20732adb TK |
500 | libarchive/test/test_read_format_rar_compress_normal.rar.uu \ |
501 | libarchive/test/test_read_format_rar_multi_lzss_blocks.rar.uu \ | |
099075c1 | 502 | libarchive/test/test_read_format_rar_noeof.rar.uu \ |
d483c48a | 503 | libarchive/test/test_read_format_rar_ppmd_lzss_conversion.rar.uu\ |
c74abef7 | 504 | libarchive/test/test_read_format_rar_sfx.exe.uu \ |
099075c1 | 505 | libarchive/test/test_read_format_rar_subblock.rar.uu \ |
a3e65862 | 506 | libarchive/test/test_read_format_rar_unicode.rar.uu \ |
e6269dfb | 507 | libarchive/test/test_read_format_rar_windows.rar.uu \ |
495a1970 TK |
508 | libarchive/test/test_read_format_raw.data.Z.uu \ |
509 | libarchive/test/test_read_format_raw.data.uu \ | |
23b1e678 | 510 | libarchive/test/test_read_format_tar_empty_filename.tar.uu \ |
eb9f900d | 511 | libarchive/test/test_read_format_tar_filename_koi8r.tar.Z.uu \ |
bc3636cd MN |
512 | libarchive/test/test_read_format_ustar_filename_cp866.tar.Z.uu \ |
513 | libarchive/test/test_read_format_ustar_filename_eucjp.tar.Z.uu \ | |
514 | libarchive/test/test_read_format_ustar_filename_koi8r.tar.Z.uu \ | |
79cb8e5b | 515 | libarchive/test/test_read_format_zip.zip.uu \ |
ac07959b MN |
516 | libarchive/test/test_read_format_zip_filename_cp866.zip.uu \ |
517 | libarchive/test/test_read_format_zip_filename_cp932.zip.uu \ | |
518 | libarchive/test/test_read_format_zip_filename_koi8r.zip.uu \ | |
519 | libarchive/test/test_read_format_zip_filename_utf8_jp.zip.uu \ | |
520 | libarchive/test/test_read_format_zip_filename_utf8_ru2.zip.uu \ | |
521 | libarchive/test/test_read_format_zip_filename_utf8_ru.zip.uu \ | |
67421348 | 522 | libarchive/test/test_read_format_zip_length_at_end.zip.uu \ |
7c7aef9e | 523 | libarchive/test/test_read_format_zip_ux.zip.uu \ |
79cb8e5b CW |
524 | libarchive/test/CMakeLists.txt \ |
525 | libarchive/test/README | |
b3cfa26b | 526 | |
71d1bfe0 JS |
527 | # |
528 | # Common code for libarchive frontends (cpio, tar) | |
529 | # | |
530 | libarchive_fe_la_SOURCES= \ | |
531 | libarchive_fe/err.c \ | |
775ce132 TK |
532 | libarchive_fe/err.h \ |
533 | libarchive_fe/lafe_platform.h \ | |
71d1bfe0 | 534 | libarchive_fe/line_reader.c \ |
775ce132 | 535 | libarchive_fe/line_reader.h \ |
71d1bfe0 | 536 | libarchive_fe/matching.c \ |
775ce132 TK |
537 | libarchive_fe/matching.h \ |
538 | libarchive_fe/pathmatch.c \ | |
539 | libarchive_fe/pathmatch.h | |
b3cfa26b TK |
540 | |
541 | # | |
542 | # | |
543 | # bsdtar source, docs, etc. | |
544 | # | |
545 | # | |
546 | ||
547 | bsdtar_SOURCES= \ | |
548 | tar/bsdtar.c \ | |
549 | tar/bsdtar.h \ | |
550 | tar/bsdtar_platform.h \ | |
27a6ba7d | 551 | tar/cmdline.c \ |
438c6911 | 552 | tar/getdate.c \ |
b3cfa26b | 553 | tar/read.c \ |
326a25bc | 554 | tar/subst.c \ |
b3cfa26b TK |
555 | tar/tree.c \ |
556 | tar/tree.h \ | |
557 | tar/util.c \ | |
558 | tar/write.c | |
559 | ||
79cb8e5b CW |
560 | if INC_WINDOWS_FILES |
561 | bsdtar_SOURCES+= \ | |
562 | tar/bsdtar_windows.h \ | |
926d6bcb | 563 | tar/bsdtar_windows.c |
79cb8e5b | 564 | endif |
79cb8e5b | 565 | |
71d1bfe0 | 566 | bsdtar_DEPENDENCIES= libarchive.la libarchive_fe.la |
b3cfa26b TK |
567 | |
568 | if STATIC_BSDTAR | |
66c6a7b4 CW |
569 | bsdtar_ldstatic= -static |
570 | bsdtar_ccstatic= -DLIBARCHIVE_STATIC | |
b3cfa26b | 571 | else |
66c6a7b4 CW |
572 | bsdtar_ldstatic= |
573 | bsdtar_ccstatic= | |
b3cfa26b TK |
574 | endif |
575 | ||
cee6343a | 576 | bsdtar_LDADD= libarchive.la libarchive_fe.la |
c31d1bc4 | 577 | bsdtar_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdtar_ccstatic) $(PLATFORMCPPFLAGS) |
66c6a7b4 | 578 | bsdtar_LDFLAGS= $(bsdtar_ldstatic) |
71d1bfe0 | 579 | |
b3cfa26b | 580 | bsdtar_EXTRA_DIST= \ |
79cb8e5b CW |
581 | tar/bsdtar.1 \ |
582 | tar/bsdtar_windows.h \ | |
583 | tar/bsdtar_windows.c \ | |
79cb8e5b CW |
584 | tar/CMakeLists.txt \ |
585 | tar/config_freebsd.h \ | |
842877bf | 586 | tar/test/list.h |
79cb8e5b | 587 | |
b3cfa26b TK |
588 | |
589 | if BUILD_BSDTAR | |
590 | bsdtar_man_MANS= tar/bsdtar.1 | |
591 | bsdtar_programs= bsdtar | |
592 | else | |
593 | bsdtar_man_MANS= | |
594 | bsdtar_programs= | |
595 | endif | |
596 | ||
597 | # | |
598 | # bsdtar_test | |
599 | # | |
600 | ||
601 | bsdtar_test_SOURCES= \ | |
602 | tar/getdate.c \ | |
603 | tar/test/main.c \ | |
604 | tar/test/test.h \ | |
605 | tar/test/test_0.c \ | |
606 | tar/test/test_basic.c \ | |
607 | tar/test/test_copy.c \ | |
015818df | 608 | tar/test/test_empty_mtree.c \ |
b3cfa26b TK |
609 | tar/test/test_getdate.c \ |
610 | tar/test/test_help.c \ | |
75725a83 | 611 | tar/test/test_option_C_upper.c \ |
6412fa4b TK |
612 | tar/test/test_option_H_upper.c \ |
613 | tar/test/test_option_L_upper.c \ | |
c6ae6223 | 614 | tar/test/test_option_O_upper.c \ |
3574b4b5 | 615 | tar/test/test_option_T_upper.c \ |
7b17a397 | 616 | tar/test/test_option_U_upper.c \ |
75e963d8 | 617 | tar/test/test_option_X_upper.c \ |
9d6e9453 | 618 | tar/test/test_option_b.c \ |
8dc62ccc | 619 | tar/test/test_option_exclude.c \ |
348640be | 620 | tar/test/test_option_gid_gname.c \ |
4ec97d24 | 621 | tar/test/test_option_k.c \ |
5f761f2e | 622 | tar/test/test_option_keep_newer_files.c \ |
28a6a638 | 623 | tar/test/test_option_n.c \ |
d8d91490 | 624 | tar/test/test_option_newer_than.c \ |
3dc134b1 | 625 | tar/test/test_option_q.c \ |
e7fd1162 | 626 | tar/test/test_option_r.c \ |
3dc134b1 | 627 | tar/test/test_option_s.c \ |
348640be | 628 | tar/test/test_option_uid_uname.c \ |
c950be81 | 629 | tar/test/test_patterns.c \ |
b3cfa26b | 630 | tar/test/test_stdio.c \ |
56f6b5fa | 631 | tar/test/test_strip_components.c \ |
f17b5830 | 632 | tar/test/test_symlink_dir.c \ |
f470386a MN |
633 | tar/test/test_version.c \ |
634 | tar/test/test_windows.c | |
b3cfa26b | 635 | |
076c3345 TK |
636 | # For now, bsdtar_test uses Windows shims from tar/bsdtar_windows.* |
637 | if INC_WINDOWS_FILES | |
638 | bsdtar_test_SOURCES+= \ | |
639 | tar/bsdtar_windows.h \ | |
640 | tar/bsdtar_windows.c | |
641 | endif | |
79cb8e5b | 642 | |
c31d1bc4 CW |
643 | bsdtar_test_CPPFLAGS=\ |
644 | -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \ | |
645 | -I$(top_srcdir)/tar -I$(top_builddir)/tar/test \ | |
646 | $(PLATFORMCPPFLAGS) | |
b3cfa26b TK |
647 | |
648 | tar/test/list.h: Makefile | |
649 | cat $(top_srcdir)/tar/test/test_*.c | grep DEFINE_TEST > tar/test/list.h | |
650 | ||
651 | if BUILD_BSDTAR | |
652 | bsdtar_test_programs= bsdtar_test | |
125047fc | 653 | bsdtar_TESTS_ENVIRONMENT= BSDTAR=`cd $(top_builddir);/bin/pwd`/bsdtar$(EXEEXT) BSDTAR_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/tar/test |
b3cfa26b TK |
654 | else |
655 | bsdtar_test_programs= | |
656 | bsdtar_TESTS_ENVIRONMENT= | |
657 | endif | |
658 | ||
d75f8db1 | 659 | bsdtar_test_EXTRA_DIST= \ |
113601be | 660 | tar/test/test_option_keep_newer_files.tar.Z.uu \ |
627b8088 | 661 | tar/test/test_patterns_2.tar.uu \ |
58fcd7cb | 662 | tar/test/test_patterns_3.tar.uu \ |
79cb8e5b CW |
663 | tar/test/test_patterns_4.tar.uu \ |
664 | tar/test/CMakeLists.txt | |
d75f8db1 | 665 | |
b3cfa26b TK |
666 | |
667 | # | |
668 | # | |
669 | # bsdcpio source, docs, etc. | |
670 | # | |
671 | # | |
672 | ||
673 | bsdcpio_SOURCES= \ | |
674 | cpio/cmdline.c \ | |
675 | cpio/cpio.c \ | |
676 | cpio/cpio.h \ | |
71d1bfe0 | 677 | cpio/cpio_platform.h |
b3cfa26b | 678 | |
79cb8e5b CW |
679 | if INC_WINDOWS_FILES |
680 | bsdcpio_SOURCES+= \ | |
681 | cpio/cpio_windows.h \ | |
926d6bcb | 682 | cpio/cpio_windows.c |
79cb8e5b | 683 | endif |
79cb8e5b | 684 | |
71d1bfe0 | 685 | bsdcpio_DEPENDENCIES = libarchive.la libarchive_fe.la |
b3cfa26b TK |
686 | |
687 | ||
688 | if STATIC_BSDCPIO | |
66c6a7b4 CW |
689 | bsdcpio_ldstatic= -static |
690 | bsdcpio_ccstatic= -DLIBARCHIVE_STATIC | |
b3cfa26b | 691 | else |
66c6a7b4 CW |
692 | bsdcpio_ldstatic= |
693 | bsdcpio_ccstatic= | |
b3cfa26b TK |
694 | endif |
695 | ||
cee6343a | 696 | bsdcpio_LDADD= libarchive_fe.la libarchive.la |
c31d1bc4 | 697 | bsdcpio_CPPFLAGS= -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe $(bsdcpio_ccstatic) $(PLATFORMCPPFLAGS) |
66c6a7b4 CW |
698 | bsdcpio_LDFLAGS= $(bsdcpio_ldstatic) |
699 | ||
b3cfa26b TK |
700 | bsdcpio_EXTRA_DIST= \ |
701 | cpio/test/list.h \ | |
79cb8e5b | 702 | cpio/bsdcpio.1 \ |
79cb8e5b CW |
703 | cpio/cpio_windows.h \ |
704 | cpio/cpio_windows.c \ | |
705 | cpio/CMakeLists.txt \ | |
706 | cpio/config_freebsd.h | |
707 | ||
b3cfa26b TK |
708 | |
709 | if BUILD_BSDCPIO | |
710 | # Manpages to install | |
711 | bsdcpio_man_MANS= cpio/bsdcpio.1 | |
712 | bsdcpio_programs= bsdcpio | |
713 | else | |
714 | bsdcpio_man_MANS= | |
715 | bsdcpio_programs= | |
716 | endif | |
717 | ||
718 | # | |
719 | # bsdcpio_test | |
720 | # | |
721 | ||
722 | bsdcpio_test_SOURCES= \ | |
723 | cpio/cmdline.c \ | |
b3cfa26b TK |
724 | cpio/test/main.c \ |
725 | cpio/test/test.h \ | |
726 | cpio/test/test_0.c \ | |
727 | cpio/test/test_basic.c \ | |
37081d26 | 728 | cpio/test/test_cmdline.c \ |
b3cfa26b TK |
729 | cpio/test/test_format_newc.c \ |
730 | cpio/test/test_gcpio_compat.c \ | |
21147fb1 | 731 | cpio/test/test_option_0.c \ |
d555381e | 732 | cpio/test/test_option_B_upper.c \ |
37081d26 | 733 | cpio/test/test_option_C_upper.c \ |
d100741a | 734 | cpio/test/test_option_J_upper.c \ |
d555381e | 735 | cpio/test/test_option_L_upper.c \ |
b72f49bf | 736 | cpio/test/test_option_Z_upper.c \ |
691997fd | 737 | cpio/test/test_option_a.c \ |
b3cfa26b TK |
738 | cpio/test/test_option_c.c \ |
739 | cpio/test/test_option_d.c \ | |
740 | cpio/test/test_option_f.c \ | |
741 | cpio/test/test_option_help.c \ | |
d555381e | 742 | cpio/test/test_option_l.c \ |
d100741a | 743 | cpio/test/test_option_lzma.c \ |
b3cfa26b TK |
744 | cpio/test/test_option_m.c \ |
745 | cpio/test/test_option_t.c \ | |
746 | cpio/test/test_option_u.c \ | |
747 | cpio/test/test_option_version.c \ | |
748 | cpio/test/test_option_y.c \ | |
749 | cpio/test/test_option_z.c \ | |
750 | cpio/test/test_owner_parse.c \ | |
a4095cee TK |
751 | cpio/test/test_passthrough_dotdot.c \ |
752 | cpio/test/test_passthrough_reverse.c \ | |
b3cfa26b TK |
753 | cpio/test/test_pathmatch.c |
754 | ||
71d1bfe0 JS |
755 | bsdcpio_test_CPPFLAGS= \ |
756 | -I$(top_srcdir)/libarchive -I$(top_srcdir)/libarchive_fe \ | |
c31d1bc4 CW |
757 | -I$(top_srcdir)/cpio -I$(top_builddir)/cpio/test \ |
758 | $(PLATFORMCPPFLAGS) | |
cee6343a | 759 | bsdcpio_test_LDADD=libarchive_fe.la |
b3cfa26b TK |
760 | |
761 | cpio/test/list.h: Makefile | |
762 | cat $(top_srcdir)/cpio/test/test_*.c | grep DEFINE_TEST > cpio/test/list.h | |
763 | ||
764 | if BUILD_BSDCPIO | |
765 | bsdcpio_test_programs= bsdcpio_test | |
125047fc | 766 | bsdcpio_TESTS_ENVIRONMENT= BSDCPIO=`cd $(top_builddir);/bin/pwd`/bsdcpio$(EXEEXT) BSDCPIO_TEST_FILES=`cd $(top_srcdir);/bin/pwd`/cpio/test |
b3cfa26b TK |
767 | else |
768 | bsdcpio_test_programs= | |
769 | bsdcpio_TESTS_ENVIRONMENT= | |
770 | endif | |
771 | ||
772 | bsdcpio_test_EXTRA_DIST= \ | |
773 | cpio/test/test_gcpio_compat_ref.bin.uu \ | |
774 | cpio/test/test_gcpio_compat_ref.crc.uu \ | |
775 | cpio/test/test_gcpio_compat_ref.newc.uu \ | |
776 | cpio/test/test_gcpio_compat_ref.ustar.uu \ | |
e8b51424 JS |
777 | cpio/test/test_gcpio_compat_ref_nosym.bin.uu \ |
778 | cpio/test/test_gcpio_compat_ref_nosym.crc.uu \ | |
779 | cpio/test/test_gcpio_compat_ref_nosym.newc.uu \ | |
780 | cpio/test/test_gcpio_compat_ref_nosym.ustar.uu \ | |
b3cfa26b TK |
781 | cpio/test/test_option_f.cpio.uu \ |
782 | cpio/test/test_option_m.cpio.uu \ | |
783 | cpio/test/test_option_t.cpio.uu \ | |
784 | cpio/test/test_option_t.stdout.uu \ | |
79cb8e5b CW |
785 | cpio/test/test_option_tv.stdout.uu \ |
786 | cpio/test/CMakeLists.txt |