1# $FreeBSD: stable/10/lib/libarchive/Makefile 368708 2020-12-16 22:25:40Z mm $
2.include <bsd.own.mk>
3
4LIBARCHIVEDIR=	${SRCTOP}/contrib/libarchive
5
6LIB=	archive
7DPADD=	${LIBZ} ${LIBBZ2} ${LIBLZMA} ${LIBPTHREAD} ${LIBBSDXML}
8LDADD=	-lz -lbz2 -llzma -lpthread -lbsdxml
9CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
10
11# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
12# It has no real relation to the libarchive version number.
13SHLIB_MAJOR= 6
14
15CFLAGS+=	-DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
16CFLAGS+=	-I${.OBJDIR}
17
18.if ${MK_OPENSSL} != "no"
19CFLAGS+=	-DWITH_OPENSSL
20DPADD+=	${LIBCRYPTO}
21LDADD+=	-lcrypto
22.else
23DPADD+=	${LIBMD}
24LDADD+=	-lmd
25.endif
26
27.if ${MK_ICONV} != "no"
28# TODO: This can be changed back to CFLAGS once iconv works correctly
29# with statically linked binaries.
30SHARED_CFLAGS+=	-DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=
31.endif
32
33.if ${MACHINE_ARCH:Marm*} != "" || ${MACHINE_ARCH:Mmips*} != "" || \
34	${MACHINE_ARCH:Msparc64*} != "" || ${MACHINE_ARCH:Mia64*} != ""
35NO_WCAST_ALIGN=	yes
36.if ${MACHINE_ARCH:M*64*} == ""
37CFLAGS+=	-DPPMD_32BIT
38.endif
39.endif
40NO_WCAST_ALIGN.clang=
41
42.PATH: ${LIBARCHIVEDIR}/libarchive
43
44# Headers to be installed in /usr/include
45INCS=	archive.h archive_entry.h
46
47# Sources to be compiled.
48SRCS=	archive_acl.c					\
49	archive_blake2sp_ref.c				\
50	archive_blake2s_ref.c				\
51	archive_check_magic.c				\
52	archive_cmdline.c				\
53	archive_cryptor.c				\
54	archive_disk_acl_freebsd.c			\
55	archive_digest.c				\
56	archive_entry.c					\
57	archive_entry_copy_stat.c			\
58	archive_entry_link_resolver.c			\
59	archive_entry_sparse.c				\
60	archive_entry_stat.c				\
61	archive_entry_strmode.c				\
62	archive_entry_xattr.c				\
63	archive_getdate.c				\
64	archive_hmac.c					\
65	archive_match.c					\
66	archive_options.c				\
67	archive_pack_dev.c				\
68	archive_pathmatch.c				\
69	archive_ppmd7.c					\
70	archive_ppmd8.c					\
71	archive_random.c				\
72	archive_rb.c					\
73	archive_read.c					\
74	archive_read_add_passphrase.c			\
75	archive_read_append_filter.c			\
76	archive_read_data_into_fd.c			\
77	archive_read_disk_entry_from_file.c		\
78	archive_read_disk_posix.c			\
79	archive_read_disk_set_standard_lookup.c		\
80	archive_read_extract.c				\
81	archive_read_extract2.c				\
82	archive_read_open_fd.c				\
83	archive_read_open_file.c			\
84	archive_read_open_filename.c			\
85	archive_read_open_memory.c			\
86	archive_read_set_format.c			\
87	archive_read_set_options.c			\
88	archive_read_support_filter_all.c		\
89	archive_read_support_filter_bzip2.c		\
90	archive_read_support_filter_by_code.c		\
91	archive_read_support_filter_compress.c		\
92	archive_read_support_filter_gzip.c		\
93	archive_read_support_filter_grzip.c		\
94	archive_read_support_filter_lrzip.c		\
95	archive_read_support_filter_lz4.c		\
96	archive_read_support_filter_lzop.c		\
97	archive_read_support_filter_none.c		\
98	archive_read_support_filter_program.c		\
99	archive_read_support_filter_rpm.c		\
100	archive_read_support_filter_uu.c		\
101	archive_read_support_filter_xz.c		\
102	archive_read_support_filter_zstd.c		\
103	archive_read_support_format_7zip.c		\
104	archive_read_support_format_all.c		\
105	archive_read_support_format_ar.c		\
106	archive_read_support_format_by_code.c		\
107	archive_read_support_format_cab.c		\
108	archive_read_support_format_cpio.c		\
109	archive_read_support_format_empty.c		\
110	archive_read_support_format_iso9660.c		\
111	archive_read_support_format_lha.c		\
112	archive_read_support_format_mtree.c		\
113	archive_read_support_format_rar.c		\
114	archive_read_support_format_rar5.c		\
115	archive_read_support_format_raw.c		\
116	archive_read_support_format_tar.c		\
117	archive_read_support_format_warc.c		\
118	archive_read_support_format_xar.c		\
119	archive_read_support_format_zip.c		\
120	archive_string.c				\
121	archive_string_sprintf.c			\
122	archive_util.c					\
123	archive_version_details.c			\
124	archive_virtual.c				\
125	archive_write.c					\
126	archive_write_add_filter.c			\
127	archive_write_disk_set_standard_lookup.c	\
128	archive_write_disk_posix.c			\
129	archive_write_open_fd.c				\
130	archive_write_open_file.c			\
131	archive_write_open_filename.c			\
132	archive_write_open_memory.c			\
133	archive_write_add_filter_b64encode.c		\
134	archive_write_add_filter_by_name.c		\
135	archive_write_add_filter_bzip2.c		\
136	archive_write_add_filter_compress.c		\
137	archive_write_add_filter_grzip.c		\
138	archive_write_add_filter_gzip.c			\
139	archive_write_add_filter_lrzip.c		\
140	archive_write_add_filter_lz4.c			\
141	archive_write_add_filter_lzop.c			\
142	archive_write_add_filter_none.c			\
143	archive_write_add_filter_program.c		\
144	archive_write_add_filter_uuencode.c		\
145	archive_write_add_filter_xz.c			\
146	archive_write_add_filter_zstd.c			\
147	archive_write_set_format.c			\
148	archive_write_set_format_7zip.c			\
149	archive_write_set_format_ar.c			\
150	archive_write_set_format_by_name.c		\
151	archive_write_set_format_cpio.c			\
152	archive_write_set_format_cpio_newc.c		\
153	archive_write_set_format_filter_by_ext.c	\
154	archive_write_set_format_gnutar.c		\
155	archive_write_set_format_iso9660.c		\
156	archive_write_set_format_mtree.c		\
157	archive_write_set_format_pax.c			\
158	archive_write_set_format_raw.c			\
159	archive_write_set_format_shar.c			\
160	archive_write_set_format_ustar.c		\
161	archive_write_set_format_v7tar.c		\
162	archive_write_set_format_warc.c			\
163	archive_write_set_format_xar.c			\
164	archive_write_set_format_zip.c			\
165	archive_write_set_passphrase.c			\
166	archive_write_set_options.c			\
167	filter_fork_posix.c
168
169# Man pages to be installed.
170MAN=	archive_entry.3					\
171	archive_entry_acl.3				\
172	archive_entry_linkify.3				\
173	archive_entry_misc.3				\
174	archive_entry_paths.3				\
175	archive_entry_perms.3				\
176	archive_entry_stat.3				\
177	archive_entry_time.3				\
178	archive_read.3					\
179	archive_read_data.3				\
180	archive_read_disk.3				\
181	archive_read_extract.3				\
182	archive_read_filter.3				\
183	archive_read_format.3				\
184	archive_read_free.3				\
185	archive_read_header.3				\
186	archive_read_new.3				\
187	archive_read_open.3				\
188	archive_read_set_options.3			\
189	archive_util.3					\
190	archive_write.3					\
191	archive_write_blocksize.3			\
192	archive_write_data.3				\
193	archive_write_disk.3				\
194	archive_write_filter.3				\
195	archive_write_finish_entry.3			\
196	archive_write_format.3				\
197	archive_write_free.3				\
198	archive_write_header.3				\
199	archive_write_new.3				\
200	archive_write_open.3				\
201	archive_write_set_options.3			\
202	cpio.5						\
203	libarchive.3					\
204	libarchive_changes.3				\
205	libarchive_internals.3				\
206	libarchive-formats.5				\
207	tar.5
208
209# Symlink the man pages under each function name.
210MLINKS+=	archive_entry.3 archive_entry_clear.3
211MLINKS+=	archive_entry.3 archive_entry_clone.3
212MLINKS+=	archive_entry.3 archive_entry_free.3
213MLINKS+=	archive_entry.3 archive_entry_new.3
214MLINKS+=	archive_entry_acl.3 archive_entry_acl_add_entry.3
215MLINKS+=	archive_entry_acl.3 archive_entry_acl_add_entry_w.3
216MLINKS+=	archive_entry_acl.3 archive_entry_acl_clear.3
217MLINKS+=	archive_entry_acl.3 archive_entry_acl_count.3
218MLINKS+=	archive_entry_acl.3 archive_entry_acl_next.3
219MLINKS+=	archive_entry_acl.3 archive_entry_acl_next_w.3
220MLINKS+=	archive_entry_acl.3 archive_entry_acl_reset.3
221MLINKS+=	archive_entry_acl.3 archive_entry_acl_text_w.3
222MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver.3
223MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_new.3
224MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_set_strategy.3
225MLINKS+=	archive_entry_linkify.3 archive_entry_linkresolver_free.3
226MLINKS+=	archive_entry_paths.3 archive_entry_copy_hardlink.3
227MLINKS+=	archive_entry_paths.3 archive_entry_copy_hardlink_w.3
228MLINKS+=	archive_entry_paths.3 archive_entry_copy_link.3
229MLINKS+=	archive_entry_paths.3 archive_entry_copy_link_w.3
230MLINKS+=	archive_entry_paths.3 archive_entry_copy_pathname.3
231MLINKS+=	archive_entry_paths.3 archive_entry_copy_pathname_w.3
232MLINKS+=	archive_entry_paths.3 archive_entry_copy_sourcepath.3
233MLINKS+=	archive_entry_paths.3 archive_entry_copy_symlink.3
234MLINKS+=	archive_entry_paths.3 archive_entry_copy_symlink_w.3
235MLINKS+=	archive_entry_paths.3 archive_entry_hardlink.3
236MLINKS+=	archive_entry_paths.3 archive_entry_hardlink_w.3
237MLINKS+=	archive_entry_paths.3 archive_entry_pathname.3
238MLINKS+=	archive_entry_paths.3 archive_entry_pathname_w.3
239MLINKS+=	archive_entry_paths.3 archive_entry_set_hardlink.3
240MLINKS+=	archive_entry_paths.3 archive_entry_set_link.3
241MLINKS+=	archive_entry_paths.3 archive_entry_set_pathname.3
242MLINKS+=	archive_entry_paths.3 archive_entry_set_symlink.3
243MLINKS+=	archive_entry_paths.3 archive_entry_symlink.3
244MLINKS+=	archive_entry_paths.3 archive_entry_symlink_w.3
245MLINKS+=	archive_entry_paths.3 archive_entry_update_symlink_utf8.3
246MLINKS+=	archive_entry_paths.3 archive_entry_update_hardlink_utf8.3
247MLINKS+=	archive_entry_perms.3 archive_entry_copy_fflags_text.3
248MLINKS+=	archive_entry_perms.3 archive_entry_copy_fflags_text_w.3
249MLINKS+=	archive_entry_perms.3 archive_entry_copy_gname.3
250MLINKS+=	archive_entry_perms.3 archive_entry_copy_gname_w.3
251MLINKS+=	archive_entry_perms.3 archive_entry_copy_uname.3
252MLINKS+=	archive_entry_perms.3 archive_entry_copy_uname_w.3
253MLINKS+=	archive_entry_perms.3 archive_entry_fflags.3
254MLINKS+=	archive_entry_perms.3 archive_entry_fflags_text.3
255MLINKS+=	archive_entry_perms.3 archive_entry_gid.3
256MLINKS+=	archive_entry_perms.3 archive_entry_gname.3
257MLINKS+=	archive_entry_perms.3 archive_entry_gname_w.3
258MLINKS+=	archive_entry_perms.3 archive_entry_set_fflags.3
259MLINKS+=	archive_entry_perms.3 archive_entry_set_gid.3
260MLINKS+=	archive_entry_perms.3 archive_entry_set_gname.3
261MLINKS+=	archive_entry_perms.3 archive_entry_perm.3
262MLINKS+=	archive_entry_perms.3 archive_entry_set_perm.3
263MLINKS+=	archive_entry_perms.3 archive_entry_set_uid.3
264MLINKS+=	archive_entry_perms.3 archive_entry_set_uname.3
265MLINKS+=	archive_entry_perms.3 archive_entry_strmode.3
266MLINKS+=	archive_entry_perms.3 archive_entry_uid.3
267MLINKS+=	archive_entry_perms.3 archive_entry_uname.3
268MLINKS+=	archive_entry_perms.3 archive_entry_uname_w.3
269MLINKS+=	archive_entry_perms.3 archive_entry_update_gname_utf8.3
270MLINKS+=	archive_entry_perms.3 archive_entry_update_uname_utf8.3
271MLINKS+=	archive_entry_stat.3 archive_entry_copy_stat.3
272MLINKS+=	archive_entry_stat.3 archive_entry_dev.3
273MLINKS+=	archive_entry_stat.3 archive_entry_dev_is_set.3
274MLINKS+=	archive_entry_stat.3 archive_entry_devmajor.3
275MLINKS+=	archive_entry_stat.3 archive_entry_devminor.3
276MLINKS+=	archive_entry_stat.3 archive_entry_filetype.3
277MLINKS+=	archive_entry_stat.3 archive_entry_ino.3
278MLINKS+=	archive_entry_stat.3 archive_entry_ino64.3
279MLINKS+=	archive_entry_stat.3 archive_entry_ino_is_set.3
280MLINKS+=	archive_entry_stat.3 archive_entry_mode.3
281MLINKS+=	archive_entry_stat.3 archive_entry_nlink.3
282MLINKS+=	archive_entry_stat.3 archive_entry_rdev.3
283MLINKS+=	archive_entry_stat.3 archive_entry_rdevmajor.3
284MLINKS+=	archive_entry_stat.3 archive_entry_rdevminor.3
285MLINKS+=	archive_entry_stat.3 archive_entry_set_dev.3
286MLINKS+=	archive_entry_stat.3 archive_entry_set_devmajor.3
287MLINKS+=	archive_entry_stat.3 archive_entry_set_devminor.3
288MLINKS+=	archive_entry_stat.3 archive_entry_set_filetype.3
289MLINKS+=	archive_entry_stat.3 archive_entry_set_ino.3
290MLINKS+=	archive_entry_stat.3 archive_entry_set_ino64.3
291MLINKS+=	archive_entry_stat.3 archive_entry_set_mode.3
292MLINKS+=	archive_entry_stat.3 archive_entry_set_nlink.3
293MLINKS+=	archive_entry_stat.3 archive_entry_set_rdev.3
294MLINKS+=	archive_entry_stat.3 archive_entry_set_rdevmajor.3
295MLINKS+=	archive_entry_stat.3 archive_entry_set_rdevminor.3
296MLINKS+=	archive_entry_stat.3 archive_entry_set_size.3
297MLINKS+=	archive_entry_stat.3 archive_entry_size.3
298MLINKS+=	archive_entry_stat.3 archive_entry_size_is_set.3
299MLINKS+=	archive_entry_stat.3 archive_entry_unset_size.3
300MLINKS+=	archive_entry_time.3 archive_entry_atime.3
301MLINKS+=	archive_entry_time.3 archive_entry_atime_is_set.3
302MLINKS+=	archive_entry_time.3 archive_entry_atime_nsec.3
303MLINKS+=	archive_entry_time.3 archive_entry_birthtime.3
304MLINKS+=	archive_entry_time.3 archive_entry_birthtime_is_set.3
305MLINKS+=	archive_entry_time.3 archive_entry_birthtime_nsec.3
306MLINKS+=	archive_entry_time.3 archive_entry_ctime.3
307MLINKS+=	archive_entry_time.3 archive_entry_ctime_is_set.3
308MLINKS+=	archive_entry_time.3 archive_entry_ctime_nsec.3
309MLINKS+=	archive_entry_time.3 archive_entry_mtime.3
310MLINKS+=	archive_entry_time.3 archive_entry_mtime_is_set.3
311MLINKS+=	archive_entry_time.3 archive_entry_mtime_nsec.3
312MLINKS+=	archive_entry_time.3 archive_entry_set_atime.3
313MLINKS+=	archive_entry_time.3 archive_entry_set_birthtime.3
314MLINKS+=	archive_entry_time.3 archive_entry_set_ctime.3
315MLINKS+=	archive_entry_time.3 archive_entry_set_mtime.3
316MLINKS+=	archive_entry_time.3 archive_entry_unset_atime.3
317MLINKS+=	archive_entry_time.3 archive_entry_unset_birthtime.3
318MLINKS+=	archive_entry_time.3 archive_entry_unset_ctime.3
319MLINKS+=	archive_entry_time.3 archive_entry_unset_mtime.3
320MLINKS+=	archive_read_data.3 archive_read_data_block.3
321MLINKS+=	archive_read_data.3 archive_read_data_into_fd.3
322MLINKS+=	archive_read_data.3 archive_read_data_skip.3
323MLINKS+=	archive_read_header.3 archive_read_next_header.3
324MLINKS+=	archive_read_header.3 archive_read_next_header2.3
325MLINKS+=	archive_read_extract.3 archive_read_extract2.3
326MLINKS+=	archive_read_extract.3 archive_read_extract_set_progress_callback.3
327MLINKS+=	archive_read_extract.3 archive_read_extract_set_skip_file.3
328MLINKS+=	archive_read_open.3 archive_read_open2.3
329MLINKS+=	archive_read_open.3 archive_read_open_FILE.3
330MLINKS+=	archive_read_open.3 archive_read_open_fd.3
331MLINKS+=	archive_read_open.3 archive_read_open_file.3
332MLINKS+=	archive_read_open.3 archive_read_open_filename.3
333MLINKS+=	archive_read_open.3 archive_read_open_memory.3
334MLINKS+=	archive_read_free.3 archive_read_close.3
335MLINKS+=	archive_read_free.3 archive_read_finish.3
336MLINKS+=	archive_read_filter.3 archive_read_support_filter_all.3
337MLINKS+=	archive_read_filter.3 archive_read_support_filter_bzip2.3
338MLINKS+=	archive_read_filter.3 archive_read_support_filter_compress.3
339MLINKS+=	archive_read_filter.3 archive_read_support_filter_gzip.3
340MLINKS+=	archive_read_filter.3 archive_read_support_filter_lzma.3
341MLINKS+=	archive_read_filter.3 archive_read_support_filter_none.3
342MLINKS+=	archive_read_filter.3 archive_read_support_filter_xz.3
343MLINKS+=	archive_read_filter.3 archive_read_support_filter_program.3
344MLINKS+=	archive_read_filter.3 archive_read_support_filter_program_signature.3
345MLINKS+=	archive_read_format.3 archive_read_support_format_7zip.3
346MLINKS+=	archive_read_format.3 archive_read_support_format_all.3
347MLINKS+=	archive_read_format.3 archive_read_support_format_ar.3
348MLINKS+=	archive_read_format.3 archive_read_support_format_by_code.3
349MLINKS+=	archive_read_format.3 archive_read_support_format_cab.3
350MLINKS+=	archive_read_format.3 archive_read_support_format_cpio.3
351MLINKS+=	archive_read_format.3 archive_read_support_format_empty.3
352MLINKS+=	archive_read_format.3 archive_read_support_format_iso9660.3
353MLINKS+=	archive_read_format.3 archive_read_support_format_lha.3
354MLINKS+=	archive_read_format.3 archive_read_support_format_mtree.3
355MLINKS+=	archive_read_format.3 archive_read_support_format_rar.3
356MLINKS+=	archive_read_format.3 archive_read_support_format_raw.3
357MLINKS+=	archive_read_format.3 archive_read_support_format_tar.3
358MLINKS+=	archive_read_format.3 archive_read_support_format_xar.3
359MLINKS+=	archive_read_format.3 archive_read_support_format_zip.3
360MLINKS+=	archive_read_disk.3 archive_read_disk_entry_from_file.3
361MLINKS+=	archive_read_disk.3 archive_read_disk_gname.3
362MLINKS+=	archive_read_disk.3 archive_read_disk_new.3
363MLINKS+=	archive_read_disk.3 archive_read_disk_set_gname_lookup.3
364MLINKS+=	archive_read_disk.3 archive_read_disk_set_standard_lookup.3
365MLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_hybrid.3
366MLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_logical.3
367MLINKS+=	archive_read_disk.3 archive_read_disk_set_symlink_physical.3
368MLINKS+=	archive_read_disk.3 archive_read_disk_set_uname_lookup.3
369MLINKS+=	archive_read_disk.3 archive_read_disk_uname.3
370MLINKS+=	archive_read_set_options.3 archive_read_set_filter_option.3
371MLINKS+=	archive_read_set_options.3 archive_read_set_format_option.3
372MLINKS+=	archive_read_set_options.3 archive_read_set_option.3
373MLINKS+=	archive_util.3 archive_clear_error.3
374MLINKS+=	archive_util.3 archive_compression.3
375MLINKS+=	archive_util.3 archive_compression_name.3
376MLINKS+=	archive_util.3 archive_copy_error.3
377MLINKS+=	archive_util.3 archive_errno.3
378MLINKS+=	archive_util.3 archive_error_string.3
379MLINKS+=	archive_util.3 archive_file_count.3
380MLINKS+=	archive_util.3 archive_filter_code.3
381MLINKS+=	archive_util.3 archive_filter_count.3
382MLINKS+=	archive_util.3 archive_filter_name.3
383MLINKS+=	archive_util.3 archive_format.3
384MLINKS+=	archive_util.3 archive_format_name.3
385MLINKS+=	archive_util.3 archive_position.3
386MLINKS+=	archive_util.3 archive_set_error.3
387MLINKS+=	archive_write_blocksize.3 archive_write_get_bytes_in_last_block.3
388MLINKS+=	archive_write_blocksize.3 archive_write_get_bytes_per_block.3
389MLINKS+=	archive_write_blocksize.3 archive_write_set_bytes_in_last_block.3
390MLINKS+=	archive_write_blocksize.3 archive_write_set_bytes_per_block.3
391MLINKS+=	archive_write_disk.3 archive_write_data_block.3
392MLINKS+=	archive_write_disk.3 archive_write_disk_new.3
393MLINKS+=	archive_write_disk.3 archive_write_disk_set_group_lookup.3
394MLINKS+=	archive_write_disk.3 archive_write_disk_set_options.3
395MLINKS+=	archive_write_disk.3 archive_write_disk_set_skip_file.3
396MLINKS+=	archive_write_disk.3 archive_write_disk_set_standard_lookup.3
397MLINKS+=	archive_write_disk.3 archive_write_disk_set_user_lookup.3
398MLINKS+=	archive_write_filter.3 archive_write_add_filter_bzip2.3
399MLINKS+=	archive_write_filter.3 archive_write_add_filter_compress.3
400MLINKS+=	archive_write_filter.3 archive_write_add_filter_gzip.3
401MLINKS+=	archive_write_filter.3 archive_write_add_filter_lzip.3
402MLINKS+=	archive_write_filter.3 archive_write_add_filter_lzma.3
403MLINKS+=	archive_write_filter.3 archive_write_add_filter_none.3
404MLINKS+=	archive_write_filter.3 archive_write_add_filter_program.3
405MLINKS+=	archive_write_filter.3 archive_write_add_filter_xz.3
406MLINKS+=	archive_write_format.3 archive_write_set_format_cpio.3
407MLINKS+=	archive_write_format.3 archive_write_set_format_pax.3
408MLINKS+=	archive_write_format.3 archive_write_set_format_pax_restricted.3
409MLINKS+=	archive_write_format.3 archive_write_set_format_shar.3
410MLINKS+=	archive_write_format.3 archive_write_set_format_shar_dump.3
411MLINKS+=	archive_write_format.3 archive_write_set_format_ustar.3
412MLINKS+=	archive_write_free.3 archive_write_close.3
413MLINKS+=	archive_write_free.3 archive_write_fail.3
414MLINKS+=	archive_write_free.3 archive_write_finish.3
415MLINKS+=	archive_write_open.3 archive_write_open_FILE.3
416MLINKS+=	archive_write_open.3 archive_write_open_fd.3
417MLINKS+=	archive_write_open.3 archive_write_open_file.3
418MLINKS+=	archive_write_open.3 archive_write_open_filename.3
419MLINKS+=	archive_write_open.3 archive_write_open_memory.3
420MLINKS+=	archive_write_set_options.3 archive_write_set_filter_option.3
421MLINKS+=	archive_write_set_options.3 archive_write_set_format_option.3
422MLINKS+=	archive_write_set_options.3 archive_write_set_option.3
423MLINKS+=	libarchive.3 archive.3
424
425.if ${MK_TESTS} != "no"
426SUBDIR+=	tests
427.endif
428
429.include <bsd.lib.mk>
430