libarchive-static 1.0.6 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/extconf.rb +2 -9
- data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +6 -6
- data/ext/libarchive-0.1.1/ext/archive_read_support_compression.o +0 -0
- data/ext/libarchive-0.1.1/ext/archive_read_support_format.o +0 -0
- data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +1 -1
- data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.o +0 -0
- data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +5 -5
- data/ext/libarchive-0.1.1/ext/archive_write_set_compression.o +0 -0
- data/ext/libarchive-0.1.1/ext/config.h +23 -0
- data/ext/libarchive-0.1.1/ext/config.log +230 -0
- data/ext/libarchive-0.1.1/ext/config.status +671 -0
- data/ext/libarchive-0.1.1/ext/libarchive.c +1 -1
- data/ext/libarchive-0.1.1/ext/libarchive.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_archive.c +7 -7
- data/ext/libarchive-0.1.1/ext/libarchive_archive.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_entry.c +6 -0
- data/ext/libarchive-0.1.1/ext/libarchive_entry.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_reader.c +6 -4
- data/ext/libarchive-0.1.1/ext/libarchive_reader.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_ruby.so +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_win32.h +1 -1
- data/ext/libarchive-0.1.1/ext/libarchive_writer.c +2 -2
- data/ext/libarchive-0.1.1/ext/libarchive_writer.o +0 -0
- data/ext/libarchive-3.6.2/Makefile.in +16892 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_append_compile_flags.m4 +67 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_append_flag.m4 +71 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_check_compile_flag.m4 +74 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_require_defined.m4 +37 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/check_stdcall_func.m4 +0 -0
- data/ext/libarchive-3.6.2/build/autoconf/compile +348 -0
- data/ext/libarchive-3.6.2/build/autoconf/config.guess +1754 -0
- data/ext/libarchive-3.6.2/build/autoconf/config.rpath +696 -0
- data/ext/libarchive-3.6.2/build/autoconf/config.sub +1890 -0
- data/ext/libarchive-3.6.2/build/autoconf/depcomp +791 -0
- data/ext/libarchive-3.6.2/build/autoconf/iconv.m4 +271 -0
- data/ext/libarchive-3.6.2/build/autoconf/install-sh +541 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/la_uid_t.m4 +0 -0
- data/ext/libarchive-3.6.2/build/autoconf/lib-ld.m4 +109 -0
- data/ext/libarchive-3.6.2/build/autoconf/lib-link.m4 +777 -0
- data/ext/libarchive-3.6.2/build/autoconf/lib-prefix.m4 +224 -0
- data/ext/libarchive-3.6.2/build/autoconf/ltmain.sh +11251 -0
- data/ext/libarchive-3.6.2/build/autoconf/m4_ax_compile_check_sizeof.m4 +115 -0
- data/ext/libarchive-3.6.2/build/autoconf/missing +215 -0
- data/ext/libarchive-3.6.2/build/autoconf/test-driver +153 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/pkgconfig/libarchive.pc.in +4 -1
- data/ext/libarchive-3.6.2/config.h.in +1504 -0
- data/ext/libarchive-3.6.2/configure +25558 -0
- data/ext/libarchive-3.6.2/libarchive/archive.h +1212 -0
- data/ext/libarchive-3.6.2/libarchive/archive_acl.c +2097 -0
- data/ext/libarchive-3.6.2/libarchive/archive_acl_private.h +83 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2.h +197 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2_impl.h +161 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2s_ref.c +369 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2sp_ref.c +361 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_check_magic.c +63 -22
- data/ext/libarchive-3.6.2/libarchive/archive_cmdline.c +227 -0
- data/ext/libarchive-3.6.2/libarchive/archive_cmdline_private.h +47 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_crc32.h +17 -0
- data/ext/libarchive-3.6.2/libarchive/archive_cryptor.c +534 -0
- data/ext/libarchive-3.6.2/libarchive/archive_cryptor_private.h +188 -0
- data/ext/libarchive-3.6.2/libarchive/archive_digest.c +1505 -0
- data/ext/libarchive-3.6.2/libarchive/archive_digest_private.h +416 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_darwin.c +559 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_freebsd.c +712 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_linux.c +760 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_sunos.c +824 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_endian.h +48 -15
- data/ext/libarchive-3.6.2/libarchive/archive_entry.c +2149 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry.h +305 -106
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_bhfi.c +5 -4
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_stat.c +9 -3
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_link_resolver.c +104 -62
- data/ext/libarchive-3.6.2/libarchive/archive_entry_locale.h +92 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_private.h +65 -49
- data/ext/libarchive-3.6.2/libarchive/archive_entry_sparse.c +156 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_stat.c +6 -6
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_strmode.c +1 -1
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_xattr.c +4 -6
- data/ext/libarchive-3.6.2/libarchive/archive_getdate.c +1165 -0
- data/ext/libarchive-3.6.2/libarchive/archive_getdate.h +39 -0
- data/ext/libarchive-3.6.2/libarchive/archive_hmac.c +334 -0
- data/ext/libarchive-3.6.2/libarchive/archive_hmac_private.h +117 -0
- data/ext/libarchive-3.6.2/libarchive/archive_match.c +1875 -0
- data/ext/libarchive-3.6.2/libarchive/archive_openssl_evp_private.h +53 -0
- data/ext/libarchive-3.6.2/libarchive/archive_openssl_hmac_private.h +54 -0
- data/ext/libarchive-3.6.2/libarchive/archive_options.c +218 -0
- data/ext/libarchive-3.6.2/libarchive/archive_options_private.h +51 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.c +337 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.h +49 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.c +463 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.h +52 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_platform.h +77 -9
- data/ext/libarchive-3.6.2/libarchive/archive_platform_acl.h +55 -0
- data/ext/libarchive-3.6.2/libarchive/archive_platform_xattr.h +47 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd7.c +1168 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd7_private.h +119 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd8.c +1287 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd8_private.h +148 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd_private.h +151 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_private.h +74 -18
- data/ext/libarchive-3.6.2/libarchive/archive_random.c +272 -0
- data/ext/libarchive-3.6.2/libarchive/archive_random_private.h +36 -0
- data/ext/libarchive-3.6.2/libarchive/archive_rb.c +709 -0
- data/ext/libarchive-3.6.2/libarchive/archive_rb.h +113 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read.c +1756 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_add_passphrase.c +190 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_append_filter.c +204 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_data_into_fd.c +64 -18
- data/ext/libarchive-3.6.2/libarchive/archive_read_disk_entry_from_file.c +1086 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_disk_posix.c +2732 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_private.h +40 -4
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_set_standard_lookup.c +21 -11
- data/ext/libarchive-3.6.2/libarchive/archive_read_disk_windows.c +2479 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_extract.c +60 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_extract.c → libarchive-3.6.2/libarchive/archive_read_extract2.c} +34 -61
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_fd.c +70 -49
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_file.c +38 -23
- data/ext/libarchive-3.6.2/libarchive/archive_read_open_filename.c +586 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_memory.c +58 -28
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_private.h +127 -59
- data/ext/libarchive-3.6.2/libarchive/archive_read_set_format.c +117 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_set_options.c +133 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_all.c → libarchive-3.6.2/libarchive/archive_read_support_filter_all.c} +35 -10
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_by_code.c +83 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c → libarchive-3.6.2/libarchive/archive_read_support_filter_bzip2.c} +38 -26
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c → libarchive-3.6.2/libarchive/archive_read_support_filter_compress.c} +52 -44
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_grzip.c +112 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c → libarchive-3.6.2/libarchive/archive_read_support_filter_gzip.c} +108 -37
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lrzip.c +122 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lz4.c +742 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lzop.c +499 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_none.c → libarchive-3.6.2/libarchive/archive_read_support_filter_none.c} +15 -3
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_program.c → libarchive-3.6.2/libarchive/archive_read_support_filter_program.c} +114 -77
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c → libarchive-3.6.2/libarchive/archive_read_support_filter_rpm.c} +31 -31
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c → libarchive-3.6.2/libarchive/archive_read_support_filter_uu.c} +141 -85
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c → libarchive-3.6.2/libarchive/archive_read_support_filter_xz.c} +369 -284
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_zstd.c +297 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_7zip.c +3900 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_all.c +89 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_ar.c +126 -72
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_by_code.c +92 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cab.c +3228 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cpio.c +1104 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_empty.c +14 -11
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_iso9660.c +990 -541
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_lha.c +2916 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_mtree.c +2150 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar.c +3797 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar5.c +4251 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_raw.c +38 -31
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_tar.c +1157 -629
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_warc.c +848 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_xar.c +439 -258
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_zip.c +4270 -0
- data/ext/libarchive-3.6.2/libarchive/archive_string.c +4240 -0
- data/ext/libarchive-3.6.2/libarchive/archive_string.h +243 -0
- data/ext/libarchive-3.6.2/libarchive/archive_string_composition.h +2292 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_string_sprintf.c +44 -16
- data/ext/libarchive-3.6.2/libarchive/archive_util.c +655 -0
- data/ext/libarchive-3.6.2/libarchive/archive_version_details.c +151 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_virtual.c +85 -16
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.c +214 -541
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.h +74 -106
- data/ext/libarchive-3.6.2/libarchive/archive_write.c +828 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter.c +72 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_b64encode.c +304 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_by_name.c +77 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_bzip2.c +401 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c → libarchive-3.6.2/libarchive/archive_write_add_filter_compress.c} +86 -131
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_grzip.c +135 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_gzip.c +442 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lrzip.c +197 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lz4.c +700 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lzop.c +478 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_format_all.c → libarchive-3.6.2/libarchive/archive_write_add_filter_none.c} +11 -11
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_program.c +391 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_uuencode.c +295 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_xz.c +545 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_zstd.c +418 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_disk_posix.c +4711 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_private.h +9 -2
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_set_standard_lookup.c +30 -29
- data/ext/libarchive-3.6.2/libarchive/archive_write_disk_windows.c +2842 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_fd.c +15 -10
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_file.c +15 -9
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_filename.c +128 -20
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_memory.c +7 -18
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_private.h +72 -29
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format.c +56 -3
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_7zip.c +2322 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ar.c +54 -34
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_by_name.c +20 -2
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio.c +11 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_binary.c +610 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_newc.c +457 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_odc.c +500 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_filter_by_ext.c +142 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_gnutar.c +755 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_iso9660.c +8165 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_mtree.c +2217 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_pax.c +1049 -387
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_private.h +42 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_raw.c +125 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_shar.c +62 -47
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ustar.c +279 -108
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_v7tar.c +638 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_warc.c +453 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_xar.c +3259 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_zip.c +1704 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_options.c +130 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_passphrase.c +95 -0
- data/ext/libarchive-3.6.2/libarchive/archive_xxhash.h +48 -0
- data/ext/libarchive-3.6.2/libarchive/config_freebsd.h +271 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/filter_fork.h +10 -5
- data/ext/{libarchive-2.8.4/libarchive/filter_fork.c → libarchive-3.6.2/libarchive/filter_fork_posix.c} +98 -19
- data/ext/libarchive-3.6.2/libarchive/filter_fork_windows.c +236 -0
- data/ext/libarchive-3.6.2/libarchive/xxhash.c +525 -0
- data/ext/libarchive-static-makefile +144 -80
- data/ext/libarchive-static-wrapper-makefile +1 -1
- data/ext/zlib-1.2.13/Makefile.in +404 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/adler32.c +51 -34
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/compress.c +27 -21
- data/ext/zlib-1.2.13/configure +922 -0
- data/ext/zlib-1.2.13/crc32.c +1125 -0
- data/ext/zlib-1.2.13/crc32.h +9446 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.c +842 -459
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.h +37 -33
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzclose.c +0 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzguts.h +103 -16
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzlib.c +155 -53
- data/ext/zlib-1.2.13/gzread.c +650 -0
- data/ext/zlib-1.2.13/gzwrite.c +677 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/infback.c +24 -12
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.c +49 -66
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.h +0 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffixed.h +3 -3
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.c +209 -94
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.h +9 -5
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.c +24 -50
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.h +1 -1
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.c +135 -198
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.h +0 -0
- data/ext/zlib-1.2.13/uncompr.c +93 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zconf.h +182 -63
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zlib.h +617 -295
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.c +50 -41
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.h +83 -82
- metadata +241 -133
- data/ext/libarchive-0.1.1/libarchive.c +0 -1762
- data/ext/libarchive-2.8.4/Makefile.in +0 -7076
- data/ext/libarchive-2.8.4/build/autoconf/compile +0 -143
- data/ext/libarchive-2.8.4/build/autoconf/config.guess +0 -1502
- data/ext/libarchive-2.8.4/build/autoconf/config.sub +0 -1708
- data/ext/libarchive-2.8.4/build/autoconf/depcomp +0 -630
- data/ext/libarchive-2.8.4/build/autoconf/install-sh +0 -291
- data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +0 -8406
- data/ext/libarchive-2.8.4/build/autoconf/missing +0 -376
- data/ext/libarchive-2.8.4/config.h.in +0 -772
- data/ext/libarchive-2.8.4/configure +0 -17916
- data/ext/libarchive-2.8.4/libarchive/archive.h +0 -741
- data/ext/libarchive-2.8.4/libarchive/archive_entry.c +0 -2202
- data/ext/libarchive-2.8.4/libarchive/archive_hash.h +0 -281
- data/ext/libarchive-2.8.4/libarchive/archive_read.c +0 -1249
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +0 -198
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +0 -570
- data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +0 -272
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +0 -777
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +0 -1304
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +0 -903
- data/ext/libarchive-2.8.4/libarchive/archive_string.c +0 -453
- data/ext/libarchive-2.8.4/libarchive/archive_string.h +0 -148
- data/ext/libarchive-2.8.4/libarchive/archive_util.c +0 -391
- data/ext/libarchive-2.8.4/libarchive/archive_write.c +0 -466
- data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +0 -2628
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +0 -408
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +0 -477
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +0 -257
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +0 -347
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +0 -438
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +0 -344
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +0 -295
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +0 -1050
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +0 -667
- data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +0 -154
- data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +0 -113
- data/ext/zlib-1.2.5/Makefile.in +0 -257
- data/ext/zlib-1.2.5/configure +0 -596
- data/ext/zlib-1.2.5/crc32.c +0 -442
- data/ext/zlib-1.2.5/crc32.h +0 -441
- data/ext/zlib-1.2.5/example.c +0 -565
- data/ext/zlib-1.2.5/gzread.c +0 -653
- data/ext/zlib-1.2.5/gzwrite.c +0 -531
- data/ext/zlib-1.2.5/minigzip.c +0 -440
- data/ext/zlib-1.2.5/uncompr.c +0 -59
@@ -1,80 +1,144 @@
|
|
1
|
-
LIBARCHIVE_OBJS = \
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
1
|
+
LIBARCHIVE_OBJS = \
|
2
|
+
archive_acl.o \
|
3
|
+
archive_blake2sp_ref.o \
|
4
|
+
archive_blake2s_ref.o \
|
5
|
+
archive_check_magic.o \
|
6
|
+
archive_cmdline.o \
|
7
|
+
archive_cryptor.o \
|
8
|
+
archive_digest.o \
|
9
|
+
archive_disk_acl_darwin.o \
|
10
|
+
archive_disk_acl_freebsd.o \
|
11
|
+
archive_disk_acl_linux.o \
|
12
|
+
archive_disk_acl_sunos.o \
|
13
|
+
archive_entry.o \
|
14
|
+
archive_entry_copy_bhfi.o \
|
15
|
+
archive_entry_copy_stat.o \
|
16
|
+
archive_entry_link_resolver.o \
|
17
|
+
archive_entry_sparse.o \
|
18
|
+
archive_entry_stat.o \
|
19
|
+
archive_entry_strmode.o \
|
20
|
+
archive_entry_xattr.o \
|
21
|
+
archive_getdate.o \
|
22
|
+
archive_hmac.o \
|
23
|
+
archive_match.o \
|
24
|
+
archive_options.o \
|
25
|
+
archive_pack_dev.o \
|
26
|
+
archive_pathmatch.o \
|
27
|
+
archive_ppmd7.o \
|
28
|
+
archive_ppmd8.o \
|
29
|
+
archive_random.o \
|
30
|
+
archive_rb.o \
|
31
|
+
archive_read_add_passphrase.o \
|
32
|
+
archive_read_append_filter.o \
|
33
|
+
archive_read.o \
|
34
|
+
archive_read_data_into_fd.o \
|
35
|
+
archive_read_disk_entry_from_file.o \
|
36
|
+
archive_read_disk_posix.o \
|
37
|
+
archive_read_disk_set_standard_lookup.o \
|
38
|
+
archive_read_disk_windows.o \
|
39
|
+
archive_read_extract2.o \
|
40
|
+
archive_read_extract.o \
|
41
|
+
archive_read_open_fd.o \
|
42
|
+
archive_read_open_file.o \
|
43
|
+
archive_read_open_filename.o \
|
44
|
+
archive_read_open_memory.o \
|
45
|
+
archive_read_set_format.o \
|
46
|
+
archive_read_set_options.o \
|
47
|
+
archive_read_support_filter_all.o \
|
48
|
+
archive_read_support_filter_by_code.o \
|
49
|
+
archive_read_support_filter_bzip2.o \
|
50
|
+
archive_read_support_filter_compress.o \
|
51
|
+
archive_read_support_filter_grzip.o \
|
52
|
+
archive_read_support_filter_gzip.o \
|
53
|
+
archive_read_support_filter_lrzip.o \
|
54
|
+
archive_read_support_filter_lz4.o \
|
55
|
+
archive_read_support_filter_lzop.o \
|
56
|
+
archive_read_support_filter_none.o \
|
57
|
+
archive_read_support_filter_program.o \
|
58
|
+
archive_read_support_filter_rpm.o \
|
59
|
+
archive_read_support_filter_uu.o \
|
60
|
+
archive_read_support_filter_xz.o \
|
61
|
+
archive_read_support_filter_zstd.o \
|
62
|
+
archive_read_support_format_7zip.o \
|
63
|
+
archive_read_support_format_all.o \
|
64
|
+
archive_read_support_format_ar.o \
|
65
|
+
archive_read_support_format_by_code.o \
|
66
|
+
archive_read_support_format_cab.o \
|
67
|
+
archive_read_support_format_cpio.o \
|
68
|
+
archive_read_support_format_empty.o \
|
69
|
+
archive_read_support_format_iso9660.o \
|
70
|
+
archive_read_support_format_lha.o \
|
71
|
+
archive_read_support_format_mtree.o \
|
72
|
+
archive_read_support_format_rar5.o \
|
73
|
+
archive_read_support_format_rar.o \
|
74
|
+
archive_read_support_format_raw.o \
|
75
|
+
archive_read_support_format_tar.o \
|
76
|
+
archive_read_support_format_warc.o \
|
77
|
+
archive_read_support_format_xar.o \
|
78
|
+
archive_read_support_format_zip.o \
|
79
|
+
archive_string.o \
|
80
|
+
archive_string_sprintf.o \
|
81
|
+
archive_util.o \
|
82
|
+
archive_version_details.o \
|
83
|
+
archive_virtual.o \
|
84
|
+
archive_windows.o \
|
85
|
+
archive_write_add_filter_b64encode.o \
|
86
|
+
archive_write_add_filter_by_name.o \
|
87
|
+
archive_write_add_filter_bzip2.o \
|
88
|
+
archive_write_add_filter.o \
|
89
|
+
archive_write_add_filter_compress.o \
|
90
|
+
archive_write_add_filter_grzip.o \
|
91
|
+
archive_write_add_filter_gzip.o \
|
92
|
+
archive_write_add_filter_lrzip.o \
|
93
|
+
archive_write_add_filter_lz4.o \
|
94
|
+
archive_write_add_filter_lzop.o \
|
95
|
+
archive_write_add_filter_none.o \
|
96
|
+
archive_write_add_filter_program.o \
|
97
|
+
archive_write_add_filter_uuencode.o \
|
98
|
+
archive_write_add_filter_xz.o \
|
99
|
+
archive_write_add_filter_zstd.o \
|
100
|
+
archive_write.o \
|
101
|
+
archive_write_disk_posix.o \
|
102
|
+
archive_write_disk_set_standard_lookup.o \
|
103
|
+
archive_write_disk_windows.o \
|
104
|
+
archive_write_open_fd.o \
|
105
|
+
archive_write_open_file.o \
|
106
|
+
archive_write_open_filename.o \
|
107
|
+
archive_write_open_memory.o \
|
108
|
+
archive_write_set_format_7zip.o \
|
109
|
+
archive_write_set_format_ar.o \
|
110
|
+
archive_write_set_format_by_name.o \
|
111
|
+
archive_write_set_format.o \
|
112
|
+
archive_write_set_format_cpio_binary.o \
|
113
|
+
archive_write_set_format_cpio.o \
|
114
|
+
archive_write_set_format_cpio_newc.o \
|
115
|
+
archive_write_set_format_cpio_odc.o \
|
116
|
+
archive_write_set_format_filter_by_ext.o \
|
117
|
+
archive_write_set_format_gnutar.o \
|
118
|
+
archive_write_set_format_iso9660.o \
|
119
|
+
archive_write_set_format_mtree.o \
|
120
|
+
archive_write_set_format_pax.o \
|
121
|
+
archive_write_set_format_raw.o \
|
122
|
+
archive_write_set_format_shar.o \
|
123
|
+
archive_write_set_format_ustar.o \
|
124
|
+
archive_write_set_format_v7tar.o \
|
125
|
+
archive_write_set_format_warc.o \
|
126
|
+
archive_write_set_format_xar.o \
|
127
|
+
archive_write_set_format_zip.o \
|
128
|
+
archive_write_set_options.o \
|
129
|
+
archive_write_set_passphrase.o \
|
130
|
+
filter_fork_posix.o \
|
131
|
+
filter_fork_windows.o \
|
132
|
+
xxhash.o
|
133
|
+
|
134
|
+
.c.o:
|
135
|
+
gcc -DHAVE_CONFIG_H -DLIBARCHIVE_STATIC -D_SSIZE_T_DEFINED -I.. $(CFLAGS) -g -O2 -MD -MP -c -DPIC $<
|
136
|
+
|
137
|
+
libarchive.a: $(LIBARCHIVE_OBJS)
|
138
|
+
ar cru libarchive.a $^ $(LIBZLIB_A)
|
139
|
+
|
140
|
+
clean:
|
141
|
+
rm -f *.o *.d libarchive.a
|
142
|
+
|
143
|
+
veryclean: clean
|
144
|
+
rm -f Makefile config.h
|
@@ -17,7 +17,7 @@ else
|
|
17
17
|
endif
|
18
18
|
|
19
19
|
.c.o:
|
20
|
-
gcc $(CFLAGS) -I. -I../../libarchive-
|
20
|
+
gcc $(CFLAGS) -I. -I../../libarchive-3.6.2/libarchive -DLIBARCHIVE_STATIC -DHAVE_CONFIG_H -DHAVE_ARCHIVE_H -DHAVE_ARCHIVE_ENTRY_H -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -c -DPIC $<
|
21
21
|
|
22
22
|
all: libarchive_ruby.$(EXT)
|
23
23
|
|
@@ -0,0 +1,404 @@
|
|
1
|
+
# Makefile for zlib
|
2
|
+
# Copyright (C) 1995-2017 Jean-loup Gailly, Mark Adler
|
3
|
+
# For conditions of distribution and use, see copyright notice in zlib.h
|
4
|
+
|
5
|
+
# To compile and test, type:
|
6
|
+
# ./configure; make test
|
7
|
+
# Normally configure builds both a static and a shared library.
|
8
|
+
# If you want to build just a static library, use: ./configure --static
|
9
|
+
|
10
|
+
# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
|
11
|
+
# make install
|
12
|
+
# To install in $HOME instead of /usr/local, use:
|
13
|
+
# make install prefix=$HOME
|
14
|
+
|
15
|
+
CC=cc
|
16
|
+
|
17
|
+
CFLAGS=-O
|
18
|
+
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
19
|
+
#CFLAGS=-g -DZLIB_DEBUG
|
20
|
+
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
21
|
+
# -Wstrict-prototypes -Wmissing-prototypes
|
22
|
+
|
23
|
+
SFLAGS=-O
|
24
|
+
LDFLAGS=
|
25
|
+
TEST_LDFLAGS=$(LDFLAGS) -L. libz.a
|
26
|
+
LDSHARED=$(CC)
|
27
|
+
CPP=$(CC) -E
|
28
|
+
|
29
|
+
STATICLIB=libz.a
|
30
|
+
SHAREDLIB=libz.so
|
31
|
+
SHAREDLIBV=libz.so.1.2.13
|
32
|
+
SHAREDLIBM=libz.so.1
|
33
|
+
LIBS=$(STATICLIB) $(SHAREDLIBV)
|
34
|
+
|
35
|
+
AR=ar
|
36
|
+
ARFLAGS=rc
|
37
|
+
RANLIB=ranlib
|
38
|
+
LDCONFIG=ldconfig
|
39
|
+
LDSHAREDLIBC=-lc
|
40
|
+
TAR=tar
|
41
|
+
SHELL=/bin/sh
|
42
|
+
EXE=
|
43
|
+
|
44
|
+
prefix = /usr/local
|
45
|
+
exec_prefix = ${prefix}
|
46
|
+
libdir = ${exec_prefix}/lib
|
47
|
+
sharedlibdir = ${libdir}
|
48
|
+
includedir = ${prefix}/include
|
49
|
+
mandir = ${prefix}/share/man
|
50
|
+
man3dir = ${mandir}/man3
|
51
|
+
pkgconfigdir = ${libdir}/pkgconfig
|
52
|
+
SRCDIR=
|
53
|
+
ZINC=
|
54
|
+
ZINCOUT=-I.
|
55
|
+
|
56
|
+
OBJZ = adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o
|
57
|
+
OBJG = compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
|
58
|
+
OBJC = $(OBJZ) $(OBJG)
|
59
|
+
|
60
|
+
PIC_OBJZ = adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo
|
61
|
+
PIC_OBJG = compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo
|
62
|
+
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
|
63
|
+
|
64
|
+
# to use the asm code: make OBJA=match.o, PIC_OBJA=match.lo
|
65
|
+
OBJA =
|
66
|
+
PIC_OBJA =
|
67
|
+
|
68
|
+
OBJS = $(OBJC) $(OBJA)
|
69
|
+
|
70
|
+
PIC_OBJS = $(PIC_OBJC) $(PIC_OBJA)
|
71
|
+
|
72
|
+
all: static shared
|
73
|
+
|
74
|
+
static: example$(EXE) minigzip$(EXE)
|
75
|
+
|
76
|
+
shared: examplesh$(EXE) minigzipsh$(EXE)
|
77
|
+
|
78
|
+
all64: example64$(EXE) minigzip64$(EXE)
|
79
|
+
|
80
|
+
check: test
|
81
|
+
|
82
|
+
test: all teststatic testshared
|
83
|
+
|
84
|
+
teststatic: static
|
85
|
+
@TMPST=tmpst_$$; \
|
86
|
+
if echo hello world | ${QEMU_RUN} ./minigzip | ${QEMU_RUN} ./minigzip -d && ${QEMU_RUN} ./example $$TMPST ; then \
|
87
|
+
echo ' *** zlib test OK ***'; \
|
88
|
+
else \
|
89
|
+
echo ' *** zlib test FAILED ***'; false; \
|
90
|
+
fi
|
91
|
+
@rm -f tmpst_$$
|
92
|
+
|
93
|
+
testshared: shared
|
94
|
+
@LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
|
95
|
+
LD_LIBRARYN32_PATH=`pwd`:$(LD_LIBRARYN32_PATH) ; export LD_LIBRARYN32_PATH; \
|
96
|
+
DYLD_LIBRARY_PATH=`pwd`:$(DYLD_LIBRARY_PATH) ; export DYLD_LIBRARY_PATH; \
|
97
|
+
SHLIB_PATH=`pwd`:$(SHLIB_PATH) ; export SHLIB_PATH; \
|
98
|
+
TMPSH=tmpsh_$$; \
|
99
|
+
if echo hello world | ${QEMU_RUN} ./minigzipsh | ${QEMU_RUN} ./minigzipsh -d && ${QEMU_RUN} ./examplesh $$TMPSH; then \
|
100
|
+
echo ' *** zlib shared test OK ***'; \
|
101
|
+
else \
|
102
|
+
echo ' *** zlib shared test FAILED ***'; false; \
|
103
|
+
fi
|
104
|
+
@rm -f tmpsh_$$
|
105
|
+
|
106
|
+
test64: all64
|
107
|
+
@TMP64=tmp64_$$; \
|
108
|
+
if echo hello world | ${QEMU_RUN} ./minigzip64 | ${QEMU_RUN} ./minigzip64 -d && ${QEMU_RUN} ./example64 $$TMP64; then \
|
109
|
+
echo ' *** zlib 64-bit test OK ***'; \
|
110
|
+
else \
|
111
|
+
echo ' *** zlib 64-bit test FAILED ***'; false; \
|
112
|
+
fi
|
113
|
+
@rm -f tmp64_$$
|
114
|
+
|
115
|
+
infcover.o: $(SRCDIR)test/infcover.c $(SRCDIR)zlib.h zconf.h
|
116
|
+
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/infcover.c
|
117
|
+
|
118
|
+
infcover: infcover.o libz.a
|
119
|
+
$(CC) $(CFLAGS) -o $@ infcover.o libz.a
|
120
|
+
|
121
|
+
cover: infcover
|
122
|
+
rm -f *.gcda
|
123
|
+
${QEMU_RUN} ./infcover
|
124
|
+
gcov inf*.c
|
125
|
+
|
126
|
+
libz.a: $(OBJS)
|
127
|
+
$(AR) $(ARFLAGS) $@ $(OBJS)
|
128
|
+
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
|
129
|
+
|
130
|
+
match.o: match.S
|
131
|
+
$(CPP) match.S > _match.s
|
132
|
+
$(CC) -c _match.s
|
133
|
+
mv _match.o match.o
|
134
|
+
rm -f _match.s
|
135
|
+
|
136
|
+
match.lo: match.S
|
137
|
+
$(CPP) match.S > _match.s
|
138
|
+
$(CC) -c -fPIC _match.s
|
139
|
+
mv _match.o match.lo
|
140
|
+
rm -f _match.s
|
141
|
+
|
142
|
+
example.o: $(SRCDIR)test/example.c $(SRCDIR)zlib.h zconf.h
|
143
|
+
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/example.c
|
144
|
+
|
145
|
+
minigzip.o: $(SRCDIR)test/minigzip.c $(SRCDIR)zlib.h zconf.h
|
146
|
+
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/minigzip.c
|
147
|
+
|
148
|
+
example64.o: $(SRCDIR)test/example.c $(SRCDIR)zlib.h zconf.h
|
149
|
+
$(CC) $(CFLAGS) $(ZINCOUT) -D_FILE_OFFSET_BITS=64 -c -o $@ $(SRCDIR)test/example.c
|
150
|
+
|
151
|
+
minigzip64.o: $(SRCDIR)test/minigzip.c $(SRCDIR)zlib.h zconf.h
|
152
|
+
$(CC) $(CFLAGS) $(ZINCOUT) -D_FILE_OFFSET_BITS=64 -c -o $@ $(SRCDIR)test/minigzip.c
|
153
|
+
|
154
|
+
|
155
|
+
adler32.o: $(SRCDIR)adler32.c
|
156
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)adler32.c
|
157
|
+
|
158
|
+
crc32.o: $(SRCDIR)crc32.c
|
159
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)crc32.c
|
160
|
+
|
161
|
+
deflate.o: $(SRCDIR)deflate.c
|
162
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)deflate.c
|
163
|
+
|
164
|
+
infback.o: $(SRCDIR)infback.c
|
165
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)infback.c
|
166
|
+
|
167
|
+
inffast.o: $(SRCDIR)inffast.c
|
168
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)inffast.c
|
169
|
+
|
170
|
+
inflate.o: $(SRCDIR)inflate.c
|
171
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)inflate.c
|
172
|
+
|
173
|
+
inftrees.o: $(SRCDIR)inftrees.c
|
174
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)inftrees.c
|
175
|
+
|
176
|
+
trees.o: $(SRCDIR)trees.c
|
177
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)trees.c
|
178
|
+
|
179
|
+
zutil.o: $(SRCDIR)zutil.c
|
180
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)zutil.c
|
181
|
+
|
182
|
+
compress.o: $(SRCDIR)compress.c
|
183
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)compress.c
|
184
|
+
|
185
|
+
uncompr.o: $(SRCDIR)uncompr.c
|
186
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)uncompr.c
|
187
|
+
|
188
|
+
gzclose.o: $(SRCDIR)gzclose.c
|
189
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzclose.c
|
190
|
+
|
191
|
+
gzlib.o: $(SRCDIR)gzlib.c
|
192
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzlib.c
|
193
|
+
|
194
|
+
gzread.o: $(SRCDIR)gzread.c
|
195
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzread.c
|
196
|
+
|
197
|
+
gzwrite.o: $(SRCDIR)gzwrite.c
|
198
|
+
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzwrite.c
|
199
|
+
|
200
|
+
|
201
|
+
adler32.lo: $(SRCDIR)adler32.c
|
202
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
203
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/adler32.o $(SRCDIR)adler32.c
|
204
|
+
-@mv objs/adler32.o $@
|
205
|
+
|
206
|
+
crc32.lo: $(SRCDIR)crc32.c
|
207
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
208
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/crc32.o $(SRCDIR)crc32.c
|
209
|
+
-@mv objs/crc32.o $@
|
210
|
+
|
211
|
+
deflate.lo: $(SRCDIR)deflate.c
|
212
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
213
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/deflate.o $(SRCDIR)deflate.c
|
214
|
+
-@mv objs/deflate.o $@
|
215
|
+
|
216
|
+
infback.lo: $(SRCDIR)infback.c
|
217
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
218
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/infback.o $(SRCDIR)infback.c
|
219
|
+
-@mv objs/infback.o $@
|
220
|
+
|
221
|
+
inffast.lo: $(SRCDIR)inffast.c
|
222
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
223
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/inffast.o $(SRCDIR)inffast.c
|
224
|
+
-@mv objs/inffast.o $@
|
225
|
+
|
226
|
+
inflate.lo: $(SRCDIR)inflate.c
|
227
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
228
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/inflate.o $(SRCDIR)inflate.c
|
229
|
+
-@mv objs/inflate.o $@
|
230
|
+
|
231
|
+
inftrees.lo: $(SRCDIR)inftrees.c
|
232
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
233
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/inftrees.o $(SRCDIR)inftrees.c
|
234
|
+
-@mv objs/inftrees.o $@
|
235
|
+
|
236
|
+
trees.lo: $(SRCDIR)trees.c
|
237
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
238
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/trees.o $(SRCDIR)trees.c
|
239
|
+
-@mv objs/trees.o $@
|
240
|
+
|
241
|
+
zutil.lo: $(SRCDIR)zutil.c
|
242
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
243
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/zutil.o $(SRCDIR)zutil.c
|
244
|
+
-@mv objs/zutil.o $@
|
245
|
+
|
246
|
+
compress.lo: $(SRCDIR)compress.c
|
247
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
248
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/compress.o $(SRCDIR)compress.c
|
249
|
+
-@mv objs/compress.o $@
|
250
|
+
|
251
|
+
uncompr.lo: $(SRCDIR)uncompr.c
|
252
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
253
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/uncompr.o $(SRCDIR)uncompr.c
|
254
|
+
-@mv objs/uncompr.o $@
|
255
|
+
|
256
|
+
gzclose.lo: $(SRCDIR)gzclose.c
|
257
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
258
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzclose.o $(SRCDIR)gzclose.c
|
259
|
+
-@mv objs/gzclose.o $@
|
260
|
+
|
261
|
+
gzlib.lo: $(SRCDIR)gzlib.c
|
262
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
263
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzlib.o $(SRCDIR)gzlib.c
|
264
|
+
-@mv objs/gzlib.o $@
|
265
|
+
|
266
|
+
gzread.lo: $(SRCDIR)gzread.c
|
267
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
268
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzread.o $(SRCDIR)gzread.c
|
269
|
+
-@mv objs/gzread.o $@
|
270
|
+
|
271
|
+
gzwrite.lo: $(SRCDIR)gzwrite.c
|
272
|
+
-@mkdir objs 2>/dev/null || test -d objs
|
273
|
+
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzwrite.o $(SRCDIR)gzwrite.c
|
274
|
+
-@mv objs/gzwrite.o $@
|
275
|
+
|
276
|
+
|
277
|
+
placebo $(SHAREDLIBV): $(PIC_OBJS) libz.a
|
278
|
+
$(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
|
279
|
+
rm -f $(SHAREDLIB) $(SHAREDLIBM)
|
280
|
+
ln -s $@ $(SHAREDLIB)
|
281
|
+
ln -s $@ $(SHAREDLIBM)
|
282
|
+
-@rmdir objs
|
283
|
+
|
284
|
+
example$(EXE): example.o $(STATICLIB)
|
285
|
+
$(CC) $(CFLAGS) -o $@ example.o $(TEST_LDFLAGS)
|
286
|
+
|
287
|
+
minigzip$(EXE): minigzip.o $(STATICLIB)
|
288
|
+
$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
|
289
|
+
|
290
|
+
examplesh$(EXE): example.o $(SHAREDLIBV)
|
291
|
+
$(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) -L. $(SHAREDLIBV)
|
292
|
+
|
293
|
+
minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
|
294
|
+
$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) -L. $(SHAREDLIBV)
|
295
|
+
|
296
|
+
example64$(EXE): example64.o $(STATICLIB)
|
297
|
+
$(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS)
|
298
|
+
|
299
|
+
minigzip64$(EXE): minigzip64.o $(STATICLIB)
|
300
|
+
$(CC) $(CFLAGS) -o $@ minigzip64.o $(TEST_LDFLAGS)
|
301
|
+
|
302
|
+
install-libs: $(LIBS)
|
303
|
+
-@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
|
304
|
+
-@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi
|
305
|
+
-@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi
|
306
|
+
-@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi
|
307
|
+
-@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
|
308
|
+
rm -f $(DESTDIR)$(libdir)/$(STATICLIB)
|
309
|
+
cp $(STATICLIB) $(DESTDIR)$(libdir)
|
310
|
+
chmod 644 $(DESTDIR)$(libdir)/$(STATICLIB)
|
311
|
+
-@($(RANLIB) $(DESTDIR)$(libdir)/libz.a || true) >/dev/null 2>&1
|
312
|
+
-@if test -n "$(SHAREDLIBV)"; then \
|
313
|
+
rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV); \
|
314
|
+
cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); \
|
315
|
+
echo "cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)"; \
|
316
|
+
chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV); \
|
317
|
+
echo "chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV)"; \
|
318
|
+
rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
|
319
|
+
ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB); \
|
320
|
+
ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
|
321
|
+
($(LDCONFIG) || true) >/dev/null 2>&1; \
|
322
|
+
fi
|
323
|
+
rm -f $(DESTDIR)$(man3dir)/zlib.3
|
324
|
+
cp $(SRCDIR)zlib.3 $(DESTDIR)$(man3dir)
|
325
|
+
chmod 644 $(DESTDIR)$(man3dir)/zlib.3
|
326
|
+
rm -f $(DESTDIR)$(pkgconfigdir)/zlib.pc
|
327
|
+
cp zlib.pc $(DESTDIR)$(pkgconfigdir)
|
328
|
+
chmod 644 $(DESTDIR)$(pkgconfigdir)/zlib.pc
|
329
|
+
# The ranlib in install is needed on NeXTSTEP which checks file times
|
330
|
+
# ldconfig is for Linux
|
331
|
+
|
332
|
+
install: install-libs
|
333
|
+
-@if [ ! -d $(DESTDIR)$(includedir) ]; then mkdir -p $(DESTDIR)$(includedir); fi
|
334
|
+
rm -f $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h
|
335
|
+
cp $(SRCDIR)zlib.h zconf.h $(DESTDIR)$(includedir)
|
336
|
+
chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h
|
337
|
+
|
338
|
+
uninstall:
|
339
|
+
cd $(DESTDIR)$(includedir) && rm -f zlib.h zconf.h
|
340
|
+
cd $(DESTDIR)$(libdir) && rm -f libz.a; \
|
341
|
+
if test -n "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \
|
342
|
+
rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \
|
343
|
+
fi
|
344
|
+
cd $(DESTDIR)$(man3dir) && rm -f zlib.3
|
345
|
+
cd $(DESTDIR)$(pkgconfigdir) && rm -f zlib.pc
|
346
|
+
|
347
|
+
docs: zlib.3.pdf
|
348
|
+
|
349
|
+
zlib.3.pdf: $(SRCDIR)zlib.3
|
350
|
+
groff -mandoc -f H -T ps $(SRCDIR)zlib.3 | ps2pdf - $@
|
351
|
+
|
352
|
+
zconf.h.cmakein: $(SRCDIR)zconf.h.in
|
353
|
+
-@ TEMPFILE=zconfh_$$; \
|
354
|
+
echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" >> $$TEMPFILE &&\
|
355
|
+
sed -f $$TEMPFILE $(SRCDIR)zconf.h.in > $@ &&\
|
356
|
+
touch -r $(SRCDIR)zconf.h.in $@ &&\
|
357
|
+
rm $$TEMPFILE
|
358
|
+
|
359
|
+
zconf: $(SRCDIR)zconf.h.in
|
360
|
+
cp -p $(SRCDIR)zconf.h.in zconf.h
|
361
|
+
|
362
|
+
mostlyclean: clean
|
363
|
+
clean:
|
364
|
+
rm -f *.o *.lo *~ \
|
365
|
+
example$(EXE) minigzip$(EXE) examplesh$(EXE) minigzipsh$(EXE) \
|
366
|
+
example64$(EXE) minigzip64$(EXE) \
|
367
|
+
infcover \
|
368
|
+
libz.* foo.gz so_locations \
|
369
|
+
_match.s maketree contrib/infback9/*.o
|
370
|
+
rm -rf objs
|
371
|
+
rm -f *.gcda *.gcno *.gcov
|
372
|
+
rm -f contrib/infback9/*.gcda contrib/infback9/*.gcno contrib/infback9/*.gcov
|
373
|
+
|
374
|
+
maintainer-clean: distclean
|
375
|
+
distclean: clean zconf zconf.h.cmakein
|
376
|
+
rm -f Makefile zlib.pc configure.log
|
377
|
+
-@rm -f .DS_Store
|
378
|
+
@if [ -f Makefile.in ]; then \
|
379
|
+
printf 'all:\n\t-@echo "Please use ./configure first. Thank you."\n' > Makefile ; \
|
380
|
+
printf '\ndistclean:\n\tmake -f Makefile.in distclean\n' >> Makefile ; \
|
381
|
+
touch -r $(SRCDIR)Makefile.in Makefile ; fi
|
382
|
+
|
383
|
+
tags:
|
384
|
+
etags $(SRCDIR)*.[ch]
|
385
|
+
|
386
|
+
adler32.o zutil.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
|
387
|
+
gzclose.o gzlib.o gzread.o gzwrite.o: $(SRCDIR)zlib.h zconf.h $(SRCDIR)gzguts.h
|
388
|
+
compress.o example.o minigzip.o uncompr.o: $(SRCDIR)zlib.h zconf.h
|
389
|
+
crc32.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)crc32.h
|
390
|
+
deflate.o: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
|
391
|
+
infback.o inflate.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h $(SRCDIR)inffixed.h
|
392
|
+
inffast.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h
|
393
|
+
inftrees.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h
|
394
|
+
trees.o: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)trees.h
|
395
|
+
|
396
|
+
adler32.lo zutil.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
|
397
|
+
gzclose.lo gzlib.lo gzread.lo gzwrite.lo: $(SRCDIR)zlib.h zconf.h $(SRCDIR)gzguts.h
|
398
|
+
compress.lo example.lo minigzip.lo uncompr.lo: $(SRCDIR)zlib.h zconf.h
|
399
|
+
crc32.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)crc32.h
|
400
|
+
deflate.lo: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
|
401
|
+
infback.lo inflate.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h $(SRCDIR)inffixed.h
|
402
|
+
inffast.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h
|
403
|
+
inftrees.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h
|
404
|
+
trees.lo: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)trees.h
|