xref: /freebsd/lib/libarchive/Makefile (revision dd1ed99736e4708c29ff94688176044bc268c1ee)
12710e4d1STim Kientzle# $FreeBSD$
2c6063d0dSWarner Losh.include <src.opts.mk>
3bfe891b1STim Kientzle
4a70cba95SGlen BarberPACKAGE=lib${LIB}
5*dd1ed997SEnji Cooper_LIBARCHIVEDIR=	${SRCTOP}/contrib/libarchive
645d3b226SMartin Matuska
7bfe891b1STim KientzleLIB=	archive
8fd4cf060STim Kientzle
96b129086SBaptiste DaroussinLIBADD=	z bz2 lzma bsdxml
106b129086SBaptiste DaroussinCFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
1138abb26bSMartin Matuska
12a2b1e869STim Kientzle# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
13fa07de5eSTim Kientzle# It has no real relation to the libarchive version number.
146c95142eSMartin MatuskaSHLIB_MAJOR= 6
15db38abe6STim Kientzle
1645d3b226SMartin MatuskaCFLAGS+=	-DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
17bfe891b1STim KientzleCFLAGS+=	-I${.OBJDIR}
18bfe891b1STim Kientzle
19f4f5e3f5STim Kientzle.if ${MK_OPENSSL} != "no"
20f4f5e3f5STim KientzleCFLAGS+=	-DWITH_OPENSSL
216b129086SBaptiste DaroussinLIBADD+=	crypto
229980697aSDavid E. O'Brien.else
236b129086SBaptiste DaroussinLIBADD+=	md
24f4f5e3f5STim Kientzle.endif
25f4f5e3f5STim Kientzle
266c95142eSMartin Matuska.if ${MK_ICONV} != "no"
27e4dedeefSXin LI# TODO: This can be changed back to CFLAGS once iconv works correctly
28e4dedeefSXin LI# with statically linked binaries.
291243a98eSTijl CoosemansSHARED_CFLAGS+=	-DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=
306c95142eSMartin Matuska.endif
316c95142eSMartin Matuska
326c95142eSMartin Matuska.if ${MACHINE_ARCH:Marm*} != "" || ${MACHINE_ARCH:Mmips*} != "" || \
33dc9b124dSJustin Hibbits	${MACHINE_ARCH:Msparc64*} != "" || ${MACHINE_ARCH:Mpowerpc*} != ""
346c95142eSMartin MatuskaNO_WCAST_ALIGN=	yes
356c95142eSMartin Matuska.if ${MACHINE_ARCH:M*64*} == ""
366c95142eSMartin MatuskaCFLAGS+=	-DPPMD_32BIT
376c95142eSMartin Matuska.endif
386c95142eSMartin Matuska.endif
396c11edf6SDimitry AndricNO_WCAST_ALIGN.clang=
406c95142eSMartin Matuska
4162f38e94SBryan Drewery.PATH: ${_LIBARCHIVEDIR}/libarchive
4245d3b226SMartin Matuska
43db38abe6STim Kientzle# Headers to be installed in /usr/include
44bfe891b1STim KientzleINCS=	archive.h archive_entry.h
45bfe891b1STim Kientzle
469f322324STim Kientzle# Sources to be compiled.
476c95142eSMartin MatuskaSRCS=	archive_acl.c					\
486c95142eSMartin Matuska	archive_check_magic.c				\
49acc60b03SMartin Matuska	archive_cmdline.c				\
50cdf63a70SMartin Matuska	archive_cryptor.c				\
51cdf63a70SMartin Matuska	archive_digest.c				\
52bfe891b1STim Kientzle	archive_entry.c					\
53b48b40f1STim Kientzle	archive_entry_copy_stat.c			\
546c95142eSMartin Matuska	archive_entry_link_resolver.c			\
556c95142eSMartin Matuska	archive_entry_sparse.c				\
56b48b40f1STim Kientzle	archive_entry_stat.c				\
579dd49f96STim Kientzle	archive_entry_strmode.c				\
5865d5426fSTim Kientzle	archive_entry_xattr.c				\
59fd082e96SMartin Matuska	archive_getdate.c				\
60cdf63a70SMartin Matuska	archive_hmac.c					\
61fd082e96SMartin Matuska	archive_match.c					\
626c95142eSMartin Matuska	archive_options.c				\
63cdf63a70SMartin Matuska	archive_pack_dev.c				\
64fd082e96SMartin Matuska	archive_pathmatch.c				\
656c95142eSMartin Matuska	archive_ppmd7.c					\
66cdf63a70SMartin Matuska	archive_random.c				\
676c95142eSMartin Matuska	archive_rb.c					\
68bfe891b1STim Kientzle	archive_read.c					\
69cdf63a70SMartin Matuska	archive_read_add_passphrase.c			\
70acc60b03SMartin Matuska	archive_read_append_filter.c			\
71bfe891b1STim Kientzle	archive_read_data_into_fd.c			\
7243a8e5f0STim Kientzle	archive_read_disk_entry_from_file.c		\
736c95142eSMartin Matuska	archive_read_disk_posix.c			\
7443a8e5f0STim Kientzle	archive_read_disk_set_standard_lookup.c		\
75bfe891b1STim Kientzle	archive_read_extract.c				\
76cdf63a70SMartin Matuska	archive_read_extract2.c				\
77bfe891b1STim Kientzle	archive_read_open_fd.c				\
7897fc4d2dSTim Kientzle	archive_read_open_file.c			\
79af6513d3STim Kientzle	archive_read_open_filename.c			\
8097fc4d2dSTim Kientzle	archive_read_open_memory.c			\
81acc60b03SMartin Matuska	archive_read_set_format.c			\
826c95142eSMartin Matuska	archive_read_set_options.c			\
836c95142eSMartin Matuska	archive_read_support_filter_all.c		\
846c95142eSMartin Matuska	archive_read_support_filter_bzip2.c		\
856c95142eSMartin Matuska	archive_read_support_filter_compress.c		\
866c95142eSMartin Matuska	archive_read_support_filter_gzip.c		\
87acc60b03SMartin Matuska	archive_read_support_filter_grzip.c		\
88acc60b03SMartin Matuska	archive_read_support_filter_lrzip.c		\
89cdf63a70SMartin Matuska	archive_read_support_filter_lz4.c		\
90acc60b03SMartin Matuska	archive_read_support_filter_lzop.c		\
916c95142eSMartin Matuska	archive_read_support_filter_none.c		\
926c95142eSMartin Matuska	archive_read_support_filter_program.c		\
936c95142eSMartin Matuska	archive_read_support_filter_rpm.c		\
946c95142eSMartin Matuska	archive_read_support_filter_uu.c		\
956c95142eSMartin Matuska	archive_read_support_filter_xz.c		\
966c95142eSMartin Matuska	archive_read_support_format_7zip.c		\
97bfe891b1STim Kientzle	archive_read_support_format_all.c		\
9837320c75STim Kientzle	archive_read_support_format_ar.c		\
996c95142eSMartin Matuska	archive_read_support_format_by_code.c		\
1006c95142eSMartin Matuska	archive_read_support_format_cab.c		\
101bfe891b1STim Kientzle	archive_read_support_format_cpio.c		\
102a9490c59STim Kientzle	archive_read_support_format_empty.c		\
1035d9e84daSTim Kientzle	archive_read_support_format_iso9660.c		\
1046c95142eSMartin Matuska	archive_read_support_format_lha.c		\
1059dd49f96STim Kientzle	archive_read_support_format_mtree.c		\
1066c95142eSMartin Matuska	archive_read_support_format_rar.c		\
107690f5ebdSTim Kientzle	archive_read_support_format_raw.c		\
108bfe891b1STim Kientzle	archive_read_support_format_tar.c		\
109cdf63a70SMartin Matuska	archive_read_support_format_warc.c		\
11038abb26bSMartin Matuska	archive_read_support_format_xar.c		\
1115958ff08STim Kientzle	archive_read_support_format_zip.c		\
112bfe891b1STim Kientzle	archive_string.c				\
113bfe891b1STim Kientzle	archive_string_sprintf.c			\
114bfe891b1STim Kientzle	archive_util.c					\
115f81da3e5STim Kientzle	archive_virtual.c				\
116bfe891b1STim Kientzle	archive_write.c					\
117fd082e96SMartin Matuska	archive_write_add_filter.c			\
11810ed66fdSMartin Matuska	archive_write_disk_acl.c			\
119f81da3e5STim Kientzle	archive_write_disk_set_standard_lookup.c	\
1206c95142eSMartin Matuska	archive_write_disk_posix.c			\
121bfe891b1STim Kientzle	archive_write_open_fd.c				\
12297fc4d2dSTim Kientzle	archive_write_open_file.c			\
123af6513d3STim Kientzle	archive_write_open_filename.c			\
12497fc4d2dSTim Kientzle	archive_write_open_memory.c			\
125acc60b03SMartin Matuska	archive_write_add_filter_b64encode.c		\
126acc60b03SMartin Matuska	archive_write_add_filter_by_name.c		\
1276c95142eSMartin Matuska	archive_write_add_filter_bzip2.c		\
1286c95142eSMartin Matuska	archive_write_add_filter_compress.c		\
129acc60b03SMartin Matuska	archive_write_add_filter_grzip.c		\
1306c95142eSMartin Matuska	archive_write_add_filter_gzip.c			\
131acc60b03SMartin Matuska	archive_write_add_filter_lrzip.c		\
132cdf63a70SMartin Matuska	archive_write_add_filter_lz4.c			\
133acc60b03SMartin Matuska	archive_write_add_filter_lzop.c			\
1346c95142eSMartin Matuska	archive_write_add_filter_none.c			\
1356c95142eSMartin Matuska	archive_write_add_filter_program.c		\
136acc60b03SMartin Matuska	archive_write_add_filter_uuencode.c		\
1376c95142eSMartin Matuska	archive_write_add_filter_xz.c			\
138bfe891b1STim Kientzle	archive_write_set_format.c			\
1396c95142eSMartin Matuska	archive_write_set_format_7zip.c			\
14094451fa8STim Kientzle	archive_write_set_format_ar.c			\
141bfe891b1STim Kientzle	archive_write_set_format_by_name.c		\
142bfe891b1STim Kientzle	archive_write_set_format_cpio.c			\
14317e60e62STim Kientzle	archive_write_set_format_cpio_newc.c		\
144cdf63a70SMartin Matuska	archive_write_set_format_filter_by_ext.c	\
1456c95142eSMartin Matuska	archive_write_set_format_gnutar.c		\
1466c95142eSMartin Matuska	archive_write_set_format_iso9660.c		\
1479ea64210STim Kientzle	archive_write_set_format_mtree.c		\
148bfe891b1STim Kientzle	archive_write_set_format_pax.c			\
149cdf63a70SMartin Matuska	archive_write_set_format_raw.c			\
150bfe891b1STim Kientzle	archive_write_set_format_shar.c			\
151b48b40f1STim Kientzle	archive_write_set_format_ustar.c		\
152acc60b03SMartin Matuska	archive_write_set_format_v7tar.c		\
153cdf63a70SMartin Matuska	archive_write_set_format_warc.c			\
1546c95142eSMartin Matuska	archive_write_set_format_xar.c			\
155b1657eb0STim Kientzle	archive_write_set_format_zip.c			\
156cdf63a70SMartin Matuska	archive_write_set_passphrase.c			\
1576c95142eSMartin Matuska	archive_write_set_options.c			\
158acc60b03SMartin Matuska	filter_fork_posix.c
159bfe891b1STim Kientzle
160db38abe6STim Kientzle# Man pages to be installed.
161bfe891b1STim KientzleMAN=	archive_entry.3					\
1626c95142eSMartin Matuska	archive_entry_acl.3				\
1636c95142eSMartin Matuska	archive_entry_linkify.3				\
1646c95142eSMartin Matuska	archive_entry_paths.3				\
1656c95142eSMartin Matuska	archive_entry_perms.3				\
1666c95142eSMartin Matuska	archive_entry_stat.3				\
1676c95142eSMartin Matuska	archive_entry_time.3				\
168bfe891b1STim Kientzle	archive_read.3					\
1696c95142eSMartin Matuska	archive_read_data.3				\
170e1089c1eSTim Kientzle	archive_read_disk.3				\
1716c95142eSMartin Matuska	archive_read_extract.3				\
1726c95142eSMartin Matuska	archive_read_filter.3				\
1736c95142eSMartin Matuska	archive_read_format.3				\
1746c95142eSMartin Matuska	archive_read_free.3				\
1756c95142eSMartin Matuska	archive_read_header.3				\
1766c95142eSMartin Matuska	archive_read_new.3				\
1776c95142eSMartin Matuska	archive_read_open.3				\
1786c95142eSMartin Matuska	archive_read_set_options.3			\
179bfe891b1STim Kientzle	archive_util.3					\
180bfe891b1STim Kientzle	archive_write.3					\
1816c95142eSMartin Matuska	archive_write_blocksize.3			\
1826c95142eSMartin Matuska	archive_write_data.3				\
183f81da3e5STim Kientzle	archive_write_disk.3				\
1846c95142eSMartin Matuska	archive_write_filter.3				\
1856c95142eSMartin Matuska	archive_write_finish_entry.3			\
1866c95142eSMartin Matuska	archive_write_format.3				\
1876c95142eSMartin Matuska	archive_write_free.3				\
1886c95142eSMartin Matuska	archive_write_header.3				\
1896c95142eSMartin Matuska	archive_write_new.3				\
1906c95142eSMartin Matuska	archive_write_open.3				\
1916c95142eSMartin Matuska	archive_write_set_options.3			\
1929dd49f96STim Kientzle	cpio.5						\
193bfe891b1STim Kientzle	libarchive.3					\
194acc60b03SMartin Matuska	libarchive_changes.3				\
1956c95142eSMartin Matuska	libarchive_internals.3				\
196bfe891b1STim Kientzle	libarchive-formats.5				\
197bfe891b1STim Kientzle	tar.5
198bfe891b1STim Kientzle
199db38abe6STim Kientzle# Symlink the man pages under each function name.
200bfe891b1STim KientzleMLINKS+=	archive_entry.3 archive_entry_clear.3
201bfe891b1STim KientzleMLINKS+=	archive_entry.3 archive_entry_clone.3
202bfe891b1STim KientzleMLINKS+=	archive_entry.3 archive_entry_free.3
203bfe891b1STim KientzleMLINKS+=	archive_entry.3 archive_entry_new.3
2046c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_add_entry.3
2056c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_add_entry_w.3
2066c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_clear.3
2076c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_count.3
2086c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_next.3
2096c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_next_w.3
2106c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_reset.3
2116c95142eSMartin MatuskaMLINKS+=	archive_entry_acl.3 archive_entry_acl_text_w.3
2126c95142eSMartin MatuskaMLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver.3
2136c95142eSMartin MatuskaMLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_new.3
2146c95142eSMartin MatuskaMLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_set_strategy.3
2156c95142eSMartin MatuskaMLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_free.3
2166c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_hardlink.3
2176c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_hardlink_w.3
2186c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_link.3
2196c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_link_w.3
2206c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_pathname.3
2216c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_pathname_w.3
2226c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_sourcepath.3
2236c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_symlink.3
2246c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_copy_symlink_w.3
2256c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_hardlink.3
2266c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_hardlink_w.3
2276c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_pathname.3
2286c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_pathname_w.3
2296c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_set_hardlink.3
2306c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_set_link.3
2316c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_set_pathname.3
2326c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_set_symlink.3
2336c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_symlink.3
2346c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_symlink_w.3
2356c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_update_symlink_utf8.3
2366c95142eSMartin MatuskaMLINKS+=	archive_entry_paths.3 archive_entry_update_hardlink_utf8.3
2376c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_copy_fflags_text.3
2386c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_copy_fflags_text_w.3
2396c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_copy_gname.3
2406c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_copy_gname_w.3
2416c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_copy_uname.3
2426c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_copy_uname_w.3
2436c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_fflags.3
2446c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_fflags_text.3
2456c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_gid.3
2466c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_gname.3
2476c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_gname_w.3
2486c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_set_fflags.3
2496c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_set_gid.3
2506c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_set_gname.3
2516c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_perm.3
2526c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_set_perm.3
2536c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_set_uid.3
2546c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_set_uname.3
2556c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_strmode.3
2566c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_uid.3
2576c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_uname.3
2586c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_uname_w.3
2596c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_update_gname_utf8.3
2606c95142eSMartin MatuskaMLINKS+=	archive_entry_perms.3 archive_entry_update_uname_utf8.3
2616c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_copy_stat.3
2626c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_dev.3
2636c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_dev_is_set.3
2646c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_devmajor.3
2656c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_devminor.3
2666c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_filetype.3
2676c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_ino.3
2686c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_ino64.3
2696c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_ino_is_set.3
2706c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_mode.3
2716c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_nlink.3
2726c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_rdev.3
2736c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_rdevmajor.3
2746c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_rdevminor.3
2756c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_dev.3
2766c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_devmajor.3
2776c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_devminor.3
2786c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_filetype.3
2796c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_ino.3
2806c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_ino64.3
2816c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_mode.3
2826c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_nlink.3
2836c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_rdev.3
2846c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_rdevmajor.3
2856c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_rdevminor.3
2866c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_set_size.3
2876c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_size.3
2886c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_size_is_set.3
2896c95142eSMartin MatuskaMLINKS+=	archive_entry_stat.3 archive_entry_unset_size.3
2906c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_atime.3
2916c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_atime_is_set.3
2926c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_atime_nsec.3
2936c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_birthtime.3
2946c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_birthtime_is_set.3
2956c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_birthtime_nsec.3
2966c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_ctime.3
2976c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_ctime_is_set.3
2986c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_ctime_nsec.3
2996c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_mtime.3
3006c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_mtime_is_set.3
3016c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_mtime_nsec.3
3026c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_set_atime.3
3036c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_set_birthtime.3
3046c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_set_ctime.3
3056c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_set_mtime.3
3066c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_unset_atime.3
3076c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_unset_birthtime.3
3086c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_unset_ctime.3
3096c95142eSMartin MatuskaMLINKS+=	archive_entry_time.3 archive_entry_unset_mtime.3
3106c95142eSMartin MatuskaMLINKS+=	archive_read_data.3 archive_read_data_block.3
3116c95142eSMartin MatuskaMLINKS+=	archive_read_data.3 archive_read_data_into_fd.3
3126c95142eSMartin MatuskaMLINKS+=	archive_read_data.3 archive_read_data_skip.3
3136c95142eSMartin MatuskaMLINKS+=	archive_read_header.3 archive_read_next_header.3
3146c95142eSMartin MatuskaMLINKS+=	archive_read_header.3 archive_read_next_header2.3
3156c95142eSMartin MatuskaMLINKS+=	archive_read_extract.3 archive_read_extract2.3
3166c95142eSMartin MatuskaMLINKS+=	archive_read_extract.3 archive_read_extract_set_progress_callback.3
3176c95142eSMartin MatuskaMLINKS+=	archive_read_extract.3 archive_read_extract_set_skip_file.3
3186c95142eSMartin MatuskaMLINKS+=	archive_read_open.3 archive_read_open2.3
3196c95142eSMartin MatuskaMLINKS+=	archive_read_open.3 archive_read_open_FILE.3
3206c95142eSMartin MatuskaMLINKS+=	archive_read_open.3 archive_read_open_fd.3
3216c95142eSMartin MatuskaMLINKS+=	archive_read_open.3 archive_read_open_file.3
3226c95142eSMartin MatuskaMLINKS+=	archive_read_open.3 archive_read_open_filename.3
3236c95142eSMartin MatuskaMLINKS+=	archive_read_open.3 archive_read_open_memory.3
3246c95142eSMartin MatuskaMLINKS+=	archive_read_free.3 archive_read_close.3
3256c95142eSMartin MatuskaMLINKS+=	archive_read_free.3 archive_read_finish.3
3266c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_all.3
3276c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_bzip2.3
3286c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_compress.3
3296c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_gzip.3
3306c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_lzma.3
3316c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_none.3
3326c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_xz.3
3336c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_program.3
3346c95142eSMartin MatuskaMLINKS+=	archive_read_filter.3 archive_read_support_filter_program_signature.3
3356c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_7zip.3
3366c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_all.3
3376c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_ar.3
3386c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_by_code.3
3396c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_cab.3
3406c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_cpio.3
3416c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_empty.3
3426c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_iso9660.3
3436c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_lha.3
3446c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_mtree.3
3456c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_rar.3
3466c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_raw.3
3476c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_tar.3
3486c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_xar.3
3496c95142eSMartin MatuskaMLINKS+=	archive_read_format.3 archive_read_support_format_zip.3
350e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_entry_from_file.3
351e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_gname.3
352e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_new.3
353e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_set_gname_lookup.3
354e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_set_standard_lookup.3
355e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_hybrid.3
356e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_logical.3
357e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_physical.3
358e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_set_uname_lookup.3
359e1089c1eSTim KientzleMLINKS+=	archive_read_disk.3 archive_read_disk_uname.3
3606c95142eSMartin MatuskaMLINKS+=	archive_read_set_options.3 archive_read_set_filter_option.3
3616c95142eSMartin MatuskaMLINKS+=	archive_read_set_options.3 archive_read_set_format_option.3
3626c95142eSMartin MatuskaMLINKS+=	archive_read_set_options.3 archive_read_set_option.3
363f81da3e5STim KientzleMLINKS+=	archive_util.3 archive_clear_error.3
364bfe891b1STim KientzleMLINKS+=	archive_util.3 archive_compression.3
365bfe891b1STim KientzleMLINKS+=	archive_util.3 archive_compression_name.3
3666c95142eSMartin MatuskaMLINKS+=	archive_util.3 archive_copy_error.3
367bfe891b1STim KientzleMLINKS+=	archive_util.3 archive_errno.3
368bfe891b1STim KientzleMLINKS+=	archive_util.3 archive_error_string.3
3699adedf96STim KientzleMLINKS+=	archive_util.3 archive_file_count.3
3706c95142eSMartin MatuskaMLINKS+=	archive_util.3 archive_filter_code.3
3716c95142eSMartin MatuskaMLINKS+=	archive_util.3 archive_filter_count.3
3726c95142eSMartin MatuskaMLINKS+=	archive_util.3 archive_filter_name.3
373bfe891b1STim KientzleMLINKS+=	archive_util.3 archive_format.3
374bfe891b1STim KientzleMLINKS+=	archive_util.3 archive_format_name.3
3756c95142eSMartin MatuskaMLINKS+=	archive_util.3 archive_position.3
376b772d06cSTim KientzleMLINKS+=	archive_util.3 archive_set_error.3
3776c95142eSMartin MatuskaMLINKS+=	archive_write_blocksize.3 archive_write_get_bytes_in_last_block.3
3786c95142eSMartin MatuskaMLINKS+=	archive_write_blocksize.3 archive_write_get_bytes_per_block.3
3796c95142eSMartin MatuskaMLINKS+=	archive_write_blocksize.3 archive_write_set_bytes_in_last_block.3
3806c95142eSMartin MatuskaMLINKS+=	archive_write_blocksize.3 archive_write_set_bytes_per_block.3
3816c95142eSMartin MatuskaMLINKS+=	archive_write_disk.3 archive_write_data_block.3
382f81da3e5STim KientzleMLINKS+=	archive_write_disk.3 archive_write_disk_new.3
383f81da3e5STim KientzleMLINKS+=	archive_write_disk.3 archive_write_disk_set_group_lookup.3
384f81da3e5STim KientzleMLINKS+=	archive_write_disk.3 archive_write_disk_set_options.3
385f81da3e5STim KientzleMLINKS+=	archive_write_disk.3 archive_write_disk_set_skip_file.3
386f81da3e5STim KientzleMLINKS+=	archive_write_disk.3 archive_write_disk_set_standard_lookup.3
387f81da3e5STim KientzleMLINKS+=	archive_write_disk.3 archive_write_disk_set_user_lookup.3
3886c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_bzip2.3
3896c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_compress.3
3906c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_gzip.3
3916c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_lzip.3
3926c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_lzma.3
3936c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_none.3
3946c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_program.3
3956c95142eSMartin MatuskaMLINKS+=	archive_write_filter.3 archive_write_add_filter_xz.3
3966c95142eSMartin MatuskaMLINKS+=	archive_write_format.3 archive_write_set_format_cpio.3
3976c95142eSMartin MatuskaMLINKS+=	archive_write_format.3 archive_write_set_format_pax.3
3986c95142eSMartin MatuskaMLINKS+=	archive_write_format.3 archive_write_set_format_pax_restricted.3
3996c95142eSMartin MatuskaMLINKS+=	archive_write_format.3 archive_write_set_format_shar.3
4006c95142eSMartin MatuskaMLINKS+=	archive_write_format.3 archive_write_set_format_shar_dump.3
4016c95142eSMartin MatuskaMLINKS+=	archive_write_format.3 archive_write_set_format_ustar.3
4026c95142eSMartin MatuskaMLINKS+=	archive_write_free.3 archive_write_close.3
403acc60b03SMartin MatuskaMLINKS+=	archive_write_free.3 archive_write_fail.3
4046c95142eSMartin MatuskaMLINKS+=	archive_write_free.3 archive_write_finish.3
4056c95142eSMartin MatuskaMLINKS+=	archive_write_open.3 archive_write_open_FILE.3
4066c95142eSMartin MatuskaMLINKS+=	archive_write_open.3 archive_write_open_fd.3
4076c95142eSMartin MatuskaMLINKS+=	archive_write_open.3 archive_write_open_file.3
4086c95142eSMartin MatuskaMLINKS+=	archive_write_open.3 archive_write_open_filename.3
4096c95142eSMartin MatuskaMLINKS+=	archive_write_open.3 archive_write_open_memory.3
4106c95142eSMartin MatuskaMLINKS+=	archive_write_set_options.3 archive_write_set_filter_option.3
4116c95142eSMartin MatuskaMLINKS+=	archive_write_set_options.3 archive_write_set_format_option.3
4126c95142eSMartin MatuskaMLINKS+=	archive_write_set_options.3 archive_write_set_option.3
413bfe891b1STim KientzleMLINKS+=	libarchive.3 archive.3
414bfe891b1STim Kientzle
41559e2ff55SEnji Cooper.if ${MK_TESTS} != "no"
41659e2ff55SEnji CooperSUBDIR+=	tests
41759e2ff55SEnji Cooper.endif
418f81da3e5STim Kientzle
419bfe891b1STim Kientzle.include <bsd.lib.mk>
420