Makefile revision 182097
1# $FreeBSD: head/lib/libarchive/Makefile 182097 2008-08-24 05:42:22Z kientzle $
2
3LIB=	archive
4DPADD=	${LIBBZ2} ${LIBZ}
5LDADD=	-lbz2 -lz
6
7# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
8# It has no real relation to the libarchive version number.
9SHLIB_MAJOR= 4
10
11CFLAGS+=	-DPLATFORM_CONFIG_H=\"config_freebsd.h\"
12CFLAGS+=	-I${.OBJDIR}
13
14WARNS?=	6
15
16# Headers to be installed in /usr/include
17INCS=	archive.h archive_entry.h
18
19# Sources to be compiled.
20SRCS=	archive_check_magic.c				\
21	archive_entry.c					\
22	archive_entry_copy_stat.c			\
23	archive_entry_stat.c				\
24	archive_entry_strmode.c				\
25	archive_entry_link_resolver.c			\
26	archive_read.c					\
27	archive_read_data_into_fd.c			\
28	archive_read_extract.c				\
29	archive_read_open_fd.c				\
30	archive_read_open_file.c			\
31	archive_read_open_filename.c			\
32	archive_read_open_memory.c			\
33	archive_read_support_compression_all.c		\
34	archive_read_support_compression_bzip2.c	\
35	archive_read_support_compression_compress.c	\
36	archive_read_support_compression_gzip.c		\
37	archive_read_support_compression_none.c		\
38	archive_read_support_compression_program.c	\
39	archive_read_support_format_all.c		\
40	archive_read_support_format_ar.c		\
41	archive_read_support_format_cpio.c		\
42	archive_read_support_format_empty.c		\
43	archive_read_support_format_iso9660.c		\
44	archive_read_support_format_mtree.c		\
45	archive_read_support_format_tar.c		\
46	archive_read_support_format_zip.c		\
47	archive_string.c				\
48	archive_string_sprintf.c			\
49	archive_util.c					\
50	archive_virtual.c				\
51	archive_write.c					\
52	archive_write_disk.c				\
53	archive_write_disk_set_standard_lookup.c	\
54	archive_write_open_fd.c				\
55	archive_write_open_file.c			\
56	archive_write_open_filename.c			\
57	archive_write_open_memory.c			\
58	archive_write_set_compression_bzip2.c		\
59	archive_write_set_compression_compress.c	\
60	archive_write_set_compression_gzip.c		\
61	archive_write_set_compression_none.c		\
62	archive_write_set_compression_program.c		\
63	archive_write_set_format.c			\
64	archive_write_set_format_ar.c			\
65	archive_write_set_format_by_name.c		\
66	archive_write_set_format_cpio.c			\
67	archive_write_set_format_cpio_newc.c		\
68	archive_write_set_format_pax.c			\
69	archive_write_set_format_shar.c			\
70	archive_write_set_format_ustar.c		\
71	filter_fork.c
72
73# Man pages to be installed.
74MAN=	archive_entry.3					\
75	archive_read.3					\
76	archive_util.3					\
77	archive_write.3					\
78	archive_write_disk.3				\
79	cpio.5						\
80	libarchive.3					\
81	libarchive-formats.5				\
82	tar.5
83
84# Symlink the man pages under each function name.
85MLINKS+=	archive_entry.3 archive_entry_acl_add_entry.3
86MLINKS+=	archive_entry.3 archive_entry_acl_add_entry_w.3
87MLINKS+=	archive_entry.3 archive_entry_acl_clear.3
88MLINKS+=	archive_entry.3 archive_entry_acl_count.3
89MLINKS+=	archive_entry.3 archive_entry_acl_next.3
90MLINKS+=	archive_entry.3 archive_entry_acl_next_w.3
91MLINKS+=	archive_entry.3 archive_entry_acl_reset.3
92MLINKS+=	archive_entry.3 archive_entry_acl_text_w.3
93MLINKS+=	archive_entry.3 archive_entry_clear.3
94MLINKS+=	archive_entry.3 archive_entry_clone.3
95MLINKS+=	archive_entry.3 archive_entry_copy_fflags_text.3
96MLINKS+=	archive_entry.3 archive_entry_copy_fflags_text_w.3
97MLINKS+=	archive_entry.3 archive_entry_copy_gname.3
98MLINKS+=	archive_entry.3 archive_entry_copy_gname_w.3
99MLINKS+=	archive_entry.3 archive_entry_copy_hardlink_w.3
100MLINKS+=	archive_entry.3 archive_entry_copy_link.3
101MLINKS+=	archive_entry.3 archive_entry_copy_link_w.3
102MLINKS+=	archive_entry.3 archive_entry_copy_pathname_w.3
103MLINKS+=	archive_entry.3 archive_entry_copy_stat.3
104MLINKS+=	archive_entry.3 archive_entry_copy_symlink_w.3
105MLINKS+=	archive_entry.3 archive_entry_copy_uname.3
106MLINKS+=	archive_entry.3 archive_entry_copy_uname_w.3
107MLINKS+=	archive_entry.3 archive_entry_dev.3
108MLINKS+=	archive_entry.3 archive_entry_devmajor.3
109MLINKS+=	archive_entry.3 archive_entry_devminor.3
110MLINKS+=	archive_entry.3 archive_entry_filetype.3
111MLINKS+=	archive_entry.3 archive_entry_fflags.3
112MLINKS+=	archive_entry.3 archive_entry_fflags_text.3
113MLINKS+=	archive_entry.3 archive_entry_free.3
114MLINKS+=	archive_entry.3 archive_entry_gid.3
115MLINKS+=	archive_entry.3 archive_entry_gname.3
116MLINKS+=	archive_entry.3 archive_entry_gname_w.3
117MLINKS+=	archive_entry.3 archive_entry_hardlink.3
118MLINKS+=	archive_entry.3 archive_entry_ino.3
119MLINKS+=	archive_entry.3 archive_entry_mode.3
120MLINKS+=	archive_entry.3 archive_entry_mtime.3
121MLINKS+=	archive_entry.3 archive_entry_mtime_nsec.3
122MLINKS+=	archive_entry.3 archive_entry_nlink.3
123MLINKS+=	archive_entry.3 archive_entry_new.3
124MLINKS+=	archive_entry.3 archive_entry_pathname.3
125MLINKS+=	archive_entry.3 archive_entry_pathname_w.3
126MLINKS+=	archive_entry.3 archive_entry_rdev.3
127MLINKS+=	archive_entry.3 archive_entry_rdevmajor.3
128MLINKS+=	archive_entry.3 archive_entry_rdevminor.3
129MLINKS+=	archive_entry.3 archive_entry_set_atime.3
130MLINKS+=	archive_entry.3 archive_entry_set_ctime.3
131MLINKS+=	archive_entry.3 archive_entry_set_dev.3
132MLINKS+=	archive_entry.3 archive_entry_set_devmajor.3
133MLINKS+=	archive_entry.3 archive_entry_set_devminor.3
134MLINKS+=	archive_entry.3 archive_entry_set_fflags.3
135MLINKS+=	archive_entry.3 archive_entry_set_gid.3
136MLINKS+=	archive_entry.3 archive_entry_set_gname.3
137MLINKS+=	archive_entry.3 archive_entry_set_hardlink.3
138MLINKS+=	archive_entry.3 archive_entry_set_link.3
139MLINKS+=	archive_entry.3 archive_entry_set_mode.3
140MLINKS+=	archive_entry.3 archive_entry_set_mtime.3
141MLINKS+=	archive_entry.3 archive_entry_set_nlink.3
142MLINKS+=	archive_entry.3 archive_entry_set_pathname.3
143MLINKS+=	archive_entry.3 archive_entry_set_rdev.3
144MLINKS+=	archive_entry.3 archive_entry_set_rdevmajor.3
145MLINKS+=	archive_entry.3 archive_entry_set_rdevminor.3
146MLINKS+=	archive_entry.3 archive_entry_set_size.3
147MLINKS+=	archive_entry.3 archive_entry_set_symlink.3
148MLINKS+=	archive_entry.3 archive_entry_set_uid.3
149MLINKS+=	archive_entry.3 archive_entry_set_uname.3
150MLINKS+=	archive_entry.3 archive_entry_size.3
151MLINKS+=	archive_entry.3 archive_entry_stat.3
152MLINKS+=	archive_entry.3 archive_entry_symlink.3
153MLINKS+=	archive_entry.3 archive_entry_uid.3
154MLINKS+=	archive_entry.3 archive_entry_uname.3
155MLINKS+=	archive_entry.3 archive_entry_uname_w.3
156MLINKS+=	archive_read.3 archive_read_data.3
157MLINKS+=	archive_read.3 archive_read_data_block.3
158MLINKS+=	archive_read.3 archive_read_data_into_buffer.3
159MLINKS+=	archive_read.3 archive_read_data_into_fd.3
160MLINKS+=	archive_read.3 archive_read_data_skip.3
161MLINKS+=	archive_read.3 archive_read_extract.3
162MLINKS+=	archive_read.3 archive_read_extract_set_progress_callback.3
163MLINKS+=	archive_read.3 archive_read_extract_set_skip_file.3
164MLINKS+=	archive_read.3 archive_read_finish.3
165MLINKS+=	archive_read.3 archive_read_new.3
166MLINKS+=	archive_read.3 archive_read_next_header.3
167MLINKS+=	archive_read.3 archive_read_open.3
168MLINKS+=	archive_read.3 archive_read_open2.3
169MLINKS+=	archive_read.3 archive_read_open_FILE.3
170MLINKS+=	archive_read.3 archive_read_open_fd.3
171MLINKS+=	archive_read.3 archive_read_open_file.3
172MLINKS+=	archive_read.3 archive_read_open_filename.3
173MLINKS+=	archive_read.3 archive_read_open_memory.3
174MLINKS+=	archive_read.3 archive_read_support_compression_all.3
175MLINKS+=	archive_read.3 archive_read_support_compression_bzip2.3
176MLINKS+=	archive_read.3 archive_read_support_compression_compress.3
177MLINKS+=	archive_read.3 archive_read_support_compression_gzip.3
178MLINKS+=	archive_read.3 archive_read_support_compression_none.3
179MLINKS+=	archive_read.3 archive_read_support_compression_program.3
180MLINKS+=	archive_read.3 archive_read_support_format_all.3
181MLINKS+=	archive_read.3 archive_read_support_format_cpio.3
182MLINKS+=	archive_read.3 archive_read_support_format_iso9660.3
183MLINKS+=	archive_read.3 archive_read_support_format_tar.3
184MLINKS+=	archive_read.3 archive_read_support_format_zip.3
185MLINKS+=	archive_util.3 archive_clear_error.3
186MLINKS+=	archive_util.3 archive_compression.3
187MLINKS+=	archive_util.3 archive_compression_name.3
188MLINKS+=	archive_util.3 archive_errno.3
189MLINKS+=	archive_util.3 archive_error_string.3
190MLINKS+=	archive_util.3 archive_format.3
191MLINKS+=	archive_util.3 archive_format_name.3
192MLINKS+=	archive_util.3 archive_set_error.3
193MLINKS+=	archive_write.3 archive_write_close.3
194MLINKS+=	archive_write.3 archive_write_data.3
195MLINKS+=	archive_write.3 archive_write_finish.3
196MLINKS+=	archive_write.3 archive_write_finish_entry.3
197MLINKS+=	archive_write.3 archive_write_get_bytes_in_last_block.3
198MLINKS+=	archive_write.3 archive_write_get_bytes_per_block.3
199MLINKS+=	archive_write.3 archive_write_header.3
200MLINKS+=	archive_write.3 archive_write_new.3
201MLINKS+=	archive_write.3 archive_write_open.3
202MLINKS+=	archive_write.3 archive_write_open_FILE.3
203MLINKS+=	archive_write.3 archive_write_open_fd.3
204MLINKS+=	archive_write.3 archive_write_open_file.3
205MLINKS+=	archive_write.3 archive_write_open_filename.3
206MLINKS+=	archive_write.3 archive_write_open_memory.3
207MLINKS+=	archive_write.3 archive_write_set_bytes_in_last_block.3
208MLINKS+=	archive_write.3 archive_write_set_bytes_per_block.3
209MLINKS+=	archive_write.3 archive_write_set_callbacks.3
210MLINKS+=	archive_write.3 archive_write_set_compression_bzip2.3
211MLINKS+=	archive_write.3 archive_write_set_compression_compress.3
212MLINKS+=	archive_write.3 archive_write_set_compression_gzip.3
213MLINKS+=	archive_write.3 archive_write_set_compression_none.3
214MLINKS+=	archive_write.3 archive_write_set_compression_program.3
215MLINKS+=	archive_write.3 archive_write_set_format_pax.3
216MLINKS+=	archive_write.3 archive_write_set_format_shar.3
217MLINKS+=	archive_write.3 archive_write_set_format_ustar.3
218MLINKS+=	archive_write_disk.3 archive_write_disk_new.3
219MLINKS+=	archive_write_disk.3 archive_write_disk_set_group_lookup.3
220MLINKS+=	archive_write_disk.3 archive_write_disk_set_options.3
221MLINKS+=	archive_write_disk.3 archive_write_disk_set_skip_file.3
222MLINKS+=	archive_write_disk.3 archive_write_disk_set_standard_lookup.3
223MLINKS+=	archive_write_disk.3 archive_write_disk_set_user_lookup.3
224MLINKS+=	libarchive.3 archive.3
225
226.PHONY: check test
227check test:
228	cd ${.CURDIR}/test && make test
229
230myclean:
231	rm -f ${CLEANFILES}
232	cd ${.CURDIR}/test && make clean
233
234.include <bsd.lib.mk>
235