Makefile revision 164448
11558Srgrimes# $FreeBSD: head/lib/libarchive/Makefile 164448 2006-11-20 16:48:04Z kientzle $ 21558Srgrimes 31558SrgrimesLIB= archive 41558SrgrimesDPADD= ${LIBBZ2} ${LIBZ} 51558SrgrimesLDADD= -lbz2 -lz 61558Srgrimes 71558Srgrimes# The libarchive version stamp. 81558Srgrimes# Version is three numbers: 91558Srgrimes# Major: Bumped ONLY when API/ABI breakage happens. 101558Srgrimes# Minor: Bumped when significant new features are added (see SHLIB_MAJOR) 111558Srgrimes# Revision: Bumped on any notable change 121558SrgrimesVERSION= 1.2.53 131558SrgrimesARCHIVE_API_MAJOR!= echo ${VERSION} | sed -e 's/\..*//' 141558SrgrimesARCHIVE_API_MINOR!= echo ${VERSION} | sed -e 's/[0-9]*\.//' | sed -e 's/\..*//' 151558Srgrimes 161558Srgrimes# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system. 171558Srgrimes# It has no real relation to the version number above. 181558SrgrimesSHLIB_MAJOR= 3 191558Srgrimes 201558SrgrimesCFLAGS+= -DPACKAGE_NAME=\"lib${LIB}\" 211558SrgrimesCFLAGS+= -DPACKAGE_VERSION=\"${VERSION}\" 221558SrgrimesCFLAGS+= -I${.OBJDIR} 231558Srgrimes 241558Srgrimes# FreeBSD/arm has some limitations. 251558Srgrimes.if ${MACHINE_ARCH} == "arm" 261558SrgrimesWARNS?= 3 271558Srgrimes.else 281558SrgrimesWARNS?= 6 291558Srgrimes.endif 301558Srgrimes 311558Srgrimes# Headers to be installed in /usr/include 321558SrgrimesINCS= archive.h archive_entry.h 331558Srgrimes 341558Srgrimes# Build archive.h from archive.h.in by substituting version information. 351558Srgrimes# Note: FreeBSD has inttypes.h, so enable that include in archive.h.in 3613171Swollmanarchive.h: archive.h.in Makefile 371558Srgrimes cat ${.CURDIR}/archive.h.in | \ 381558Srgrimes sed 's/@VERSION@/${VERSION}/g' | \ 391558Srgrimes sed 's/@SHLIB_MAJOR@/${SHLIB_MAJOR}/g' | \ 401558Srgrimes sed 's/@ARCHIVE_API_MAJOR@/${ARCHIVE_API_MAJOR}/g' | \ 411558Srgrimes sed 's/@ARCHIVE_API_MINOR@/${ARCHIVE_API_MINOR}/g' | \ 4213171Swollman sed 's|@ARCHIVE_H_INCLUDE_INTTYPES_H@|#include <inttypes.h> /* For int64_t */|g' | \ 431558Srgrimes cat > archive.h 4413171Swollman 4513171Swollman# archive.h needs to be cleaned 4617265SjulianCLEANFILES+= archive.h 471558Srgrimes 481558Srgrimes# Sources to be compiled. 491558SrgrimesSRCS= archive.h \ 501558Srgrimes archive_check_magic.c \ 511558Srgrimes archive_entry.c \ 521558Srgrimes archive_read.c \ 531558Srgrimes archive_read_data_into_buffer.c \ 541558Srgrimes archive_read_data_into_fd.c \ 551558Srgrimes archive_read_extract.c \ 561558Srgrimes archive_read_open_fd.c \ 571558Srgrimes archive_read_open_filename.c \ 581558Srgrimes archive_read_support_compression_all.c \ 591558Srgrimes archive_read_support_compression_bzip2.c \ 6017046Sjulian archive_read_support_compression_compress.c \ 6114092Swollman archive_read_support_compression_gzip.c \ 621558Srgrimes archive_read_support_compression_none.c \ 6314092Swollman archive_read_support_format_all.c \ 6413940Swollman archive_read_support_format_cpio.c \ 651558Srgrimes archive_read_support_format_iso9660.c \ 6613940Swollman archive_read_support_format_tar.c \ 6713940Swollman archive_read_support_format_zip.c \ 681558Srgrimes archive_string.c \ 6913940Swollman archive_string_sprintf.c \ 701558Srgrimes archive_util.c \ 711558Srgrimes archive_write.c \ 721558Srgrimes archive_write_open_fd.c \ 731558Srgrimes archive_write_open_filename.c \ 741558Srgrimes archive_write_set_compression_bzip2.c \ 751558Srgrimes archive_write_set_compression_gzip.c \ 761558Srgrimes archive_write_set_compression_none.c \ 771558Srgrimes archive_write_set_format.c \ 781558Srgrimes archive_write_set_format_by_name.c \ 791558Srgrimes archive_write_set_format_cpio.c \ 8013171Swollman archive_write_set_format_pax.c \ 8113171Swollman archive_write_set_format_shar.c \ 821558Srgrimes archive_write_set_format_ustar.c 831558Srgrimes 841558Srgrimes# Man pages to be installed. 851558SrgrimesMAN= archive_entry.3 \ 861558Srgrimes archive_read.3 \ 871558Srgrimes archive_util.3 \ 881558Srgrimes archive_write.3 \ 891558Srgrimes libarchive.3 \ 901558Srgrimes libarchive-formats.5 \ 911558Srgrimes tar.5 921558Srgrimes 931558Srgrimes# Symlink the man pages under each function name. 941558SrgrimesMLINKS+= archive_entry.3 archive_entry_acl_add_entry.3 9517046SjulianMLINKS+= archive_entry.3 archive_entry_acl_add_entry_w.3 9614092SwollmanMLINKS+= archive_entry.3 archive_entry_acl_clear.3 971558SrgrimesMLINKS+= archive_entry.3 archive_entry_acl_count.3 9814092SwollmanMLINKS+= archive_entry.3 archive_entry_acl_next.3 9913940SwollmanMLINKS+= archive_entry.3 archive_entry_acl_next_w.3 1001558SrgrimesMLINKS+= archive_entry.3 archive_entry_acl_reset.3 10113940SwollmanMLINKS+= archive_entry.3 archive_entry_acl_text_w.3 1021558SrgrimesMLINKS+= archive_entry.3 archive_entry_clear.3 10313940SwollmanMLINKS+= archive_entry.3 archive_entry_clone.3 1041558SrgrimesMLINKS+= archive_entry.3 archive_entry_copy_fflags_text_w.3 10513940SwollmanMLINKS+= archive_entry.3 archive_entry_copy_gname_w.3 1061558SrgrimesMLINKS+= archive_entry.3 archive_entry_copy_hardlink_w.3 1071558SrgrimesMLINKS+= archive_entry.3 archive_entry_copy_pathname_w.3 1081558SrgrimesMLINKS+= archive_entry.3 archive_entry_copy_stat.3 1091558SrgrimesMLINKS+= archive_entry.3 archive_entry_copy_symlink_w.3 1101558SrgrimesMLINKS+= archive_entry.3 archive_entry_copy_uname_w.3 1111558SrgrimesMLINKS+= archive_entry.3 archive_entry_fflags.3 1121558SrgrimesMLINKS+= archive_entry.3 archive_entry_fflags_text.3 1131558SrgrimesMLINKS+= archive_entry.3 archive_entry_free.3 1141558SrgrimesMLINKS+= archive_entry.3 archive_entry_gid.3 1151558SrgrimesMLINKS+= archive_entry.3 archive_entry_gname.3 1161558SrgrimesMLINKS+= archive_entry.3 archive_entry_gname_w.3 11717046SjulianMLINKS+= archive_entry.3 archive_entry_hardlink.3 11817046SjulianMLINKS+= archive_entry.3 archive_entry_ino.3 1191558SrgrimesMLINKS+= archive_entry.3 archive_entry_mode.3 1201558SrgrimesMLINKS+= archive_entry.3 archive_entry_mtime.3 1211558SrgrimesMLINKS+= archive_entry.3 archive_entry_mtime_nsec.3 1221558SrgrimesMLINKS+= archive_entry.3 archive_entry_new.3 1231558SrgrimesMLINKS+= archive_entry.3 archive_entry_pathname.3 12413940SwollmanMLINKS+= archive_entry.3 archive_entry_pathname_w.3 12513171SwollmanMLINKS+= archive_entry.3 archive_entry_rdev.3 12613940SwollmanMLINKS+= archive_entry.3 archive_entry_rdevmajor.3 1271558SrgrimesMLINKS+= archive_entry.3 archive_entry_rdevminor.3 12813171SwollmanMLINKS+= archive_entry.3 archive_entry_set_fflags.3 12913171SwollmanMLINKS+= archive_entry.3 archive_entry_set_gid.3 1301558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_gname.3 1311558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_hardlink.3 13213171SwollmanMLINKS+= archive_entry.3 archive_entry_set_link.3 1331558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_mode.3 1341558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_pathname.3 13513171SwollmanMLINKS+= archive_entry.3 archive_entry_set_rdevmajor.3 1361558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_rdevminor.3 1371558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_size.3 13813171SwollmanMLINKS+= archive_entry.3 archive_entry_set_symlink.3 1391558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_uid.3 1401558SrgrimesMLINKS+= archive_entry.3 archive_entry_set_uname.3 1411558SrgrimesMLINKS+= archive_entry.3 archive_entry_size.3 1421558SrgrimesMLINKS+= archive_entry.3 archive_entry_stat.3 1431558SrgrimesMLINKS+= archive_entry.3 archive_entry_symlink.3 1441558SrgrimesMLINKS+= archive_entry.3 archive_entry_uid.3 1451558SrgrimesMLINKS+= archive_entry.3 archive_entry_uname.3 1461558SrgrimesMLINKS+= archive_entry.3 archive_entry_uname_w.3 1471558SrgrimesMLINKS+= archive_read.3 archive_read_data.3 1481558SrgrimesMLINKS+= archive_read.3 archive_read_data_block.3 1491558SrgrimesMLINKS+= archive_read.3 archive_read_data_into_buffer.3 1501558SrgrimesMLINKS+= archive_read.3 archive_read_data_into_fd.3 1511558SrgrimesMLINKS+= archive_read.3 archive_read_data_skip.3 1521558SrgrimesMLINKS+= archive_read.3 archive_read_extract.3 1531558SrgrimesMLINKS+= archive_read.3 archive_read_extract_set_progress_callback.3 1541558SrgrimesMLINKS+= archive_read.3 archive_read_extract_set_skip_file.3 1551558SrgrimesMLINKS+= archive_read.3 archive_read_finish.3 1561558SrgrimesMLINKS+= archive_read.3 archive_read_new.3 1571558SrgrimesMLINKS+= archive_read.3 archive_read_next_header.3 1581558SrgrimesMLINKS+= archive_read.3 archive_read_open.3 1591558SrgrimesMLINKS+= archive_read.3 archive_read_open2.3 1601558SrgrimesMLINKS+= archive_read.3 archive_read_open_fd.3 1611558SrgrimesMLINKS+= archive_read.3 archive_read_open_file.3 1621558SrgrimesMLINKS+= archive_read.3 archive_read_open_filename.3 1631558SrgrimesMLINKS+= archive_read.3 archive_read_set_bytes_per_block.3 1641558SrgrimesMLINKS+= archive_read.3 archive_read_support_compression_all.3 1651558SrgrimesMLINKS+= archive_read.3 archive_read_support_compression_bzip2.3 1661558SrgrimesMLINKS+= archive_read.3 archive_read_support_compression_compress.3 1671558SrgrimesMLINKS+= archive_read.3 archive_read_support_compression_gzip.3 1681558SrgrimesMLINKS+= archive_read.3 archive_read_support_compression_none.3 1691558SrgrimesMLINKS+= archive_read.3 archive_read_support_format_all.3 1701558SrgrimesMLINKS+= archive_read.3 archive_read_support_format_cpio.3 1711558SrgrimesMLINKS+= archive_read.3 archive_read_support_format_iso9660.3 1721558SrgrimesMLINKS+= archive_read.3 archive_read_support_format_tar.3 1731558SrgrimesMLINKS+= archive_read.3 archive_read_support_format_zip.3 1741558SrgrimesMLINKS+= archive_util.3 archive_compression.3 1751558SrgrimesMLINKS+= archive_util.3 archive_compression_name.3 1761558SrgrimesMLINKS+= archive_util.3 archive_errno.3 1771558SrgrimesMLINKS+= archive_util.3 archive_error_string.3 1781558SrgrimesMLINKS+= archive_util.3 archive_format.3 1791558SrgrimesMLINKS+= archive_util.3 archive_format_name.3 1801558SrgrimesMLINKS+= archive_util.3 archive_set_error.3 1811558SrgrimesMLINKS+= archive_write.3 archive_write_data.3 1821558SrgrimesMLINKS+= archive_write.3 archive_write_finish.3 1831558SrgrimesMLINKS+= archive_write.3 archive_write_header.3 1841558SrgrimesMLINKS+= archive_write.3 archive_write_new.3 1851558SrgrimesMLINKS+= archive_write.3 archive_write_open.3 1861558SrgrimesMLINKS+= archive_write.3 archive_write_open_fd.3 1871558SrgrimesMLINKS+= archive_write.3 archive_write_open_file.3 18813171SwollmanMLINKS+= archive_write.3 archive_write_open_filename.3 1891558SrgrimesMLINKS+= archive_write.3 archive_write_set_bytes_per_block.3 1901558SrgrimesMLINKS+= archive_write.3 archive_write_set_bytes_in_last_block.3 1911558SrgrimesMLINKS+= archive_write.3 archive_write_set_callbacks.3 1921558SrgrimesMLINKS+= archive_write.3 archive_write_set_compression_bzip2.3 1931558SrgrimesMLINKS+= archive_write.3 archive_write_set_compression_gzip.3 1941558SrgrimesMLINKS+= archive_write.3 archive_write_set_format_pax.3 1951558SrgrimesMLINKS+= archive_write.3 archive_write_set_format_shar.3 1961558SrgrimesMLINKS+= archive_write.3 archive_write_set_format_ustar.3 1971558SrgrimesMLINKS+= libarchive.3 archive.3 1981558Srgrimes 1991558Srgrimes.include <bsd.lib.mk> 2001558Srgrimes