Makefile revision 166387
1101099Srwatson# $FreeBSD: head/lib/libarchive/Makefile 166387 2007-02-01 06:18:17Z kientzle $ 2126097Srwatson 3132232SrwatsonLIB= archive 4101099SrwatsonDPADD= ${LIBBZ2} ${LIBZ} 5101099SrwatsonLDADD= -lbz2 -lz 6101099Srwatson 7101099Srwatson# The libarchive version stamp. 8106393Srwatson# Version is three numbers: 9106393Srwatson# Major: Bumped ONLY when API/ABI breakage happens (see SHLIB_MAJOR) 10106393Srwatson# Minor: Bumped when significant new features are added 11106393Srwatson# Revision: Bumped on any notable change 12101099SrwatsonVERSION= 1.3.1 13101099Srwatson 14101099SrwatsonARCHIVE_API_MAJOR!= echo ${VERSION} | sed -e 's/[^0-9]/./g' -e 's/\..*//' 15101099SrwatsonARCHIVE_API_MINOR!= echo ${VERSION} | sed -e 's/[^0-9]/./g' -e 's/[0-9]*\.//' -e 's/\..*//' 16101099Srwatson 17101099Srwatson# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system. 18101099Srwatson# It has no real relation to the version number above. 19101099SrwatsonSHLIB_MAJOR= 3 20101099Srwatson 21101099SrwatsonCFLAGS+= -DPACKAGE_NAME=\"lib${LIB}\" 22101099SrwatsonCFLAGS+= -DPACKAGE_VERSION=\"${VERSION}\" 23101099SrwatsonCFLAGS+= -I${.OBJDIR} 24101099Srwatson 25101099SrwatsonWARNS?= 6 26101099Srwatson 27101099Srwatson# Headers to be installed in /usr/include 28101099SrwatsonINCS= archive.h archive_entry.h 29101099Srwatson 30101099Srwatson# Build archive.h from archive.h.in by substituting version information. 31101099Srwatson# Note: FreeBSD has inttypes.h, so enable that include in archive.h.in 32101099Srwatsonarchive.h: archive.h.in Makefile 33101099Srwatson cat ${.CURDIR}/archive.h.in | \ 34101099Srwatson sed 's/@VERSION@/${VERSION}/g' | \ 35101099Srwatson sed 's/@SHLIB_MAJOR@/${SHLIB_MAJOR}/g' | \ 36101099Srwatson sed 's/@ARCHIVE_API_MAJOR@/${ARCHIVE_API_MAJOR}/g' | \ 37101099Srwatson sed 's/@ARCHIVE_API_MINOR@/${ARCHIVE_API_MINOR}/g' | \ 38101099Srwatson sed 's|@ARCHIVE_H_INCLUDE_INTTYPES_H@|#include <inttypes.h> /* For int64_t */|g' | \ 39101099Srwatson cat > archive.h 40101099Srwatson 41101099Srwatson# archive.h needs to be cleaned 42101099SrwatsonCLEANFILES+= archive.h 43105696Srwatson 44101099Srwatson# Sources to be compiled. 45105696SrwatsonSRCS= archive.h \ 46105696Srwatson archive_check_magic.c \ 47132232Srwatson archive_entry.c \ 48101099Srwatson archive_read.c \ 49132232Srwatson archive_read_data_into_buffer.c \ 50101099Srwatson archive_read_data_into_fd.c \ 51101099Srwatson archive_read_extract.c \ 52101099Srwatson archive_read_open_fd.c \ 53101099Srwatson archive_read_open_file.c \ 54101099Srwatson archive_read_open_filename.c \ 55101099Srwatson archive_read_open_memory.c \ 56101099Srwatson archive_read_support_compression_all.c \ 57101099Srwatson archive_read_support_compression_bzip2.c \ 58101099Srwatson archive_read_support_compression_compress.c \ 59101099Srwatson archive_read_support_compression_gzip.c \ 60105643Srwatson archive_read_support_compression_none.c \ 61106093Srwatson archive_read_support_format_all.c \ 62106093Srwatson archive_read_support_format_cpio.c \ 63106093Srwatson archive_read_support_format_empty.c \ 64106093Srwatson archive_read_support_format_iso9660.c \ 65106093Srwatson archive_read_support_format_tar.c \ 66106093Srwatson archive_read_support_format_zip.c \ 67106093Srwatson archive_string.c \ 68106093Srwatson archive_string_sprintf.c \ 69106093Srwatson archive_util.c \ 70106093Srwatson archive_write.c \ 71106093Srwatson archive_write_open_fd.c \ 72106094Srwatson archive_write_open_file.c \ 73106093Srwatson archive_write_open_filename.c \ 74106093Srwatson archive_write_open_memory.c \ 75106093Srwatson archive_write_set_compression_bzip2.c \ 76106093Srwatson archive_write_set_compression_gzip.c \ 77106093Srwatson archive_write_set_compression_none.c \ 78106093Srwatson archive_write_set_format.c \ 79106093Srwatson archive_write_set_format_by_name.c \ 80106093Srwatson archive_write_set_format_cpio.c \ 81132232Srwatson archive_write_set_format_pax.c \ 82106093Srwatson archive_write_set_format_shar.c \ 83106093Srwatson archive_write_set_format_ustar.c 84106093Srwatson 85106093Srwatson# Man pages to be installed. 86106093SrwatsonMAN= archive_entry.3 \ 87106093Srwatson archive_read.3 \ 88132232Srwatson archive_util.3 \ 89106093Srwatson archive_write.3 \ 90106093Srwatson libarchive.3 \ 91106093Srwatson libarchive-formats.5 \ 92106093Srwatson tar.5 93105643Srwatson 94105643Srwatson# Symlink the man pages under each function name. 95105643SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_add_entry.3 96105643SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_add_entry_w.3 97105643SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_clear.3 98105643SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_count.3 99105643SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_next.3 100105643SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_next_w.3 101105643SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_reset.3 102101099SrwatsonMLINKS+= archive_entry.3 archive_entry_acl_text_w.3 103MLINKS+= archive_entry.3 archive_entry_clear.3 104MLINKS+= archive_entry.3 archive_entry_clone.3 105MLINKS+= archive_entry.3 archive_entry_copy_fflags_text_w.3 106MLINKS+= archive_entry.3 archive_entry_copy_gname_w.3 107MLINKS+= archive_entry.3 archive_entry_copy_hardlink_w.3 108MLINKS+= archive_entry.3 archive_entry_copy_pathname_w.3 109MLINKS+= archive_entry.3 archive_entry_copy_stat.3 110MLINKS+= archive_entry.3 archive_entry_copy_symlink_w.3 111MLINKS+= archive_entry.3 archive_entry_copy_uname_w.3 112MLINKS+= archive_entry.3 archive_entry_fflags.3 113MLINKS+= archive_entry.3 archive_entry_fflags_text.3 114MLINKS+= archive_entry.3 archive_entry_free.3 115MLINKS+= archive_entry.3 archive_entry_gid.3 116MLINKS+= archive_entry.3 archive_entry_gname.3 117MLINKS+= archive_entry.3 archive_entry_gname_w.3 118MLINKS+= archive_entry.3 archive_entry_hardlink.3 119MLINKS+= archive_entry.3 archive_entry_ino.3 120MLINKS+= archive_entry.3 archive_entry_mode.3 121MLINKS+= archive_entry.3 archive_entry_mtime.3 122MLINKS+= archive_entry.3 archive_entry_mtime_nsec.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_fflags.3 130MLINKS+= archive_entry.3 archive_entry_set_gid.3 131MLINKS+= archive_entry.3 archive_entry_set_gname.3 132MLINKS+= archive_entry.3 archive_entry_set_hardlink.3 133MLINKS+= archive_entry.3 archive_entry_set_link.3 134MLINKS+= archive_entry.3 archive_entry_set_mode.3 135MLINKS+= archive_entry.3 archive_entry_set_pathname.3 136MLINKS+= archive_entry.3 archive_entry_set_rdevmajor.3 137MLINKS+= archive_entry.3 archive_entry_set_rdevminor.3 138MLINKS+= archive_entry.3 archive_entry_set_size.3 139MLINKS+= archive_entry.3 archive_entry_set_symlink.3 140MLINKS+= archive_entry.3 archive_entry_set_uid.3 141MLINKS+= archive_entry.3 archive_entry_set_uname.3 142MLINKS+= archive_entry.3 archive_entry_size.3 143MLINKS+= archive_entry.3 archive_entry_stat.3 144MLINKS+= archive_entry.3 archive_entry_symlink.3 145MLINKS+= archive_entry.3 archive_entry_uid.3 146MLINKS+= archive_entry.3 archive_entry_uname.3 147MLINKS+= archive_entry.3 archive_entry_uname_w.3 148MLINKS+= archive_read.3 archive_read_data.3 149MLINKS+= archive_read.3 archive_read_data_block.3 150MLINKS+= archive_read.3 archive_read_data_into_buffer.3 151MLINKS+= archive_read.3 archive_read_data_into_fd.3 152MLINKS+= archive_read.3 archive_read_data_skip.3 153MLINKS+= archive_read.3 archive_read_extract.3 154MLINKS+= archive_read.3 archive_read_extract_set_progress_callback.3 155MLINKS+= archive_read.3 archive_read_extract_set_skip_file.3 156MLINKS+= archive_read.3 archive_read_finish.3 157MLINKS+= archive_read.3 archive_read_new.3 158MLINKS+= archive_read.3 archive_read_next_header.3 159MLINKS+= archive_read.3 archive_read_open.3 160MLINKS+= archive_read.3 archive_read_open2.3 161MLINKS+= archive_read.3 archive_read_open_FILE.3 162MLINKS+= archive_read.3 archive_read_open_fd.3 163MLINKS+= archive_read.3 archive_read_open_file.3 164MLINKS+= archive_read.3 archive_read_open_filename.3 165MLINKS+= archive_read.3 archive_read_open_memory.3 166MLINKS+= archive_read.3 archive_read_support_compression_all.3 167MLINKS+= archive_read.3 archive_read_support_compression_bzip2.3 168MLINKS+= archive_read.3 archive_read_support_compression_compress.3 169MLINKS+= archive_read.3 archive_read_support_compression_gzip.3 170MLINKS+= archive_read.3 archive_read_support_compression_none.3 171MLINKS+= archive_read.3 archive_read_support_format_all.3 172MLINKS+= archive_read.3 archive_read_support_format_cpio.3 173MLINKS+= archive_read.3 archive_read_support_format_iso9660.3 174MLINKS+= archive_read.3 archive_read_support_format_tar.3 175MLINKS+= archive_read.3 archive_read_support_format_zip.3 176MLINKS+= archive_util.3 archive_compression.3 177MLINKS+= archive_util.3 archive_compression_name.3 178MLINKS+= archive_util.3 archive_errno.3 179MLINKS+= archive_util.3 archive_error_string.3 180MLINKS+= archive_util.3 archive_format.3 181MLINKS+= archive_util.3 archive_format_name.3 182MLINKS+= archive_util.3 archive_set_error.3 183MLINKS+= archive_write.3 archive_write_data.3 184MLINKS+= archive_write.3 archive_write_finish.3 185MLINKS+= archive_write.3 archive_write_finish_entry.3 186MLINKS+= archive_write.3 archive_write_get_bytes_in_last_block.3 187MLINKS+= archive_write.3 archive_write_get_bytes_per_block.3 188MLINKS+= archive_write.3 archive_write_header.3 189MLINKS+= archive_write.3 archive_write_new.3 190MLINKS+= archive_write.3 archive_write_open.3 191MLINKS+= archive_write.3 archive_write_open_FILE.3 192MLINKS+= archive_write.3 archive_write_open_fd.3 193MLINKS+= archive_write.3 archive_write_open_file.3 194MLINKS+= archive_write.3 archive_write_open_filename.3 195MLINKS+= archive_write.3 archive_write_open_memory.3 196MLINKS+= archive_write.3 archive_write_set_bytes_in_last_block.3 197MLINKS+= archive_write.3 archive_write_set_bytes_per_block.3 198MLINKS+= archive_write.3 archive_write_set_callbacks.3 199MLINKS+= archive_write.3 archive_write_set_compression_bzip2.3 200MLINKS+= archive_write.3 archive_write_set_compression_gzip.3 201MLINKS+= archive_write.3 archive_write_set_format_pax.3 202MLINKS+= archive_write.3 archive_write_set_format_shar.3 203MLINKS+= archive_write.3 archive_write_set_format_ustar.3 204MLINKS+= libarchive.3 archive.3 205 206.include <bsd.lib.mk> 207