4b42db5e603eade09007f7df8af70f57117dd82d
[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 WARNS?= 2
12
13 DPADD=  ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ}
14 LDADD=  -lbz2 -llzma -lmd -lz
15
16 INCS=   archive.h archive_entry.h
17
18 SRCS=   archive_acl.c                                   \
19         archive_check_magic.c                           \
20         archive_crypto.c                                \
21         archive_entry.c                                 \
22         archive_entry_copy_stat.c                       \
23         archive_entry_link_resolver.c                   \
24         archive_entry_sparse.c                          \
25         archive_entry_stat.c                            \
26         archive_entry_strmode.c                         \
27         archive_entry_xattr.c                           \
28         archive_options.c                               \
29         archive_ppmd7.c                                 \
30         archive_rb.c                                    \
31         archive_read.c                                  \
32         archive_read_data_into_fd.c                     \
33         archive_read_disk_entry_from_file.c             \
34         archive_read_disk_posix.c                       \
35         archive_read_disk_set_standard_lookup.c         \
36         archive_read_extract.c                          \
37         archive_read_open_fd.c                          \
38         archive_read_open_file.c                        \
39         archive_read_open_filename.c                    \
40         archive_read_open_memory.c                      \
41         archive_read_set_options.c                      \
42         archive_read_support_filter_all.c               \
43         archive_read_support_filter_bzip2.c             \
44         archive_read_support_filter_compress.c          \
45         archive_read_support_filter_gzip.c              \
46         archive_read_support_filter_none.c              \
47         archive_read_support_filter_program.c           \
48         archive_read_support_filter_rpm.c               \
49         archive_read_support_filter_uu.c                \
50         archive_read_support_filter_xz.c                \
51         archive_read_support_format_7zip.c              \
52         archive_read_support_format_all.c               \
53         archive_read_support_format_ar.c                \
54         archive_read_support_format_by_code.c           \
55         archive_read_support_format_cab.c               \
56         archive_read_support_format_cpio.c              \
57         archive_read_support_format_empty.c             \
58         archive_read_support_format_iso9660.c           \
59         archive_read_support_format_lha.c               \
60         archive_read_support_format_mtree.c             \
61         archive_read_support_format_rar.c               \
62         archive_read_support_format_raw.c               \
63         archive_read_support_format_tar.c               \
64         archive_read_support_format_xar.c               \
65         archive_read_support_format_zip.c               \
66         archive_string.c                                \
67         archive_string_sprintf.c                        \
68         archive_util.c                                  \
69         archive_virtual.c                               \
70         archive_write.c                                 \
71         archive_write_disk_posix.c                      \
72         archive_write_disk_set_standard_lookup.c        \
73         archive_write_open_fd.c                         \
74         archive_write_open_file.c                       \
75         archive_write_open_filename.c                   \
76         archive_write_open_memory.c                     \
77         archive_write_add_filter_bzip2.c                \
78         archive_write_add_filter_compress.c             \
79         archive_write_add_filter_gzip.c                 \
80         archive_write_add_filter_none.c                 \
81         archive_write_add_filter_program.c              \
82         archive_write_add_filter_xz.c                   \
83         archive_write_set_format.c                      \
84         archive_write_set_format_7zip.c                 \
85         archive_write_set_format_ar.c                   \
86         archive_write_set_format_by_name.c              \
87         archive_write_set_format_cpio.c                 \
88         archive_write_set_format_cpio_newc.c            \
89         archive_write_set_format_iso9660.c              \
90         archive_write_set_format_mtree.c                \
91         archive_write_set_format_pax.c                  \
92         archive_write_set_format_shar.c                 \
93         archive_write_set_format_ustar.c                \
94         archive_write_set_format_gnutar.c               \
95         archive_write_set_format_xar.c                  \
96         archive_write_set_format_zip.c                  \
97         archive_write_set_options.c                     \
98         filter_fork.c
99
100 MAN=    archive_entry.3                                 \
101         archive_entry_acl.3                             \
102         archive_entry_linkify.3                         \
103         archive_entry_paths.3                           \
104         archive_entry_perms.3                           \
105         archive_entry_stat.3                            \
106         archive_entry_time.3                            \
107         archive_read.3                                  \
108         archive_read_disk.3                             \
109         archive_read_set_options.3                      \
110         archive_util.3                                  \
111         archive_write.3                                 \
112         archive_write_disk.3                            \
113         archive_write_set_options.3                     \
114         cpio.5                                          \
115         libarchive-formats.5                            \
116         libarchive.3                                    \
117         libarchive_internals.3                          \
118         mtree.5                                         \
119         tar.5
120
121 MLINKS= archive_entry.3 archive_entry_clear.3 \
122         archive_entry.3 archive_entry_clone.3 \
123         archive_entry.3 archive_entry_free.3 \
124         archive_entry.3 archive_entry_new.3 \
125         archive_entry_acl.3 archive_entry_acl_add_entry.3 \
126         archive_entry_acl.3 archive_entry_acl_add_entry_w.3 \
127         archive_entry_acl.3 archive_entry_acl_clear.3 \
128         archive_entry_acl.3 archive_entry_acl_count.3 \
129         archive_entry_acl.3 archive_entry_acl_next.3 \
130         archive_entry_acl.3 archive_entry_acl_next_w.3 \
131         archive_entry_acl.3 archive_entry_acl_reset.3 \
132         archive_entry_acl.3 archive_entry_acl_text_w.3 \
133         archive_entry_linkify.3 archive_entry_linkresolver.3 \
134         archive_entry_linkify.3 archive_entry_linkresolver_new.3 \
135         archive_entry_linkify.3 archive_entry_linkresolver_set_strategy.3 \
136         archive_entry_linkify.3 archive_entry_linkresolver_free.3 \
137         archive_entry_paths.3 archive_entry_hardlink.3 \
138         archive_entry_paths.3 archive_entry_hardlink_w.3 \
139         archive_entry_paths.3 archive_entry_set_hardlink.3 \
140         archive_entry_paths.3 archive_entry_copy_hardlink.3 \
141         archive_entry_paths.3 archive_entry_copy_hardlink_w.3 \
142         archive_entry_paths.3 archive_entry_update_hardlink_utf8.3 \
143         archive_entry_paths.3 archive_entry_set_link.3 \
144         archive_entry_paths.3 archive_entry_copy_link.3 \
145         archive_entry_paths.3 archive_entry_copy_link_w.3 \
146         archive_entry_paths.3 archive_entry_update_link_utf8.3 \
147         archive_entry_paths.3 archive_entry_pathname.3 \
148         archive_entry_paths.3 archive_entry_pathname_w.3 \
149         archive_entry_paths.3 archive_entry_set_pathname.3 \
150         archive_entry_paths.3 archive_entry_copy_pathname.3 \
151         archive_entry_paths.3 archive_entry_copy_pathname_w.3 \
152         archive_entry_paths.3 archive_entry_update_pathname_utf8.3 \
153         archive_entry_paths.3 archive_entry_sourcepath.3 \
154         archive_entry_paths.3 archive_entry_copy_sourcepath.3 \
155         archive_entry_paths.3 archive_entry_symlink.3 \
156         archive_entry_paths.3 archive_entry_symlink_w.3 \
157         archive_entry_paths.3 archive_entry_set_symlink.3 \
158         archive_entry_paths.3 archive_entry_copy_symlink.3 \
159         archive_entry_paths.3 archive_entry_copy_symlink_w.3 \
160         archive_entry_paths.3 archive_entry_update_symlink_utf8.3 \
161         archive_entry_perms.3 archive_entry_gid.3 \
162         archive_entry_perms.3 archive_entry_set_gid.3 \
163         archive_entry_perms.3 archive_entry_uid.3 \
164         archive_entry_perms.3 archive_entry_set_uid.3 \
165         archive_entry_perms.3 archive_entry_perm.3 \
166         archive_entry_perms.3 archive_entry_set_perm.3 \
167         archive_entry_perms.3 archive_entry_strmode.3 \
168         archive_entry_perms.3 archive_entry_uname.3 \
169         archive_entry_perms.3 archive_entry_uname_w.3 \
170         archive_entry_perms.3 archive_entry_set_uname.3 \
171         archive_entry_perms.3 archive_entry_copy_uname.3 \
172         archive_entry_perms.3 archive_entry_copy_uname_w.3 \
173         archive_entry_perms.3 archive_entry_update_uname_utf8.3 \
174         archive_entry_perms.3 archive_entry_gname.3 \
175         archive_entry_perms.3 archive_entry_gname_w.3 \
176         archive_entry_perms.3 archive_entry_set_gname.3 \
177         archive_entry_perms.3 archive_entry_copy_gname.3 \
178         archive_entry_perms.3 archive_entry_copy_gname_w.3 \
179         archive_entry_perms.3 archive_entry_update_gname_utf8.3 \
180         archive_entry_perms.3 archive_entry_fflags.3 \
181         archive_entry_perms.3 archive_entry_fflags_text.3 \
182         archive_entry_perms.3 archive_entry_set_fflags.3 \
183         archive_entry_perms.3 archive_entry_copy_fflags_text.3 \
184         archive_entry_perms.3 archive_entry_copy_fflags_text_w.3 \
185         archive_entry_stat.3 archive_entry_copy_stat.3 \
186         archive_entry_stat.3 archive_entry_filetype.3 \
187         archive_entry_stat.3 archive_entry_set_filetype.3 \
188         archive_entry_stat.3 archive_entry_mode.3 \
189         archive_entry_stat.3 archive_entry_set_mode.3 \
190         archive_entry_stat.3 archive_entry_size.3 \
191         archive_entry_stat.3 archive_entry_size_is_set.3 \
192         archive_entry_stat.3 archive_entry_set_size.3 \
193         archive_entry_stat.3 archive_entry_unset_size.3 \
194         archive_entry_stat.3 archive_entry_dev.3 \
195         archive_entry_stat.3 archive_entry_set_dev.3 \
196         archive_entry_stat.3 archive_entry_dev_is_set.3 \
197         archive_entry_stat.3 archive_entry_devmajor.3 \
198         archive_entry_stat.3 archive_entry_set_devmajor.3 \
199         archive_entry_stat.3 archive_entry_devminor.3 \
200         archive_entry_stat.3 archive_entry_set_devminor.3 \
201         archive_entry_stat.3 archive_entry_ino.3 \
202         archive_entry_stat.3 archive_entry_set_ino.3 \
203         archive_entry_stat.3 archive_entry_ino_is_set.3 \
204         archive_entry_stat.3 archive_entry_ino64.3 \
205         archive_entry_stat.3 archive_entry_set_ino64.3 \
206         archive_entry_stat.3 archive_entry_nlink.3 \
207         archive_entry_stat.3 archive_entry_rdev.3 \
208         archive_entry_stat.3 archive_entry_set_rdev.3 \
209         archive_entry_stat.3 archive_entry_rdevmajor.3 \
210         archive_entry_stat.3 archive_entry_set_rdevmajor.3 \
211         archive_entry_stat.3 archive_entry_rdevminor.3 \
212         archive_entry_stat.3 archive_entry_set_rdevminor.3 \
213         archive_entry_time.3 archive_entry_atime.3 \
214         archive_entry_time.3 archive_entry_atime_nsec.3 \
215         archive_entry_time.3 archive_entry_atime_is_set.3 \
216         archive_entry_time.3 archive_entry_set_atime.3 \
217         archive_entry_time.3 archive_entry_unset_atime.3 \
218         archive_entry_time.3 archive_entry_birthtime.3 \
219         archive_entry_time.3 archive_entry_birthtime_nsec.3 \
220         archive_entry_time.3 archive_entry_birthtime_is_set.3 \
221         archive_entry_time.3 archive_entry_set_birthtime.3 \
222         archive_entry_time.3 archive_entry_unset_birthtime.3 \
223         archive_entry_time.3 archive_entry_ctime.3 \
224         archive_entry_time.3 archive_entry_ctime_nsec.3 \
225         archive_entry_time.3 archive_entry_ctime_is_set.3 \
226         archive_entry_time.3 archive_entry_set_ctime.3 \
227         archive_entry_time.3 archive_entry_unset_ctime.3 \
228         archive_entry_time.3 archive_entry_mtime.3 \
229         archive_entry_time.3 archive_entry_mtime_nsec.3 \
230         archive_entry_time.3 archive_entry_mtime_is_set.3 \
231         archive_entry_time.3 archive_entry_set_mtime.3 \
232         archive_entry_time.3 archive_entry_unset_mtime.3 \
233         archive_read_disk.3 archive_read_disk_new.3 \
234         archive_read_disk.3 archive_read_disk_set_symlink_logical.3 \
235         archive_read_disk.3 archive_read_disk_set_symlink_physical.3 \
236         archive_read_disk.3 archive_read_disk_set_symlink_hybrid.3 \
237         archive_read_disk.3 archive_read_disk_entry_from_file.3 \
238         archive_read_disk.3 archive_read_disk_gname.3 \
239         archive_read_disk.3 archive_read_disk_uname.3 \
240         archive_read_disk.3 archive_read_disk_set_uname_lookup.3 \
241         archive_read_disk.3 archive_read_disk_set_gname_lookup.3 \
242         archive_read_disk.3 archive_read_disk_set_standard_lookup.3 \
243         archive_read_disk.3 archive_read_close.3 \
244         archive_read_disk.3 archive_read_finish.3 \
245         archive_read_disk.3 archive_read_free.3 \
246         archive_read_set_options.3 archive_read_set_filter_option.3 \
247         archive_read_set_options.3 archive_read_set_format_option.3 \
248         archive_read_set_options.3 archive_read_set_option.3 \
249         archive_util.3 archive_clear_error.3 \
250         archive_util.3 archive_compression.3 \
251         archive_util.3 archive_compression_name.3 \
252         archive_util.3 archive_copy_error.3 \
253         archive_util.3 archive_errno.3 \
254         archive_util.3 archive_error_string.3 \
255         archive_util.3 archive_file_count.3 \
256         archive_util.3 archive_filter_code.3 \
257         archive_util.3 archive_filter_count.3 \
258         archive_util.3 archive_filter_name.3 \
259         archive_util.3 archive_format.3 \
260         archive_util.3 archive_format_name.3 \
261         archive_util.3 archive_position.3 \
262         archive_util.3 archive_set_error.3 \
263         archive_write_disk.3 archive_write_disk_new.3 \
264         archive_write_disk.3 archive_write_disk_set_options.3 \
265         archive_write_disk.3 archive_write_disk_set_skip_file.3 \
266         archive_write_disk.3 archive_write_disk_set_group_lookup.3 \
267         archive_write_disk.3 archive_write_disk_set_standard_lookup.3 \
268         archive_write_disk.3 archive_write_disk_set_user_lookup.3 \
269         archive_write_disk.3 archive_write_header.3 \
270         archive_write_disk.3 archive_write_data.3 \
271         archive_write_disk.3 archive_write_data_block.3 \
272         archive_write_disk.3 archive_write_finish_entry.3 \
273         archive_write_disk.3 archive_write_close.3 \
274         archive_write_disk.3 archive_write_finish.3 \
275         archive_write_disk.3 archive_write_free.3 \
276         archive_write_set_options.3 archive_write_set_filter_option.3 \
277         archive_write_set_options.3 archive_write_set_format_option.3 \
278         archive_write_set_options.3 archive_write_set_option.3
279
280
281 .include <bsd.lib.mk>