Makefile revision 316338
1275970Scy# $FreeBSD: stable/10/lib/libarchive/Makefile 316338 2017-03-31 20:17:30Z mm $
2275970Scy.include <bsd.own.mk>
3275970Scy
4275970ScyLIBARCHIVEDIR=	${SRCTOP}/contrib/libarchive
5275970Scy
6275970ScyLIB=	archive
7275970ScyDPADD=	${LIBZ} ${LIBBZ2} ${LIBLZMA} ${LIBPTHREAD} ${LIBBSDXML}
8275970ScyLDADD=	-lz -lbz2 -llzma -lpthread -lbsdxml
9275970ScyCFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
10275970Scy
11275970Scy# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
12275970Scy# It has no real relation to the libarchive version number.
13275970ScySHLIB_MAJOR= 6
14275970Scy
15275970ScyCFLAGS+=	-DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
16275970ScyCFLAGS+=	-I${.OBJDIR}
17275970Scy
18275970Scy.if ${MK_OPENSSL} != "no"
19275970ScyCFLAGS+=	-DWITH_OPENSSL
20275970ScyDPADD+=	${LIBCRYPTO}
21275970ScyLDADD+=	-lcrypto
22275970Scy.else
23275970ScyDPADD+=	${LIBMD}
24275970ScyLDADD+=	-lmd
25275970Scy.endif
26275970Scy
27275970Scy.if ${MK_ICONV} != "no"
28275970Scy# TODO: This can be changed back to CFLAGS once iconv works correctly
29275970Scy# with statically linked binaries.
30275970ScySHARED_CFLAGS+=	-DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=
31275970Scy.endif
32275970Scy
33275970Scy.if ${MACHINE_ARCH:Marm*} != "" || ${MACHINE_ARCH:Mmips*} != "" || \
34275970Scy	${MACHINE_ARCH:Msparc64*} != "" || ${MACHINE_ARCH:Mia64*} != ""
35275970ScyNO_WCAST_ALIGN=	yes
36275970Scy.if ${MACHINE_ARCH:M*64*} == ""
37275970ScyCFLAGS+=	-DPPMD_32BIT
38275970Scy.endif
39275970Scy.endif
40275970ScyNO_WCAST_ALIGN.clang=
41275970Scy
42275970Scy.PATH: ${LIBARCHIVEDIR}/libarchive
43275970Scy
44275970Scy# Headers to be installed in /usr/include
45275970ScyINCS=	archive.h archive_entry.h
46275970Scy
47275970Scy# Sources to be compiled.
48275970ScySRCS=	archive_acl.c					\
49275970Scy	archive_check_magic.c				\
50275970Scy	archive_cmdline.c				\
51275970Scy	archive_cryptor.c				\
52275970Scy	archive_disk_acl_freebsd.c			\
53275970Scy	archive_digest.c				\
54275970Scy	archive_entry.c					\
55275970Scy	archive_entry_copy_stat.c			\
56275970Scy	archive_entry_link_resolver.c			\
57275970Scy	archive_entry_sparse.c				\
58275970Scy	archive_entry_stat.c				\
59275970Scy	archive_entry_strmode.c				\
60275970Scy	archive_entry_xattr.c				\
61275970Scy	archive_getdate.c				\
62275970Scy	archive_hmac.c					\
63275970Scy	archive_match.c					\
64275970Scy	archive_options.c				\
65275970Scy	archive_pack_dev.c				\
66275970Scy	archive_pathmatch.c				\
67275970Scy	archive_ppmd7.c					\
68275970Scy	archive_random.c				\
69275970Scy	archive_rb.c					\
70275970Scy	archive_read.c					\
71275970Scy	archive_read_add_passphrase.c			\
72275970Scy	archive_read_append_filter.c			\
73275970Scy	archive_read_data_into_fd.c			\
74275970Scy	archive_read_disk_entry_from_file.c		\
75275970Scy	archive_read_disk_posix.c			\
76275970Scy	archive_read_disk_set_standard_lookup.c		\
77275970Scy	archive_read_extract.c				\
78275970Scy	archive_read_extract2.c				\
79275970Scy	archive_read_open_fd.c				\
80275970Scy	archive_read_open_file.c			\
81275970Scy	archive_read_open_filename.c			\
82275970Scy	archive_read_open_memory.c			\
83275970Scy	archive_read_set_format.c			\
84275970Scy	archive_read_set_options.c			\
85275970Scy	archive_read_support_filter_all.c		\
86275970Scy	archive_read_support_filter_bzip2.c		\
87275970Scy	archive_read_support_filter_compress.c		\
88275970Scy	archive_read_support_filter_gzip.c		\
89275970Scy	archive_read_support_filter_grzip.c		\
90275970Scy	archive_read_support_filter_lrzip.c		\
91275970Scy	archive_read_support_filter_lz4.c		\
92275970Scy	archive_read_support_filter_lzop.c		\
93275970Scy	archive_read_support_filter_none.c		\
94275970Scy	archive_read_support_filter_program.c		\
95275970Scy	archive_read_support_filter_rpm.c		\
96275970Scy	archive_read_support_filter_uu.c		\
97275970Scy	archive_read_support_filter_xz.c		\
98275970Scy	archive_read_support_format_7zip.c		\
99275970Scy	archive_read_support_format_all.c		\
100275970Scy	archive_read_support_format_ar.c		\
101275970Scy	archive_read_support_format_by_code.c		\
102275970Scy	archive_read_support_format_cab.c		\
103275970Scy	archive_read_support_format_cpio.c		\
104275970Scy	archive_read_support_format_empty.c		\
105275970Scy	archive_read_support_format_iso9660.c		\
106275970Scy	archive_read_support_format_lha.c		\
107275970Scy	archive_read_support_format_mtree.c		\
108275970Scy	archive_read_support_format_rar.c		\
109275970Scy	archive_read_support_format_raw.c		\
110275970Scy	archive_read_support_format_tar.c		\
111275970Scy	archive_read_support_format_warc.c		\
112275970Scy	archive_read_support_format_xar.c		\
113275970Scy	archive_read_support_format_zip.c		\
114275970Scy	archive_string.c				\
115275970Scy	archive_string_sprintf.c			\
116275970Scy	archive_util.c					\
117275970Scy	archive_version_details.c			\
118	archive_virtual.c				\
119	archive_write.c					\
120	archive_write_add_filter.c			\
121	archive_write_disk_set_standard_lookup.c	\
122	archive_write_disk_posix.c			\
123	archive_write_open_fd.c				\
124	archive_write_open_file.c			\
125	archive_write_open_filename.c			\
126	archive_write_open_memory.c			\
127	archive_write_add_filter_b64encode.c		\
128	archive_write_add_filter_by_name.c		\
129	archive_write_add_filter_bzip2.c		\
130	archive_write_add_filter_compress.c		\
131	archive_write_add_filter_grzip.c		\
132	archive_write_add_filter_gzip.c			\
133	archive_write_add_filter_lrzip.c		\
134	archive_write_add_filter_lz4.c			\
135	archive_write_add_filter_lzop.c			\
136	archive_write_add_filter_none.c			\
137	archive_write_add_filter_program.c		\
138	archive_write_add_filter_uuencode.c		\
139	archive_write_add_filter_xz.c			\
140	archive_write_set_format.c			\
141	archive_write_set_format_7zip.c			\
142	archive_write_set_format_ar.c			\
143	archive_write_set_format_by_name.c		\
144	archive_write_set_format_cpio.c			\
145	archive_write_set_format_cpio_newc.c		\
146	archive_write_set_format_filter_by_ext.c	\
147	archive_write_set_format_gnutar.c		\
148	archive_write_set_format_iso9660.c		\
149	archive_write_set_format_mtree.c		\
150	archive_write_set_format_pax.c			\
151	archive_write_set_format_raw.c			\
152	archive_write_set_format_shar.c			\
153	archive_write_set_format_ustar.c		\
154	archive_write_set_format_v7tar.c		\
155	archive_write_set_format_warc.c			\
156	archive_write_set_format_xar.c			\
157	archive_write_set_format_zip.c			\
158	archive_write_set_passphrase.c			\
159	archive_write_set_options.c			\
160	filter_fork_posix.c
161
162# Man pages to be installed.
163MAN=	archive_entry.3					\
164	archive_entry_acl.3				\
165	archive_entry_linkify.3				\
166	archive_entry_paths.3				\
167	archive_entry_perms.3				\
168	archive_entry_stat.3				\
169	archive_entry_time.3				\
170	archive_read.3					\
171	archive_read_data.3				\
172	archive_read_disk.3				\
173	archive_read_extract.3				\
174	archive_read_filter.3				\
175	archive_read_format.3				\
176	archive_read_free.3				\
177	archive_read_header.3				\
178	archive_read_new.3				\
179	archive_read_open.3				\
180	archive_read_set_options.3			\
181	archive_util.3					\
182	archive_write.3					\
183	archive_write_blocksize.3			\
184	archive_write_data.3				\
185	archive_write_disk.3				\
186	archive_write_filter.3				\
187	archive_write_finish_entry.3			\
188	archive_write_format.3				\
189	archive_write_free.3				\
190	archive_write_header.3				\
191	archive_write_new.3				\
192	archive_write_open.3				\
193	archive_write_set_options.3			\
194	cpio.5						\
195	libarchive.3					\
196	libarchive_changes.3				\
197	libarchive_internals.3				\
198	libarchive-formats.5				\
199	tar.5
200
201# Symlink the man pages under each function name.
202MLINKS+=	archive_entry.3 archive_entry_clear.3
203MLINKS+=	archive_entry.3 archive_entry_clone.3
204MLINKS+=	archive_entry.3 archive_entry_free.3
205MLINKS+=	archive_entry.3 archive_entry_new.3
206MLINKS+=	archive_entry_acl.3 archive_entry_acl_add_entry.3
207MLINKS+=	archive_entry_acl.3 archive_entry_acl_add_entry_w.3
208MLINKS+=	archive_entry_acl.3 archive_entry_acl_clear.3
209MLINKS+=	archive_entry_acl.3 archive_entry_acl_count.3
210MLINKS+=	archive_entry_acl.3 archive_entry_acl_next.3
211MLINKS+=	archive_entry_acl.3 archive_entry_acl_next_w.3
212MLINKS+=	archive_entry_acl.3 archive_entry_acl_reset.3
213MLINKS+=	archive_entry_acl.3 archive_entry_acl_text_w.3
214MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver.3
215MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_new.3
216MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_set_strategy.3
217MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_free.3
218MLINKS+=	archive_entry_paths.3 archive_entry_copy_hardlink.3
219MLINKS+=	archive_entry_paths.3 archive_entry_copy_hardlink_w.3
220MLINKS+=	archive_entry_paths.3 archive_entry_copy_link.3
221MLINKS+=	archive_entry_paths.3 archive_entry_copy_link_w.3
222MLINKS+=	archive_entry_paths.3 archive_entry_copy_pathname.3
223MLINKS+=	archive_entry_paths.3 archive_entry_copy_pathname_w.3
224MLINKS+=	archive_entry_paths.3 archive_entry_copy_sourcepath.3
225MLINKS+=	archive_entry_paths.3 archive_entry_copy_symlink.3
226MLINKS+=	archive_entry_paths.3 archive_entry_copy_symlink_w.3
227MLINKS+=	archive_entry_paths.3 archive_entry_hardlink.3
228MLINKS+=	archive_entry_paths.3 archive_entry_hardlink_w.3
229MLINKS+=	archive_entry_paths.3 archive_entry_pathname.3
230MLINKS+=	archive_entry_paths.3 archive_entry_pathname_w.3
231MLINKS+=	archive_entry_paths.3 archive_entry_set_hardlink.3
232MLINKS+=	archive_entry_paths.3 archive_entry_set_link.3
233MLINKS+=	archive_entry_paths.3 archive_entry_set_pathname.3
234MLINKS+=	archive_entry_paths.3 archive_entry_set_symlink.3
235MLINKS+=	archive_entry_paths.3 archive_entry_symlink.3
236MLINKS+=	archive_entry_paths.3 archive_entry_symlink_w.3
237MLINKS+=	archive_entry_paths.3 archive_entry_update_symlink_utf8.3
238MLINKS+=	archive_entry_paths.3 archive_entry_update_hardlink_utf8.3
239MLINKS+=	archive_entry_perms.3 archive_entry_copy_fflags_text.3
240MLINKS+=	archive_entry_perms.3 archive_entry_copy_fflags_text_w.3
241MLINKS+=	archive_entry_perms.3 archive_entry_copy_gname.3
242MLINKS+=	archive_entry_perms.3 archive_entry_copy_gname_w.3
243MLINKS+=	archive_entry_perms.3 archive_entry_copy_uname.3
244MLINKS+=	archive_entry_perms.3 archive_entry_copy_uname_w.3
245MLINKS+=	archive_entry_perms.3 archive_entry_fflags.3
246MLINKS+=	archive_entry_perms.3 archive_entry_fflags_text.3
247MLINKS+=	archive_entry_perms.3 archive_entry_gid.3
248MLINKS+=	archive_entry_perms.3 archive_entry_gname.3
249MLINKS+=	archive_entry_perms.3 archive_entry_gname_w.3
250MLINKS+=	archive_entry_perms.3 archive_entry_set_fflags.3
251MLINKS+=	archive_entry_perms.3 archive_entry_set_gid.3
252MLINKS+=	archive_entry_perms.3 archive_entry_set_gname.3
253MLINKS+=	archive_entry_perms.3 archive_entry_perm.3
254MLINKS+=	archive_entry_perms.3 archive_entry_set_perm.3
255MLINKS+=	archive_entry_perms.3 archive_entry_set_uid.3
256MLINKS+=	archive_entry_perms.3 archive_entry_set_uname.3
257MLINKS+=	archive_entry_perms.3 archive_entry_strmode.3
258MLINKS+=	archive_entry_perms.3 archive_entry_uid.3
259MLINKS+=	archive_entry_perms.3 archive_entry_uname.3
260MLINKS+=	archive_entry_perms.3 archive_entry_uname_w.3
261MLINKS+=	archive_entry_perms.3 archive_entry_update_gname_utf8.3
262MLINKS+=	archive_entry_perms.3 archive_entry_update_uname_utf8.3
263MLINKS+=	archive_entry_stat.3 archive_entry_copy_stat.3
264MLINKS+=	archive_entry_stat.3 archive_entry_dev.3
265MLINKS+=	archive_entry_stat.3 archive_entry_dev_is_set.3
266MLINKS+=	archive_entry_stat.3 archive_entry_devmajor.3
267MLINKS+=	archive_entry_stat.3 archive_entry_devminor.3
268MLINKS+=	archive_entry_stat.3 archive_entry_filetype.3
269MLINKS+=	archive_entry_stat.3 archive_entry_ino.3
270MLINKS+=	archive_entry_stat.3 archive_entry_ino64.3
271MLINKS+=	archive_entry_stat.3 archive_entry_ino_is_set.3
272MLINKS+=	archive_entry_stat.3 archive_entry_mode.3
273MLINKS+=	archive_entry_stat.3 archive_entry_nlink.3
274MLINKS+=	archive_entry_stat.3 archive_entry_rdev.3
275MLINKS+=	archive_entry_stat.3 archive_entry_rdevmajor.3
276MLINKS+=	archive_entry_stat.3 archive_entry_rdevminor.3
277MLINKS+=	archive_entry_stat.3 archive_entry_set_dev.3
278MLINKS+=	archive_entry_stat.3 archive_entry_set_devmajor.3
279MLINKS+=	archive_entry_stat.3 archive_entry_set_devminor.3
280MLINKS+=	archive_entry_stat.3 archive_entry_set_filetype.3
281MLINKS+=	archive_entry_stat.3 archive_entry_set_ino.3
282MLINKS+=	archive_entry_stat.3 archive_entry_set_ino64.3
283MLINKS+=	archive_entry_stat.3 archive_entry_set_mode.3
284MLINKS+=	archive_entry_stat.3 archive_entry_set_nlink.3
285MLINKS+=	archive_entry_stat.3 archive_entry_set_rdev.3
286MLINKS+=	archive_entry_stat.3 archive_entry_set_rdevmajor.3
287MLINKS+=	archive_entry_stat.3 archive_entry_set_rdevminor.3
288MLINKS+=	archive_entry_stat.3 archive_entry_set_size.3
289MLINKS+=	archive_entry_stat.3 archive_entry_size.3
290MLINKS+=	archive_entry_stat.3 archive_entry_size_is_set.3
291MLINKS+=	archive_entry_stat.3 archive_entry_unset_size.3
292MLINKS+=	archive_entry_time.3 archive_entry_atime.3
293MLINKS+=	archive_entry_time.3 archive_entry_atime_is_set.3
294MLINKS+=	archive_entry_time.3 archive_entry_atime_nsec.3
295MLINKS+=	archive_entry_time.3 archive_entry_birthtime.3
296MLINKS+=	archive_entry_time.3 archive_entry_birthtime_is_set.3
297MLINKS+=	archive_entry_time.3 archive_entry_birthtime_nsec.3
298MLINKS+=	archive_entry_time.3 archive_entry_ctime.3
299MLINKS+=	archive_entry_time.3 archive_entry_ctime_is_set.3
300MLINKS+=	archive_entry_time.3 archive_entry_ctime_nsec.3
301MLINKS+=	archive_entry_time.3 archive_entry_mtime.3
302MLINKS+=	archive_entry_time.3 archive_entry_mtime_is_set.3
303MLINKS+=	archive_entry_time.3 archive_entry_mtime_nsec.3
304MLINKS+=	archive_entry_time.3 archive_entry_set_atime.3
305MLINKS+=	archive_entry_time.3 archive_entry_set_birthtime.3
306MLINKS+=	archive_entry_time.3 archive_entry_set_ctime.3
307MLINKS+=	archive_entry_time.3 archive_entry_set_mtime.3
308MLINKS+=	archive_entry_time.3 archive_entry_unset_atime.3
309MLINKS+=	archive_entry_time.3 archive_entry_unset_birthtime.3
310MLINKS+=	archive_entry_time.3 archive_entry_unset_ctime.3
311MLINKS+=	archive_entry_time.3 archive_entry_unset_mtime.3
312MLINKS+=	archive_read_data.3 archive_read_data_block.3
313MLINKS+=	archive_read_data.3 archive_read_data_into_fd.3
314MLINKS+=	archive_read_data.3 archive_read_data_skip.3
315MLINKS+=	archive_read_header.3 archive_read_next_header.3
316MLINKS+=	archive_read_header.3 archive_read_next_header2.3
317MLINKS+=	archive_read_extract.3 archive_read_extract2.3
318MLINKS+=	archive_read_extract.3 archive_read_extract_set_progress_callback.3
319MLINKS+=	archive_read_extract.3 archive_read_extract_set_skip_file.3
320MLINKS+=	archive_read_open.3 archive_read_open2.3
321MLINKS+=	archive_read_open.3 archive_read_open_FILE.3
322MLINKS+=	archive_read_open.3 archive_read_open_fd.3
323MLINKS+=	archive_read_open.3 archive_read_open_file.3
324MLINKS+=	archive_read_open.3 archive_read_open_filename.3
325MLINKS+=	archive_read_open.3 archive_read_open_memory.3
326MLINKS+=	archive_read_free.3 archive_read_close.3
327MLINKS+=	archive_read_free.3 archive_read_finish.3
328MLINKS+=	archive_read_filter.3 archive_read_support_filter_all.3
329MLINKS+=	archive_read_filter.3 archive_read_support_filter_bzip2.3
330MLINKS+=	archive_read_filter.3 archive_read_support_filter_compress.3
331MLINKS+=	archive_read_filter.3 archive_read_support_filter_gzip.3
332MLINKS+=	archive_read_filter.3 archive_read_support_filter_lzma.3
333MLINKS+=	archive_read_filter.3 archive_read_support_filter_none.3
334MLINKS+=	archive_read_filter.3 archive_read_support_filter_xz.3
335MLINKS+=	archive_read_filter.3 archive_read_support_filter_program.3
336MLINKS+=	archive_read_filter.3 archive_read_support_filter_program_signature.3
337MLINKS+=	archive_read_format.3 archive_read_support_format_7zip.3
338MLINKS+=	archive_read_format.3 archive_read_support_format_all.3
339MLINKS+=	archive_read_format.3 archive_read_support_format_ar.3
340MLINKS+=	archive_read_format.3 archive_read_support_format_by_code.3
341MLINKS+=	archive_read_format.3 archive_read_support_format_cab.3
342MLINKS+=	archive_read_format.3 archive_read_support_format_cpio.3
343MLINKS+=	archive_read_format.3 archive_read_support_format_empty.3
344MLINKS+=	archive_read_format.3 archive_read_support_format_iso9660.3
345MLINKS+=	archive_read_format.3 archive_read_support_format_lha.3
346MLINKS+=	archive_read_format.3 archive_read_support_format_mtree.3
347MLINKS+=	archive_read_format.3 archive_read_support_format_rar.3
348MLINKS+=	archive_read_format.3 archive_read_support_format_raw.3
349MLINKS+=	archive_read_format.3 archive_read_support_format_tar.3
350MLINKS+=	archive_read_format.3 archive_read_support_format_xar.3
351MLINKS+=	archive_read_format.3 archive_read_support_format_zip.3
352MLINKS+=	archive_read_disk.3 archive_read_disk_entry_from_file.3
353MLINKS+=	archive_read_disk.3 archive_read_disk_gname.3
354MLINKS+=	archive_read_disk.3 archive_read_disk_new.3
355MLINKS+=	archive_read_disk.3 archive_read_disk_set_gname_lookup.3
356MLINKS+=	archive_read_disk.3 archive_read_disk_set_standard_lookup.3
357MLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_hybrid.3
358MLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_logical.3
359MLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_physical.3
360MLINKS+=	archive_read_disk.3 archive_read_disk_set_uname_lookup.3
361MLINKS+=	archive_read_disk.3 archive_read_disk_uname.3
362MLINKS+=	archive_read_set_options.3 archive_read_set_filter_option.3
363MLINKS+=	archive_read_set_options.3 archive_read_set_format_option.3
364MLINKS+=	archive_read_set_options.3 archive_read_set_option.3
365MLINKS+=	archive_util.3 archive_clear_error.3
366MLINKS+=	archive_util.3 archive_compression.3
367MLINKS+=	archive_util.3 archive_compression_name.3
368MLINKS+=	archive_util.3 archive_copy_error.3
369MLINKS+=	archive_util.3 archive_errno.3
370MLINKS+=	archive_util.3 archive_error_string.3
371MLINKS+=	archive_util.3 archive_file_count.3
372MLINKS+=	archive_util.3 archive_filter_code.3
373MLINKS+=	archive_util.3 archive_filter_count.3
374MLINKS+=	archive_util.3 archive_filter_name.3
375MLINKS+=	archive_util.3 archive_format.3
376MLINKS+=	archive_util.3 archive_format_name.3
377MLINKS+=	archive_util.3 archive_position.3
378MLINKS+=	archive_util.3 archive_set_error.3
379MLINKS+=	archive_write_blocksize.3 archive_write_get_bytes_in_last_block.3
380MLINKS+=	archive_write_blocksize.3 archive_write_get_bytes_per_block.3
381MLINKS+=	archive_write_blocksize.3 archive_write_set_bytes_in_last_block.3
382MLINKS+=	archive_write_blocksize.3 archive_write_set_bytes_per_block.3
383MLINKS+=	archive_write_disk.3 archive_write_data_block.3
384MLINKS+=	archive_write_disk.3 archive_write_disk_new.3
385MLINKS+=	archive_write_disk.3 archive_write_disk_set_group_lookup.3
386MLINKS+=	archive_write_disk.3 archive_write_disk_set_options.3
387MLINKS+=	archive_write_disk.3 archive_write_disk_set_skip_file.3
388MLINKS+=	archive_write_disk.3 archive_write_disk_set_standard_lookup.3
389MLINKS+=	archive_write_disk.3 archive_write_disk_set_user_lookup.3
390MLINKS+=	archive_write_filter.3 archive_write_add_filter_bzip2.3
391MLINKS+=	archive_write_filter.3 archive_write_add_filter_compress.3
392MLINKS+=	archive_write_filter.3 archive_write_add_filter_gzip.3
393MLINKS+=	archive_write_filter.3 archive_write_add_filter_lzip.3
394MLINKS+=	archive_write_filter.3 archive_write_add_filter_lzma.3
395MLINKS+=	archive_write_filter.3 archive_write_add_filter_none.3
396MLINKS+=	archive_write_filter.3 archive_write_add_filter_program.3
397MLINKS+=	archive_write_filter.3 archive_write_add_filter_xz.3
398MLINKS+=	archive_write_format.3 archive_write_set_format_cpio.3
399MLINKS+=	archive_write_format.3 archive_write_set_format_pax.3
400MLINKS+=	archive_write_format.3 archive_write_set_format_pax_restricted.3
401MLINKS+=	archive_write_format.3 archive_write_set_format_shar.3
402MLINKS+=	archive_write_format.3 archive_write_set_format_shar_dump.3
403MLINKS+=	archive_write_format.3 archive_write_set_format_ustar.3
404MLINKS+=	archive_write_free.3 archive_write_close.3
405MLINKS+=	archive_write_free.3 archive_write_fail.3
406MLINKS+=	archive_write_free.3 archive_write_finish.3
407MLINKS+=	archive_write_open.3 archive_write_open_FILE.3
408MLINKS+=	archive_write_open.3 archive_write_open_fd.3
409MLINKS+=	archive_write_open.3 archive_write_open_file.3
410MLINKS+=	archive_write_open.3 archive_write_open_filename.3
411MLINKS+=	archive_write_open.3 archive_write_open_memory.3
412MLINKS+=	archive_write_set_options.3 archive_write_set_filter_option.3
413MLINKS+=	archive_write_set_options.3 archive_write_set_format_option.3
414MLINKS+=	archive_write_set_options.3 archive_write_set_option.3
415MLINKS+=	libarchive.3 archive.3
416
417.if ${MK_TESTS} != "no"
418SUBDIR+=	tests
419.endif
420
421.include <bsd.lib.mk>
422