Merge branch 'vendor/MPFR'
[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_check_magic.c                           \
19         archive_entry.c                                 \
20         archive_entry_copy_stat.c                       \
21         archive_entry_link_resolver.c                   \
22         archive_entry_stat.c                            \
23         archive_entry_strmode.c                         \
24         archive_entry_xattr.c                           \
25         archive_read.c                                  \
26         archive_read_data_into_fd.c                     \
27         archive_read_disk.c                             \
28         archive_read_disk_entry_from_file.c             \
29         archive_read_disk_set_standard_lookup.c         \
30         archive_read_extract.c                          \
31         archive_read_open_fd.c                          \
32         archive_read_open_file.c                        \
33         archive_read_open_filename.c                    \
34         archive_read_open_memory.c                      \
35         archive_read_support_compression_all.c          \
36         archive_read_support_compression_bzip2.c        \
37         archive_read_support_compression_compress.c     \
38         archive_read_support_compression_gzip.c         \
39         archive_read_support_compression_none.c         \
40         archive_read_support_compression_program.c      \
41         archive_read_support_compression_rpm.c          \
42         archive_read_support_compression_uu.c           \
43         archive_read_support_compression_xz.c           \
44         archive_read_support_format_all.c               \
45         archive_read_support_format_ar.c                \
46         archive_read_support_format_cpio.c              \
47         archive_read_support_format_empty.c             \
48         archive_read_support_format_iso9660.c           \
49         archive_read_support_format_mtree.c             \
50         archive_read_support_format_raw.c               \
51         archive_read_support_format_tar.c               \
52         archive_read_support_format_xar.c               \
53         archive_read_support_format_zip.c               \
54         archive_string.c                                \
55         archive_string_sprintf.c                        \
56         archive_util.c                                  \
57         archive_virtual.c                               \
58         archive_write.c                                 \
59         archive_write_disk.c                            \
60         archive_write_disk_set_standard_lookup.c        \
61         archive_write_open_fd.c                         \
62         archive_write_open_file.c                       \
63         archive_write_open_filename.c                   \
64         archive_write_open_memory.c                     \
65         archive_write_set_compression_bzip2.c           \
66         archive_write_set_compression_compress.c        \
67         archive_write_set_compression_gzip.c            \
68         archive_write_set_compression_none.c            \
69         archive_write_set_compression_program.c         \
70         archive_write_set_compression_xz.c              \
71         archive_write_set_format.c                      \
72         archive_write_set_format_ar.c                   \
73         archive_write_set_format_by_name.c              \
74         archive_write_set_format_cpio.c                 \
75         archive_write_set_format_cpio_newc.c            \
76         archive_write_set_format_mtree.c                \
77         archive_write_set_format_pax.c                  \
78         archive_write_set_format_shar.c                 \
79         archive_write_set_format_ustar.c                \
80         archive_write_set_format_zip.c                  \
81         filter_fork.c
82
83 MAN=    archive_entry.3                                 \
84         archive_read.3                                  \
85         archive_read_disk.3                             \
86         archive_util.3                                  \
87         archive_write.3                                 \
88         archive_write_disk.3                            \
89         cpio.5                                          \
90         libarchive.3                                    \
91         libarchive_internals.3                          \
92         libarchive-formats.5                            \
93         mtree.5                                         \
94         tar.5
95
96 MLINKS+=        archive_entry.3 archive_entry_acl_add_entry.3
97 MLINKS+=        archive_entry.3 archive_entry_acl_add_entry_w.3
98 MLINKS+=        archive_entry.3 archive_entry_acl_clear.3
99 MLINKS+=        archive_entry.3 archive_entry_acl_count.3
100 MLINKS+=        archive_entry.3 archive_entry_acl_next.3
101 MLINKS+=        archive_entry.3 archive_entry_acl_next_w.3
102 MLINKS+=        archive_entry.3 archive_entry_acl_reset.3
103 MLINKS+=        archive_entry.3 archive_entry_acl_text_w.3
104 MLINKS+=        archive_entry.3 archive_entry_atime.3
105 MLINKS+=        archive_entry.3 archive_entry_atime_nsec.3
106 MLINKS+=        archive_entry.3 archive_entry_clear.3
107 MLINKS+=        archive_entry.3 archive_entry_clone.3
108 MLINKS+=        archive_entry.3 archive_entry_copy_fflags_text.3
109 MLINKS+=        archive_entry.3 archive_entry_copy_fflags_text_w.3
110 MLINKS+=        archive_entry.3 archive_entry_copy_gname.3
111 MLINKS+=        archive_entry.3 archive_entry_copy_gname_w.3
112 MLINKS+=        archive_entry.3 archive_entry_copy_hardlink.3
113 MLINKS+=        archive_entry.3 archive_entry_copy_hardlink_w.3
114 MLINKS+=        archive_entry.3 archive_entry_copy_link.3
115 MLINKS+=        archive_entry.3 archive_entry_copy_link_w.3
116 MLINKS+=        archive_entry.3 archive_entry_copy_pathname_w.3
117 MLINKS+=        archive_entry.3 archive_entry_copy_sourcepath.3
118 MLINKS+=        archive_entry.3 archive_entry_copy_stat.3
119 MLINKS+=        archive_entry.3 archive_entry_copy_symlink.3
120 MLINKS+=        archive_entry.3 archive_entry_copy_symlink_w.3
121 MLINKS+=        archive_entry.3 archive_entry_copy_uname.3
122 MLINKS+=        archive_entry.3 archive_entry_copy_uname_w.3
123 MLINKS+=        archive_entry.3 archive_entry_dev.3
124 MLINKS+=        archive_entry.3 archive_entry_devmajor.3
125 MLINKS+=        archive_entry.3 archive_entry_devminor.3
126 MLINKS+=        archive_entry.3 archive_entry_filetype.3
127 MLINKS+=        archive_entry.3 archive_entry_fflags.3
128 MLINKS+=        archive_entry.3 archive_entry_fflags_text.3
129 MLINKS+=        archive_entry.3 archive_entry_free.3
130 MLINKS+=        archive_entry.3 archive_entry_gid.3
131 MLINKS+=        archive_entry.3 archive_entry_gname.3
132 MLINKS+=        archive_entry.3 archive_entry_hardlink.3
133 MLINKS+=        archive_entry.3 archive_entry_ino.3
134 MLINKS+=        archive_entry.3 archive_entry_mode.3
135 MLINKS+=        archive_entry.3 archive_entry_mtime.3
136 MLINKS+=        archive_entry.3 archive_entry_mtime_nsec.3
137 MLINKS+=        archive_entry.3 archive_entry_new.3
138 MLINKS+=        archive_entry.3 archive_entry_nlink.3
139 MLINKS+=        archive_entry.3 archive_entry_pathname.3
140 MLINKS+=        archive_entry.3 archive_entry_pathname_w.3
141 MLINKS+=        archive_entry.3 archive_entry_rdev.3
142 MLINKS+=        archive_entry.3 archive_entry_rdevmajor.3
143 MLINKS+=        archive_entry.3 archive_entry_rdevminor.3
144 MLINKS+=        archive_entry.3 archive_entry_set_atime.3
145 MLINKS+=        archive_entry.3 archive_entry_set_ctime.3
146 MLINKS+=        archive_entry.3 archive_entry_set_dev.3
147 MLINKS+=        archive_entry.3 archive_entry_set_devmajor.3
148 MLINKS+=        archive_entry.3 archive_entry_set_devminor.3
149 MLINKS+=        archive_entry.3 archive_entry_set_filetype.3
150 MLINKS+=        archive_entry.3 archive_entry_set_fflags.3
151 MLINKS+=        archive_entry.3 archive_entry_set_gid.3
152 MLINKS+=        archive_entry.3 archive_entry_set_gname.3
153 MLINKS+=        archive_entry.3 archive_entry_set_hardlink.3
154 MLINKS+=        archive_entry.3 archive_entry_set_link.3
155 MLINKS+=        archive_entry.3 archive_entry_set_mode.3
156 MLINKS+=        archive_entry.3 archive_entry_set_mtime.3
157 MLINKS+=        archive_entry.3 archive_entry_set_pathname.3
158 MLINKS+=        archive_entry.3 archive_entry_set_rdevmajor.3
159 MLINKS+=        archive_entry.3 archive_entry_set_rdevminor.3
160 MLINKS+=        archive_entry.3 archive_entry_set_size.3
161 MLINKS+=        archive_entry.3 archive_entry_set_symlink.3
162 MLINKS+=        archive_entry.3 archive_entry_set_uid.3
163 MLINKS+=        archive_entry.3 archive_entry_set_uname.3
164 MLINKS+=        archive_entry.3 archive_entry_size.3
165 MLINKS+=        archive_entry.3 archive_entry_sourcepath.3
166 MLINKS+=        archive_entry.3 archive_entry_stat.3
167 MLINKS+=        archive_entry.3 archive_entry_symlink.3
168 MLINKS+=        archive_entry.3 archive_entry_uid.3
169 MLINKS+=        archive_entry.3 archive_entry_uname.3
170 MLINKS+=        archive_read.3 archive_read_close.3
171 MLINKS+=        archive_read.3 archive_read_data.3
172 MLINKS+=        archive_read.3 archive_read_data_block.3
173 MLINKS+=        archive_read.3 archive_read_data_into_buffer.3
174 MLINKS+=        archive_read.3 archive_read_data_into_fd.3
175 MLINKS+=        archive_read.3 archive_read_data_skip.3
176 MLINKS+=        archive_read.3 archive_read_extract.3
177 MLINKS+=        archive_read.3 archive_read_extract2.3
178 MLINKS+=        archive_read.3 archive_read_extract_set_progress_callback.3
179 MLINKS+=        archive_read.3 archive_read_finish.3
180 MLINKS+=        archive_read.3 archive_read_new.3
181 MLINKS+=        archive_read.3 archive_read_next_header.3
182 MLINKS+=        archive_read.3 archive_read_open.3
183 MLINKS+=        archive_read.3 archive_read_open2.3
184 MLINKS+=        archive_read.3 archive_read_open_FILE.3
185 MLINKS+=        archive_read.3 archive_read_open_fd.3
186 MLINKS+=        archive_read.3 archive_read_open_filename.3
187 MLINKS+=        archive_read.3 archive_read_open_memory.3
188 MLINKS+=        archive_read.3 archive_read_support_compression_all.3
189 MLINKS+=        archive_read.3 archive_read_support_compression_bzip2.3
190 MLINKS+=        archive_read.3 archive_read_support_compression_compress.3
191 MLINKS+=        archive_read.3 archive_read_support_compression_gzip.3
192 MLINKS+=        archive_read.3 archive_read_support_compression_lzma.3
193 MLINKS+=        archive_read.3 archive_read_support_compression_none.3
194 MLINKS+=        archive_read.3 archive_read_support_compression_xz.3
195 MLINKS+=        archive_read.3 archive_read_support_compression_program.3
196 MLINKS+=        archive_read.3 archive_read_support_compression_program_signature.3
197 MLINKS+=        archive_read.3 archive_read_support_format_all.3
198 MLINKS+=        archive_read.3 archive_read_support_format_ar.3
199 MLINKS+=        archive_read.3 archive_read_support_format_cpio.3
200 MLINKS+=        archive_read.3 archive_read_support_format_empty.3
201 MLINKS+=        archive_read.3 archive_read_support_format_iso9660.3
202 MLINKS+=        archive_read.3 archive_read_support_format_mtree.3
203 MLINKS+=        archive_read.3 archive_read_support_format_raw.3
204 MLINKS+=        archive_read.3 archive_read_support_format_tar.3
205 MLINKS+=        archive_read.3 archive_read_support_format_zip.3
206 MLINKS+=        archive_read_disk.3 archive_read_close.3
207 MLINKS+=        archive_read_disk.3 archive_read_disk_entry_from_file.3
208 MLINKS+=        archive_read_disk.3 archive_read_disk_gname.3
209 MLINKS+=        archive_read_disk.3 archive_read_disk_new.3
210 MLINKS+=        archive_read_disk.3 archive_read_disk_set_gname_lookup.3
211 MLINKS+=        archive_read_disk.3 archive_read_disk_set_standard_lookup.3
212 MLINKS+=        archive_read_disk.3 archive_read_disk_set_symlink_hybrid.3
213 MLINKS+=        archive_read_disk.3 archive_read_disk_set_symlink_logical.3
214 MLINKS+=        archive_read_disk.3 archive_read_disk_set_symlink_physical.3
215 MLINKS+=        archive_read_disk.3 archive_read_disk_set_uname_lookup.3
216 MLINKS+=        archive_read_disk.3 archive_read_disk_uname.3
217 MLINKS+=        archive_read_disk.3 archive_read_finish.3
218 MLINKS+=        archive_util.3 archive_clear_error.3
219 MLINKS+=        archive_util.3 archive_compression.3
220 MLINKS+=        archive_util.3 archive_compression_name.3
221 MLINKS+=        archive_util.3 archive_errno.3
222 MLINKS+=        archive_util.3 archive_error_string.3
223 MLINKS+=        archive_util.3 archive_file_count.3
224 MLINKS+=        archive_util.3 archive_format.3
225 MLINKS+=        archive_util.3 archive_format_name.3
226 MLINKS+=        archive_util.3 archive_set_error.3
227 MLINKS+=        archive_write.3 archive_write_close.3
228 MLINKS+=        archive_write.3 archive_write_data.3
229 MLINKS+=        archive_write.3 archive_write_finish.3
230 MLINKS+=        archive_write.3 archive_write_finish_entry.3
231 MLINKS+=        archive_write.3 archive_write_get_bytes_per_block.3
232 MLINKS+=        archive_write.3 archive_write_header.3
233 MLINKS+=        archive_write.3 archive_write_new.3
234 MLINKS+=        archive_write.3 archive_write_open.3
235 MLINKS+=        archive_write.3 archive_write_open_FILE.3
236 MLINKS+=        archive_write.3 archive_write_open_fd.3
237 MLINKS+=        archive_write.3 archive_write_open_filename.3
238 MLINKS+=        archive_write.3 archive_write_open_memory.3
239 MLINKS+=        archive_write.3 archive_write_set_bytes_in_last_block.3
240 MLINKS+=        archive_write.3 archive_write_set_bytes_per_block.3
241 MLINKS+=        archive_write.3 archive_write_set_compression_bzip2.3
242 MLINKS+=        archive_write.3 archive_write_set_compression_compress.3
243 MLINKS+=        archive_write.3 archive_write_set_compression_gzip.3
244 MLINKS+=        archive_write.3 archive_write_set_compression_none.3
245 MLINKS+=        archive_write.3 archive_write_set_compression_program.3
246 MLINKS+=        archive_write.3 archive_write_set_format_cpio.3
247 MLINKS+=        archive_write.3 archive_write_set_format_pax.3
248 MLINKS+=        archive_write.3 archive_write_set_format_pax_restricted.3
249 MLINKS+=        archive_write.3 archive_write_set_format_shar.3
250 MLINKS+=        archive_write.3 archive_write_set_format_shar_binary.3
251 MLINKS+=        archive_write.3 archive_write_set_format_ustar.3
252 MLINKS+=        archive_write_disk.3 archive_write_disk_close.3
253 MLINKS+=        archive_write_disk.3 archive_write_disk_data.3
254 MLINKS+=        archive_write_disk.3 archive_write_disk_finish.3
255 MLINKS+=        archive_write_disk.3 archive_write_disk_finish_entry.3
256 MLINKS+=        archive_write_disk.3 archive_write_disk_header.3
257 MLINKS+=        archive_write_disk.3 archive_write_disk_new.3
258 MLINKS+=        archive_write_disk.3 archive_write_disk_set_group_lookup.3
259 MLINKS+=        archive_write_disk.3 archive_write_disk_set_options.3
260 MLINKS+=        archive_write_disk.3 archive_write_disk_set_skip_file.3
261 MLINKS+=        archive_write_disk.3 archive_write_disk_set_standard_lookup.3
262 MLINKS+=        archive_write_disk.3 archive_write_disk_set_user_lookup.3
263 MLINKS+=        libarchive.3 archive.3
264
265 .include <bsd.lib.mk>