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