hane 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/binding.gyp +87 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +1 -0
- package/package.json +33 -0
- package/src/native/addon.cc +231 -0
- package/src/native/zsign_driver.cc +87 -0
- package/src/native/zsign_driver.h +38 -0
- package/vendor/zlib/.cmake-format.yaml +245 -0
- package/vendor/zlib/.github/workflows/c-std.yml +230 -0
- package/vendor/zlib/.github/workflows/cmake.yml +112 -0
- package/vendor/zlib/.github/workflows/configure.yml +136 -0
- package/vendor/zlib/.github/workflows/fuzz.yml +25 -0
- package/vendor/zlib/.github/workflows/msys-cygwin.yml +77 -0
- package/vendor/zlib/BUILD.bazel +134 -0
- package/vendor/zlib/CMakeLists.txt +330 -0
- package/vendor/zlib/ChangeLog +1621 -0
- package/vendor/zlib/FAQ +367 -0
- package/vendor/zlib/INDEX +68 -0
- package/vendor/zlib/LICENSE +22 -0
- package/vendor/zlib/MODULE.bazel +9 -0
- package/vendor/zlib/Makefile.in +419 -0
- package/vendor/zlib/README +115 -0
- package/vendor/zlib/README-cmake.md +83 -0
- package/vendor/zlib/adler32.c +164 -0
- package/vendor/zlib/amiga/Makefile.pup +69 -0
- package/vendor/zlib/amiga/Makefile.sas +68 -0
- package/vendor/zlib/compress.c +75 -0
- package/vendor/zlib/configure +966 -0
- package/vendor/zlib/contrib/README.contrib +57 -0
- package/vendor/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/vendor/zlib/contrib/ada/mtest.adb +156 -0
- package/vendor/zlib/contrib/ada/read.adb +156 -0
- package/vendor/zlib/contrib/ada/readme.txt +65 -0
- package/vendor/zlib/contrib/ada/test.adb +463 -0
- package/vendor/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/vendor/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/vendor/zlib/contrib/ada/zlib-thin.adb +142 -0
- package/vendor/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/vendor/zlib/contrib/ada/zlib.adb +701 -0
- package/vendor/zlib/contrib/ada/zlib.ads +328 -0
- package/vendor/zlib/contrib/ada/zlib.gpr +20 -0
- package/vendor/zlib/contrib/blast/Makefile +8 -0
- package/vendor/zlib/contrib/blast/README +4 -0
- package/vendor/zlib/contrib/blast/blast.c +466 -0
- package/vendor/zlib/contrib/blast/blast.h +83 -0
- package/vendor/zlib/contrib/blast/test.pk +0 -0
- package/vendor/zlib/contrib/blast/test.txt +1 -0
- package/vendor/zlib/contrib/delphi/ZLib.pas +557 -0
- package/vendor/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/vendor/zlib/contrib/delphi/readme.txt +76 -0
- package/vendor/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/vendor/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/vendor/zlib/contrib/dotzlib/readme.txt +58 -0
- package/vendor/zlib/contrib/gcc_gvmat64/gvmat64.S +574 -0
- package/vendor/zlib/contrib/infback9/README +1 -0
- package/vendor/zlib/contrib/infback9/infback9.c +603 -0
- package/vendor/zlib/contrib/infback9/infback9.h +37 -0
- package/vendor/zlib/contrib/infback9/inffix9.h +107 -0
- package/vendor/zlib/contrib/infback9/inflate9.h +47 -0
- package/vendor/zlib/contrib/infback9/inftree9.c +319 -0
- package/vendor/zlib/contrib/infback9/inftree9.h +61 -0
- package/vendor/zlib/contrib/iostream/test.cpp +24 -0
- package/vendor/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/vendor/zlib/contrib/iostream/zfstream.h +128 -0
- package/vendor/zlib/contrib/iostream2/zstream.h +307 -0
- package/vendor/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/vendor/zlib/contrib/iostream3/README +35 -0
- package/vendor/zlib/contrib/iostream3/TODO +17 -0
- package/vendor/zlib/contrib/iostream3/test.cc +50 -0
- package/vendor/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/vendor/zlib/contrib/iostream3/zfstream.h +466 -0
- package/vendor/zlib/contrib/minizip/CMakeLists.txt +380 -0
- package/vendor/zlib/contrib/minizip/Makefile +37 -0
- package/vendor/zlib/contrib/minizip/Makefile.am +45 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_info.txt +74 -0
- package/vendor/zlib/contrib/minizip/configure.ac +32 -0
- package/vendor/zlib/contrib/minizip/crypt.h +128 -0
- package/vendor/zlib/contrib/minizip/ints.h +57 -0
- package/vendor/zlib/contrib/minizip/ioapi.c +231 -0
- package/vendor/zlib/contrib/minizip/ioapi.h +183 -0
- package/vendor/zlib/contrib/minizip/iowin32.c +448 -0
- package/vendor/zlib/contrib/minizip/iowin32.h +28 -0
- package/vendor/zlib/contrib/minizip/make_vms.com +25 -0
- package/vendor/zlib/contrib/minizip/miniunz.c +647 -0
- package/vendor/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/vendor/zlib/contrib/minizip/minizip.1 +46 -0
- package/vendor/zlib/contrib/minizip/minizip.c +512 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.in +12 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.txt +13 -0
- package/vendor/zlib/contrib/minizip/minizipConfig.cmake.in +35 -0
- package/vendor/zlib/contrib/minizip/mztools.c +288 -0
- package/vendor/zlib/contrib/minizip/mztools.h +37 -0
- package/vendor/zlib/contrib/minizip/skipset.h +361 -0
- package/vendor/zlib/contrib/minizip/test/CMakeLists.txt +121 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/contrib/minizip/test/find_package_test.cmake.in +25 -0
- package/vendor/zlib/contrib/minizip/test/test_helper.cm +32 -0
- package/vendor/zlib/contrib/minizip/unzip.c +1981 -0
- package/vendor/zlib/contrib/minizip/unzip.h +441 -0
- package/vendor/zlib/contrib/minizip/zip.c +2199 -0
- package/vendor/zlib/contrib/minizip/zip.h +370 -0
- package/vendor/zlib/contrib/nuget/nuget.csproj +43 -0
- package/vendor/zlib/contrib/nuget/nuget.sln +22 -0
- package/vendor/zlib/contrib/pascal/example.pas +599 -0
- package/vendor/zlib/contrib/pascal/readme.txt +76 -0
- package/vendor/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/vendor/zlib/contrib/puff/Makefile +42 -0
- package/vendor/zlib/contrib/puff/README +63 -0
- package/vendor/zlib/contrib/puff/puff.c +840 -0
- package/vendor/zlib/contrib/puff/puff.h +35 -0
- package/vendor/zlib/contrib/puff/pufftest.c +169 -0
- package/vendor/zlib/contrib/puff/zeros.raw +0 -0
- package/vendor/zlib/contrib/testzlib/testzlib.c +275 -0
- package/vendor/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/vendor/zlib/contrib/untgz/Makefile +14 -0
- package/vendor/zlib/contrib/untgz/Makefile.msc +17 -0
- package/vendor/zlib/contrib/untgz/untgz.c +667 -0
- package/vendor/zlib/contrib/vstudio/readme.txt +81 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj +307 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj +412 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj.filters +55 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj +449 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj.filters +74 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.sln +135 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj +633 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj.filters +115 -0
- package/vendor/zlib/contrib/vstudio/vc11/miniunz.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/minizip.vcxproj +311 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlib.vcxproj +418 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlibdll.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibstat.vcxproj +456 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.sln +117 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.vcxproj +664 -0
- package/vendor/zlib/contrib/vstudio/vc12/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc14/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc17/miniunz.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/minizip.vcxproj +405 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlib.vcxproj +473 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlibdll.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibstat.vcxproj +602 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.sln +179 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.vcxproj +875 -0
- package/vendor/zlib/contrib/vstudio/vc9/miniunz.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/minizip.vcproj +562 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlib.vcproj +796 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlibdll.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibstat.vcproj +781 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.sln +144 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.vcproj +1100 -0
- package/vendor/zlib/crc32.c +1049 -0
- package/vendor/zlib/crc32.h +9446 -0
- package/vendor/zlib/deflate.c +2152 -0
- package/vendor/zlib/deflate.h +380 -0
- package/vendor/zlib/doc/algorithm.txt +209 -0
- package/vendor/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/vendor/zlib/doc/rfc1950.txt +619 -0
- package/vendor/zlib/doc/rfc1951.txt +955 -0
- package/vendor/zlib/doc/rfc1952.txt +675 -0
- package/vendor/zlib/doc/txtvsbin.txt +107 -0
- package/vendor/zlib/examples/README.examples +54 -0
- package/vendor/zlib/examples/enough.c +597 -0
- package/vendor/zlib/examples/fitblk.c +233 -0
- package/vendor/zlib/examples/gun.c +702 -0
- package/vendor/zlib/examples/gzappend.c +504 -0
- package/vendor/zlib/examples/gzjoin.c +449 -0
- package/vendor/zlib/examples/gzlog.c +1061 -0
- package/vendor/zlib/examples/gzlog.h +91 -0
- package/vendor/zlib/examples/gznorm.c +474 -0
- package/vendor/zlib/examples/zlib_how.html +549 -0
- package/vendor/zlib/examples/zpipe.c +209 -0
- package/vendor/zlib/examples/zran.c +550 -0
- package/vendor/zlib/examples/zran.h +53 -0
- package/vendor/zlib/gzclose.c +23 -0
- package/vendor/zlib/gzguts.h +215 -0
- package/vendor/zlib/gzlib.c +585 -0
- package/vendor/zlib/gzread.c +603 -0
- package/vendor/zlib/gzwrite.c +631 -0
- package/vendor/zlib/infback.c +628 -0
- package/vendor/zlib/inffast.c +320 -0
- package/vendor/zlib/inffast.h +11 -0
- package/vendor/zlib/inffixed.h +94 -0
- package/vendor/zlib/inflate.c +1526 -0
- package/vendor/zlib/inflate.h +126 -0
- package/vendor/zlib/inftrees.c +299 -0
- package/vendor/zlib/inftrees.h +62 -0
- package/vendor/zlib/make_vms.com +867 -0
- package/vendor/zlib/msdos/Makefile.bor +115 -0
- package/vendor/zlib/msdos/Makefile.dj2 +104 -0
- package/vendor/zlib/msdos/Makefile.emx +69 -0
- package/vendor/zlib/msdos/Makefile.msc +112 -0
- package/vendor/zlib/msdos/Makefile.tc +100 -0
- package/vendor/zlib/nintendods/Makefile +126 -0
- package/vendor/zlib/nintendods/README +5 -0
- package/vendor/zlib/old/Makefile.emx +69 -0
- package/vendor/zlib/old/Makefile.riscos +151 -0
- package/vendor/zlib/old/README +3 -0
- package/vendor/zlib/old/descrip.mms +48 -0
- package/vendor/zlib/old/os2/Makefile.os2 +136 -0
- package/vendor/zlib/old/os2/zlib.def +51 -0
- package/vendor/zlib/old/visual-basic.txt +160 -0
- package/vendor/zlib/os400/README400 +48 -0
- package/vendor/zlib/os400/bndsrc +133 -0
- package/vendor/zlib/os400/make.sh +366 -0
- package/vendor/zlib/os400/zlib.inc +531 -0
- package/vendor/zlib/qnx/package.qpg +141 -0
- package/vendor/zlib/test/CMakeLists.txt +265 -0
- package/vendor/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/test/example.c +552 -0
- package/vendor/zlib/test/find_package_test.cmake.in +26 -0
- package/vendor/zlib/test/infcover.c +672 -0
- package/vendor/zlib/test/minigzip.c +590 -0
- package/vendor/zlib/treebuild.xml +116 -0
- package/vendor/zlib/trees.c +1119 -0
- package/vendor/zlib/trees.h +128 -0
- package/vendor/zlib/uncompr.c +85 -0
- package/vendor/zlib/watcom/watcom_f.mak +43 -0
- package/vendor/zlib/watcom/watcom_l.mak +43 -0
- package/vendor/zlib/win32/DLL_FAQ.txt +381 -0
- package/vendor/zlib/win32/Makefile.bor +109 -0
- package/vendor/zlib/win32/Makefile.gcc +177 -0
- package/vendor/zlib/win32/Makefile.msc +159 -0
- package/vendor/zlib/win32/README-WIN32.txt +103 -0
- package/vendor/zlib/win32/VisualC.txt +3 -0
- package/vendor/zlib/win32/zlib.def +98 -0
- package/vendor/zlib/win32/zlib1.rc +37 -0
- package/vendor/zlib/zconf.h.in +544 -0
- package/vendor/zlib/zlib.3 +149 -0
- package/vendor/zlib/zlib.3.pdf +0 -0
- package/vendor/zlib/zlib.h +1957 -0
- package/vendor/zlib/zlib.map +104 -0
- package/vendor/zlib/zlib.pc.cmakein +13 -0
- package/vendor/zlib/zlib.pc.in +13 -0
- package/vendor/zlib/zlibConfig.cmake.in +26 -0
- package/vendor/zlib/zutil.c +299 -0
- package/vendor/zlib/zutil.h +257 -0
- package/vendor/zsign/.gitattributes +4 -0
- package/vendor/zsign/LICENSE +21 -0
- package/vendor/zsign/README.md +142 -0
- package/vendor/zsign/build/linux/Makefile +43 -0
- package/vendor/zsign/build/macos/Makefile +43 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/crypt.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/ioapi.h +216 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/iowin32.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/mztools.h +37 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/unzip.h +437 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/zip.h +364 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_EPILOGUE.H +22 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_PROLOGUE.H +26 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/aes.h +111 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/applink.c +153 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1.h +1133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1_mac.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1err.h +142 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1t.h +946 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/async.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asyncerr.h +29 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bio.h +1015 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bioerr.h +72 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/blowfish.h +78 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bn.h +590 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bnerr.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffer.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffererr.h +25 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/camellia.h +117 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cast.h +71 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmac.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp.h +727 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp_util.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmperr.h +131 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cms.h +508 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmserr.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comp.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comperr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf.h +214 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf_api.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conferr.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/configuration.h +188 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conftypes.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core.h +236 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_dispatch.h +1022 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_names.h +545 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_object.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmf.h +260 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmferr.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crypto.h +580 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr_legacy.h +1466 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ct.h +573 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cterr.h +45 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decoder.h +133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/des.h +211 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dh.h +339 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dherr.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsa.h +280 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsaerr.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dtls1.h +57 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_os2.h +310 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_ostime.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ebcdic.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ec.h +1588 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdh.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdsa.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecerr.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encoder.h +124 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engine.h +833 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engineerr.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/err.h +512 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ess.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/esserr.h +32 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evp.h +2231 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evperr.h +140 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fips_names.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fipskey.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hmac.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hpke.h +169 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/http.h +118 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/httperr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/idea.h +82 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/indicator.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdf.h +138 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdferr.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/lhash.h +398 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/macros.h +338 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md2.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md4.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md5.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/mdc2.h +55 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/modes.h +219 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/obj_mac.h +5820 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objects.h +184 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objectserr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsp.h +483 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsperr.h +53 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslconf.h +17 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslv.h +114 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ossl_typ.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/param_build.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/params.h +160 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem.h +543 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem2.h +19 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pemerr.h +58 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12.h +366 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12err.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7.h +430 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7err.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/prov_ssl.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/proverr.h +162 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/provider.h +66 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/quic.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rand.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/randerr.h +69 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc2.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc4.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc5.h +79 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ripemd.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsa.h +615 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsaerr.h +107 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/safestack.h +297 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/seed.h +113 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/self_test.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sha.h +139 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srp.h +285 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srtp.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl.h +2878 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl2.h +30 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl3.h +357 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr.h +379 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr_legacy.h +467 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/stack.h +90 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/store.h +377 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/storeerr.h +49 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/symhacks.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/thread.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tls1.h +1220 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/trace.h +320 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ts.h +522 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tserr.h +67 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/txt_db.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/types.h +245 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ui.h +407 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/uierr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/whrlpool.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509.h +1304 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_acert.h +263 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_vfy.h +902 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509err.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3.h +1500 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3err.h +96 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zconf.h +553 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zlib.h +1938 -0
- package/vendor/zsign/build/windows/vs2022/lib/minizip/x64/mt/minizip.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libcrypto.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libssl.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/zlib/x64/mt/zlib.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/common_win32.h +44 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.cpp +69 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.h +20 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.cpp +138 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.h +38 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj +177 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj.filters +120 -0
- package/vendor/zsign/build/windows/vs2022/zsign.sln +28 -0
- package/vendor/zsign/src/archo.cpp +742 -0
- package/vendor/zsign/src/archo.h +61 -0
- package/vendor/zsign/src/bundle.cpp +589 -0
- package/vendor/zsign/src/bundle.h +46 -0
- package/vendor/zsign/src/common/archive.cpp +246 -0
- package/vendor/zsign/src/common/archive.h +22 -0
- package/vendor/zsign/src/common/base64.cpp +166 -0
- package/vendor/zsign/src/common/base64.h +30 -0
- package/vendor/zsign/src/common/common.h +56 -0
- package/vendor/zsign/src/common/fs.cpp +573 -0
- package/vendor/zsign/src/common/fs.h +50 -0
- package/vendor/zsign/src/common/json.cpp +3380 -0
- package/vendor/zsign/src/common/json.h +530 -0
- package/vendor/zsign/src/common/log.cpp +145 -0
- package/vendor/zsign/src/common/log.h +37 -0
- package/vendor/zsign/src/common/mach-o.h +585 -0
- package/vendor/zsign/src/common/sha.cpp +133 -0
- package/vendor/zsign/src/common/sha.h +24 -0
- package/vendor/zsign/src/common/timer.cpp +28 -0
- package/vendor/zsign/src/common/timer.h +17 -0
- package/vendor/zsign/src/common/util.cpp +185 -0
- package/vendor/zsign/src/common/util.h +25 -0
- package/vendor/zsign/src/macho.cpp +273 -0
- package/vendor/zsign/src/macho.h +38 -0
- package/vendor/zsign/src/openssl.cpp +698 -0
- package/vendor/zsign/src/openssl.h +71 -0
- package/vendor/zsign/src/signing.cpp +745 -0
- package/vendor/zsign/src/signing.h +59 -0
- package/vendor/zsign/src/zsign.cpp +317 -0
- package/vendor/zsign/test/dylib/bin/demo1.dylib +0 -0
- package/vendor/zsign/test/dylib/bin/demo2.dylib +0 -0
- package/vendor/zsign/test/dylib/demo/Makefile +12 -0
- package/vendor/zsign/test/dylib/demo/control +9 -0
- package/vendor/zsign/test/dylib/demo/demo.m +21 -0
- package/vendor/zsign/test/linux/test.sh +19 -0
- package/vendor/zsign/test/macos/test.sh +19 -0
- package/vendor/zsign/test/windows/test.ps1 +17 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Makefile for zlib
|
|
2
|
+
# Borland C++
|
|
3
|
+
# Last updated: 15-Mar-2003
|
|
4
|
+
|
|
5
|
+
# To use, do "make -fmakefile.bor"
|
|
6
|
+
# To compile in small model, set below: MODEL=s
|
|
7
|
+
|
|
8
|
+
# WARNING: the small model is supported but only for small values of
|
|
9
|
+
# MAX_WBITS and MAX_MEM_LEVEL. For example:
|
|
10
|
+
# -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3
|
|
11
|
+
# If you wish to reduce the memory requirements (default 256K for big
|
|
12
|
+
# objects plus a few K), you can add to the LOC macro below:
|
|
13
|
+
# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
|
|
14
|
+
# See zconf.h for details about the memory requirements.
|
|
15
|
+
|
|
16
|
+
# ------------ Turbo C++, Borland C++ ------------
|
|
17
|
+
|
|
18
|
+
# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
|
|
19
|
+
# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
|
|
20
|
+
# to the declaration of LOC here:
|
|
21
|
+
LOC = $(LOCAL_ZLIB)
|
|
22
|
+
|
|
23
|
+
# type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
|
|
24
|
+
CPU_TYP = 0
|
|
25
|
+
|
|
26
|
+
# memory model: one of s, m, c, l (small, medium, compact, large)
|
|
27
|
+
MODEL=l
|
|
28
|
+
|
|
29
|
+
# replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
|
|
30
|
+
CC=bcc
|
|
31
|
+
LD=bcc
|
|
32
|
+
AR=tlib
|
|
33
|
+
|
|
34
|
+
# compiler flags
|
|
35
|
+
# replace "-O2" by "-O -G -a -d" for Turbo C++ 1.0
|
|
36
|
+
CFLAGS=-O2 -Z -m$(MODEL) $(LOC)
|
|
37
|
+
|
|
38
|
+
LDFLAGS=-m$(MODEL) -f-
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# variables
|
|
42
|
+
ZLIB_LIB = zlib_$(MODEL).lib
|
|
43
|
+
|
|
44
|
+
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
|
|
45
|
+
OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
|
|
46
|
+
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
|
|
47
|
+
OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# targets
|
|
51
|
+
all: $(ZLIB_LIB) example.exe minigzip.exe
|
|
52
|
+
|
|
53
|
+
.c.obj:
|
|
54
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
55
|
+
|
|
56
|
+
adler32.obj: adler32.c zlib.h zconf.h
|
|
57
|
+
|
|
58
|
+
compress.obj: compress.c zlib.h zconf.h
|
|
59
|
+
|
|
60
|
+
crc32.obj: crc32.c zlib.h zconf.h crc32.h
|
|
61
|
+
|
|
62
|
+
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
|
|
63
|
+
|
|
64
|
+
gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
|
|
65
|
+
|
|
66
|
+
gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
|
|
67
|
+
|
|
68
|
+
gzread.obj: gzread.c zlib.h zconf.h gzguts.h
|
|
69
|
+
|
|
70
|
+
gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
|
|
71
|
+
|
|
72
|
+
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
73
|
+
inffast.h inffixed.h
|
|
74
|
+
|
|
75
|
+
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
76
|
+
inffast.h
|
|
77
|
+
|
|
78
|
+
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
79
|
+
inffast.h inffixed.h
|
|
80
|
+
|
|
81
|
+
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
|
|
82
|
+
|
|
83
|
+
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
|
|
84
|
+
|
|
85
|
+
uncompr.obj: uncompr.c zlib.h zconf.h
|
|
86
|
+
|
|
87
|
+
zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
|
88
|
+
|
|
89
|
+
example.obj: test/example.c zlib.h zconf.h
|
|
90
|
+
|
|
91
|
+
minigzip.obj: test/minigzip.c zlib.h zconf.h
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# the command line is cut to fit in the MS-DOS 128 byte limit:
|
|
95
|
+
$(ZLIB_LIB): $(OBJ1) $(OBJ2)
|
|
96
|
+
-del $(ZLIB_LIB)
|
|
97
|
+
$(AR) $(ZLIB_LIB) $(OBJP1)
|
|
98
|
+
$(AR) $(ZLIB_LIB) $(OBJP2)
|
|
99
|
+
|
|
100
|
+
example.exe: example.obj $(ZLIB_LIB)
|
|
101
|
+
$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
|
|
102
|
+
|
|
103
|
+
minigzip.exe: minigzip.obj $(ZLIB_LIB)
|
|
104
|
+
$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
|
|
105
|
+
|
|
106
|
+
test: example.exe minigzip.exe
|
|
107
|
+
example
|
|
108
|
+
echo hello world | minigzip | minigzip -d
|
|
109
|
+
|
|
110
|
+
clean:
|
|
111
|
+
-del *.obj
|
|
112
|
+
-del *.lib
|
|
113
|
+
-del *.exe
|
|
114
|
+
-del zlib_*.bak
|
|
115
|
+
-del foo.gz
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96.
|
|
2
|
+
# Copyright (C) 1995-1998 Jean-loup Gailly.
|
|
3
|
+
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
|
|
5
|
+
# To compile, or to compile and test, type:
|
|
6
|
+
#
|
|
7
|
+
# make -fmakefile.dj2; make test -fmakefile.dj2
|
|
8
|
+
#
|
|
9
|
+
# To install libz.a, zconf.h and zlib.h in the djgpp directories, type:
|
|
10
|
+
#
|
|
11
|
+
# make install -fmakefile.dj2
|
|
12
|
+
#
|
|
13
|
+
# after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as
|
|
14
|
+
# in the sample below if the pattern of the DJGPP distribution is to
|
|
15
|
+
# be followed. Remember that, while <sp>'es around <=> are ignored in
|
|
16
|
+
# makefiles, they are *not* in batch files or in djgpp.env.
|
|
17
|
+
# - - - - -
|
|
18
|
+
# [make]
|
|
19
|
+
# INCLUDE_PATH=%\>;INCLUDE_PATH%%\DJDIR%\include
|
|
20
|
+
# LIBRARY_PATH=%\>;LIBRARY_PATH%%\DJDIR%\lib
|
|
21
|
+
# BUTT=-m486
|
|
22
|
+
# - - - - -
|
|
23
|
+
# Alternately, these variables may be defined below, overriding the values
|
|
24
|
+
# in djgpp.env, as
|
|
25
|
+
# INCLUDE_PATH=c:\usr\include
|
|
26
|
+
# LIBRARY_PATH=c:\usr\lib
|
|
27
|
+
|
|
28
|
+
CC=gcc
|
|
29
|
+
|
|
30
|
+
#CFLAGS=-MMD -O
|
|
31
|
+
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
32
|
+
#CFLAGS=-MMD -g -DZLIB_DEBUG
|
|
33
|
+
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith \
|
|
34
|
+
-Wstrict-prototypes -Wmissing-prototypes
|
|
35
|
+
|
|
36
|
+
# If cp.exe is available, replace "copy /Y" with "cp -fp" .
|
|
37
|
+
CP=copy /Y
|
|
38
|
+
# If gnu install.exe is available, replace $(CP) with ginstall.
|
|
39
|
+
INSTALL=$(CP)
|
|
40
|
+
# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
|
|
41
|
+
RM=del
|
|
42
|
+
LDLIBS=-L. -lz
|
|
43
|
+
LD=$(CC) -s -o
|
|
44
|
+
LDSHARED=$(CC)
|
|
45
|
+
|
|
46
|
+
INCL=zlib.h zconf.h
|
|
47
|
+
LIBS=libz.a
|
|
48
|
+
|
|
49
|
+
AR=ar rcs
|
|
50
|
+
|
|
51
|
+
prefix=/usr/local
|
|
52
|
+
exec_prefix = $(prefix)
|
|
53
|
+
|
|
54
|
+
OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
|
|
55
|
+
uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
|
|
56
|
+
|
|
57
|
+
OBJA =
|
|
58
|
+
# to use the asm code: make OBJA=match.o
|
|
59
|
+
|
|
60
|
+
TEST_OBJS = example.o minigzip.o
|
|
61
|
+
|
|
62
|
+
all: example.exe minigzip.exe
|
|
63
|
+
|
|
64
|
+
check: test
|
|
65
|
+
test: all
|
|
66
|
+
./example
|
|
67
|
+
echo hello world | .\minigzip | .\minigzip -d
|
|
68
|
+
|
|
69
|
+
%.o : %.c
|
|
70
|
+
$(CC) $(CFLAGS) -c $< -o $@
|
|
71
|
+
|
|
72
|
+
libz.a: $(OBJS) $(OBJA)
|
|
73
|
+
$(AR) $@ $(OBJS) $(OBJA)
|
|
74
|
+
|
|
75
|
+
%.exe : %.o $(LIBS)
|
|
76
|
+
$(LD) $@ $< $(LDLIBS)
|
|
77
|
+
|
|
78
|
+
# INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env .
|
|
79
|
+
|
|
80
|
+
.PHONY : uninstall clean
|
|
81
|
+
|
|
82
|
+
install: $(INCL) $(LIBS)
|
|
83
|
+
-@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH)
|
|
84
|
+
-@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH)
|
|
85
|
+
$(INSTALL) zlib.h $(INCLUDE_PATH)
|
|
86
|
+
$(INSTALL) zconf.h $(INCLUDE_PATH)
|
|
87
|
+
$(INSTALL) libz.a $(LIBRARY_PATH)
|
|
88
|
+
|
|
89
|
+
uninstall:
|
|
90
|
+
$(RM) $(INCLUDE_PATH)\zlib.h
|
|
91
|
+
$(RM) $(INCLUDE_PATH)\zconf.h
|
|
92
|
+
$(RM) $(LIBRARY_PATH)\libz.a
|
|
93
|
+
|
|
94
|
+
clean:
|
|
95
|
+
$(RM) *.d
|
|
96
|
+
$(RM) *.o
|
|
97
|
+
$(RM) *.exe
|
|
98
|
+
$(RM) libz.a
|
|
99
|
+
$(RM) foo.gz
|
|
100
|
+
|
|
101
|
+
DEPS := $(wildcard *.d)
|
|
102
|
+
ifneq ($(DEPS),)
|
|
103
|
+
include $(DEPS)
|
|
104
|
+
endif
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98.
|
|
2
|
+
# Copyright (C) 1995-1998 Jean-loup Gailly.
|
|
3
|
+
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
|
|
5
|
+
# To compile, or to compile and test, type:
|
|
6
|
+
#
|
|
7
|
+
# make -fmakefile.emx; make test -fmakefile.emx
|
|
8
|
+
#
|
|
9
|
+
|
|
10
|
+
CC=gcc
|
|
11
|
+
|
|
12
|
+
#CFLAGS=-MMD -O
|
|
13
|
+
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
14
|
+
#CFLAGS=-MMD -g -DZLIB_DEBUG
|
|
15
|
+
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
16
|
+
-Wstrict-prototypes -Wmissing-prototypes
|
|
17
|
+
|
|
18
|
+
# If cp.exe is available, replace "copy /Y" with "cp -fp" .
|
|
19
|
+
CP=copy /Y
|
|
20
|
+
# If gnu install.exe is available, replace $(CP) with ginstall.
|
|
21
|
+
INSTALL=$(CP)
|
|
22
|
+
# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
|
|
23
|
+
RM=del
|
|
24
|
+
LDLIBS=-L. -lzlib
|
|
25
|
+
LD=$(CC) -s -o
|
|
26
|
+
LDSHARED=$(CC)
|
|
27
|
+
|
|
28
|
+
INCL=zlib.h zconf.h
|
|
29
|
+
LIBS=zlib.a
|
|
30
|
+
|
|
31
|
+
AR=ar rcs
|
|
32
|
+
|
|
33
|
+
prefix=/usr/local
|
|
34
|
+
exec_prefix = $(prefix)
|
|
35
|
+
|
|
36
|
+
OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
|
|
37
|
+
uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
|
|
38
|
+
|
|
39
|
+
TEST_OBJS = example.o minigzip.o
|
|
40
|
+
|
|
41
|
+
all: example.exe minigzip.exe
|
|
42
|
+
|
|
43
|
+
test: all
|
|
44
|
+
./example
|
|
45
|
+
echo hello world | .\minigzip | .\minigzip -d
|
|
46
|
+
|
|
47
|
+
%.o : %.c
|
|
48
|
+
$(CC) $(CFLAGS) -c $< -o $@
|
|
49
|
+
|
|
50
|
+
zlib.a: $(OBJS)
|
|
51
|
+
$(AR) $@ $(OBJS)
|
|
52
|
+
|
|
53
|
+
%.exe : %.o $(LIBS)
|
|
54
|
+
$(LD) $@ $< $(LDLIBS)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.PHONY : clean
|
|
58
|
+
|
|
59
|
+
clean:
|
|
60
|
+
$(RM) *.d
|
|
61
|
+
$(RM) *.o
|
|
62
|
+
$(RM) *.exe
|
|
63
|
+
$(RM) zlib.a
|
|
64
|
+
$(RM) foo.gz
|
|
65
|
+
|
|
66
|
+
DEPS := $(wildcard *.d)
|
|
67
|
+
ifneq ($(DEPS),)
|
|
68
|
+
include $(DEPS)
|
|
69
|
+
endif
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Makefile for zlib
|
|
2
|
+
# Microsoft C 5.1 or later
|
|
3
|
+
# Last updated: 19-Mar-2003
|
|
4
|
+
|
|
5
|
+
# To use, do "make makefile.msc"
|
|
6
|
+
# To compile in small model, set below: MODEL=S
|
|
7
|
+
|
|
8
|
+
# If you wish to reduce the memory requirements (default 256K for big
|
|
9
|
+
# objects plus a few K), you can add to the LOC macro below:
|
|
10
|
+
# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
|
|
11
|
+
# See zconf.h for details about the memory requirements.
|
|
12
|
+
|
|
13
|
+
# ------------- Microsoft C 5.1 and later -------------
|
|
14
|
+
|
|
15
|
+
# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
|
|
16
|
+
# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
|
|
17
|
+
# to the declaration of LOC here:
|
|
18
|
+
LOC = $(LOCAL_ZLIB)
|
|
19
|
+
|
|
20
|
+
# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
|
|
21
|
+
CPU_TYP = 0
|
|
22
|
+
|
|
23
|
+
# Memory model: one of S, M, C, L (small, medium, compact, large)
|
|
24
|
+
MODEL=L
|
|
25
|
+
|
|
26
|
+
CC=cl
|
|
27
|
+
CFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC)
|
|
28
|
+
#-Ox generates bad code with MSC 5.1
|
|
29
|
+
LIB_CFLAGS=-Zl $(CFLAGS)
|
|
30
|
+
|
|
31
|
+
LD=link
|
|
32
|
+
LDFLAGS=/noi/e/st:0x1500/noe/farcall/packcode
|
|
33
|
+
# "/farcall/packcode" are only useful for `large code' memory models
|
|
34
|
+
# but should be a "no-op" for small code models.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# variables
|
|
38
|
+
ZLIB_LIB = zlib_$(MODEL).lib
|
|
39
|
+
|
|
40
|
+
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
|
|
41
|
+
OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# targets
|
|
45
|
+
all: $(ZLIB_LIB) example.exe minigzip.exe
|
|
46
|
+
|
|
47
|
+
.c.obj:
|
|
48
|
+
$(CC) -c $(LIB_CFLAGS) $*.c
|
|
49
|
+
|
|
50
|
+
adler32.obj: adler32.c zlib.h zconf.h
|
|
51
|
+
|
|
52
|
+
compress.obj: compress.c zlib.h zconf.h
|
|
53
|
+
|
|
54
|
+
crc32.obj: crc32.c zlib.h zconf.h crc32.h
|
|
55
|
+
|
|
56
|
+
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
|
|
57
|
+
|
|
58
|
+
gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
|
|
59
|
+
|
|
60
|
+
gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
|
|
61
|
+
|
|
62
|
+
gzread.obj: gzread.c zlib.h zconf.h gzguts.h
|
|
63
|
+
|
|
64
|
+
gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
|
|
65
|
+
|
|
66
|
+
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
67
|
+
inffast.h inffixed.h
|
|
68
|
+
|
|
69
|
+
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
70
|
+
inffast.h
|
|
71
|
+
|
|
72
|
+
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
73
|
+
inffast.h inffixed.h
|
|
74
|
+
|
|
75
|
+
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
|
|
76
|
+
|
|
77
|
+
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
|
|
78
|
+
|
|
79
|
+
uncompr.obj: uncompr.c zlib.h zconf.h
|
|
80
|
+
|
|
81
|
+
zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
|
82
|
+
|
|
83
|
+
example.obj: test/example.c zlib.h zconf.h
|
|
84
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
85
|
+
|
|
86
|
+
minigzip.obj: test/minigzip.c zlib.h zconf.h
|
|
87
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# the command line is cut to fit in the MS-DOS 128 byte limit:
|
|
91
|
+
$(ZLIB_LIB): $(OBJ1) $(OBJ2)
|
|
92
|
+
if exist $(ZLIB_LIB) del $(ZLIB_LIB)
|
|
93
|
+
lib $(ZLIB_LIB) $(OBJ1);
|
|
94
|
+
lib $(ZLIB_LIB) $(OBJ2);
|
|
95
|
+
|
|
96
|
+
example.exe: example.obj $(ZLIB_LIB)
|
|
97
|
+
$(LD) $(LDFLAGS) example.obj,,,$(ZLIB_LIB);
|
|
98
|
+
|
|
99
|
+
minigzip.exe: minigzip.obj $(ZLIB_LIB)
|
|
100
|
+
$(LD) $(LDFLAGS) minigzip.obj,,,$(ZLIB_LIB);
|
|
101
|
+
|
|
102
|
+
test: example.exe minigzip.exe
|
|
103
|
+
example
|
|
104
|
+
echo hello world | minigzip | minigzip -d
|
|
105
|
+
|
|
106
|
+
clean:
|
|
107
|
+
-del *.obj
|
|
108
|
+
-del *.lib
|
|
109
|
+
-del *.exe
|
|
110
|
+
-del *.map
|
|
111
|
+
-del zlib_*.bak
|
|
112
|
+
-del foo.gz
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Makefile for zlib
|
|
2
|
+
# Turbo C 2.01, Turbo C++ 1.01
|
|
3
|
+
# Last updated: 15-Mar-2003
|
|
4
|
+
|
|
5
|
+
# To use, do "make -fmakefile.tc"
|
|
6
|
+
# To compile in small model, set below: MODEL=s
|
|
7
|
+
|
|
8
|
+
# WARNING: the small model is supported but only for small values of
|
|
9
|
+
# MAX_WBITS and MAX_MEM_LEVEL. For example:
|
|
10
|
+
# -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
|
|
11
|
+
# If you wish to reduce the memory requirements (default 256K for big
|
|
12
|
+
# objects plus a few K), you can add to CFLAGS below:
|
|
13
|
+
# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
|
|
14
|
+
# See zconf.h for details about the memory requirements.
|
|
15
|
+
|
|
16
|
+
# ------------ Turbo C 2.01, Turbo C++ 1.01 ------------
|
|
17
|
+
MODEL=l
|
|
18
|
+
CC=tcc
|
|
19
|
+
LD=tcc
|
|
20
|
+
AR=tlib
|
|
21
|
+
# CFLAGS=-O2 -G -Z -m$(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
|
|
22
|
+
CFLAGS=-O2 -G -Z -m$(MODEL)
|
|
23
|
+
LDFLAGS=-m$(MODEL) -f-
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# variables
|
|
27
|
+
ZLIB_LIB = zlib_$(MODEL).lib
|
|
28
|
+
|
|
29
|
+
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
|
|
30
|
+
OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
|
|
31
|
+
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
|
|
32
|
+
OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# targets
|
|
36
|
+
all: $(ZLIB_LIB) example.exe minigzip.exe
|
|
37
|
+
|
|
38
|
+
.c.obj:
|
|
39
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
40
|
+
|
|
41
|
+
adler32.obj: adler32.c zlib.h zconf.h
|
|
42
|
+
|
|
43
|
+
compress.obj: compress.c zlib.h zconf.h
|
|
44
|
+
|
|
45
|
+
crc32.obj: crc32.c zlib.h zconf.h crc32.h
|
|
46
|
+
|
|
47
|
+
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
|
|
48
|
+
|
|
49
|
+
gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
|
|
50
|
+
|
|
51
|
+
gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
|
|
52
|
+
|
|
53
|
+
gzread.obj: gzread.c zlib.h zconf.h gzguts.h
|
|
54
|
+
|
|
55
|
+
gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
|
|
56
|
+
|
|
57
|
+
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
58
|
+
inffast.h inffixed.h
|
|
59
|
+
|
|
60
|
+
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
61
|
+
inffast.h
|
|
62
|
+
|
|
63
|
+
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
64
|
+
inffast.h inffixed.h
|
|
65
|
+
|
|
66
|
+
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
|
|
67
|
+
|
|
68
|
+
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
|
|
69
|
+
|
|
70
|
+
uncompr.obj: uncompr.c zlib.h zconf.h
|
|
71
|
+
|
|
72
|
+
zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
|
73
|
+
|
|
74
|
+
example.obj: test/example.c zlib.h zconf.h
|
|
75
|
+
|
|
76
|
+
minigzip.obj: test/minigzip.c zlib.h zconf.h
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# the command line is cut to fit in the MS-DOS 128 byte limit:
|
|
80
|
+
$(ZLIB_LIB): $(OBJ1) $(OBJ2)
|
|
81
|
+
-del $(ZLIB_LIB)
|
|
82
|
+
$(AR) $(ZLIB_LIB) $(OBJP1)
|
|
83
|
+
$(AR) $(ZLIB_LIB) $(OBJP2)
|
|
84
|
+
|
|
85
|
+
example.exe: example.obj $(ZLIB_LIB)
|
|
86
|
+
$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
|
|
87
|
+
|
|
88
|
+
minigzip.exe: minigzip.obj $(ZLIB_LIB)
|
|
89
|
+
$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
|
|
90
|
+
|
|
91
|
+
test: example.exe minigzip.exe
|
|
92
|
+
example
|
|
93
|
+
echo hello world | minigzip | minigzip -d
|
|
94
|
+
|
|
95
|
+
clean:
|
|
96
|
+
-del *.obj
|
|
97
|
+
-del *.lib
|
|
98
|
+
-del *.exe
|
|
99
|
+
-del zlib_*.bak
|
|
100
|
+
-del foo.gz
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
#---------------------------------------------------------------------------------
|
|
2
|
+
.SUFFIXES:
|
|
3
|
+
#---------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
ifeq ($(strip $(DEVKITARM)),)
|
|
6
|
+
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
|
|
7
|
+
endif
|
|
8
|
+
|
|
9
|
+
include $(DEVKITARM)/ds_rules
|
|
10
|
+
|
|
11
|
+
#---------------------------------------------------------------------------------
|
|
12
|
+
# TARGET is the name of the output
|
|
13
|
+
# BUILD is the directory where object files & intermediate files will be placed
|
|
14
|
+
# SOURCES is a list of directories containing source code
|
|
15
|
+
# DATA is a list of directories containing data files
|
|
16
|
+
# INCLUDES is a list of directories containing header files
|
|
17
|
+
#---------------------------------------------------------------------------------
|
|
18
|
+
TARGET := $(shell basename $(CURDIR))
|
|
19
|
+
BUILD := build
|
|
20
|
+
SOURCES := ../../
|
|
21
|
+
DATA := data
|
|
22
|
+
INCLUDES := include
|
|
23
|
+
|
|
24
|
+
#---------------------------------------------------------------------------------
|
|
25
|
+
# options for code generation
|
|
26
|
+
#---------------------------------------------------------------------------------
|
|
27
|
+
ARCH := -mthumb -mthumb-interwork
|
|
28
|
+
|
|
29
|
+
CFLAGS := -Wall -O2\
|
|
30
|
+
-march=armv5te -mtune=arm946e-s \
|
|
31
|
+
-fomit-frame-pointer -ffast-math \
|
|
32
|
+
$(ARCH)
|
|
33
|
+
|
|
34
|
+
CFLAGS += $(INCLUDE) -DARM9
|
|
35
|
+
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
|
|
36
|
+
|
|
37
|
+
ASFLAGS := $(ARCH) -march=armv5te -mtune=arm946e-s
|
|
38
|
+
LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
|
39
|
+
|
|
40
|
+
#---------------------------------------------------------------------------------
|
|
41
|
+
# list of directories containing libraries, this must be the top level containing
|
|
42
|
+
# include and lib
|
|
43
|
+
#---------------------------------------------------------------------------------
|
|
44
|
+
LIBDIRS := $(LIBNDS)
|
|
45
|
+
|
|
46
|
+
#---------------------------------------------------------------------------------
|
|
47
|
+
# no real need to edit anything past this point unless you need to add additional
|
|
48
|
+
# rules for different file extensions
|
|
49
|
+
#---------------------------------------------------------------------------------
|
|
50
|
+
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
|
51
|
+
#---------------------------------------------------------------------------------
|
|
52
|
+
|
|
53
|
+
export OUTPUT := $(CURDIR)/lib/libz.a
|
|
54
|
+
|
|
55
|
+
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
|
|
56
|
+
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
|
|
57
|
+
|
|
58
|
+
export DEPSDIR := $(CURDIR)/$(BUILD)
|
|
59
|
+
|
|
60
|
+
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
|
61
|
+
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
|
62
|
+
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
|
63
|
+
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
|
|
64
|
+
|
|
65
|
+
#---------------------------------------------------------------------------------
|
|
66
|
+
# use CXX for linking C++ projects, CC for standard C
|
|
67
|
+
#---------------------------------------------------------------------------------
|
|
68
|
+
ifeq ($(strip $(CPPFILES)),)
|
|
69
|
+
#---------------------------------------------------------------------------------
|
|
70
|
+
export LD := $(CC)
|
|
71
|
+
#---------------------------------------------------------------------------------
|
|
72
|
+
else
|
|
73
|
+
#---------------------------------------------------------------------------------
|
|
74
|
+
export LD := $(CXX)
|
|
75
|
+
#---------------------------------------------------------------------------------
|
|
76
|
+
endif
|
|
77
|
+
#---------------------------------------------------------------------------------
|
|
78
|
+
|
|
79
|
+
export OFILES := $(addsuffix .o,$(BINFILES)) \
|
|
80
|
+
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
|
81
|
+
|
|
82
|
+
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
|
83
|
+
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
|
84
|
+
-I$(CURDIR)/$(BUILD)
|
|
85
|
+
|
|
86
|
+
.PHONY: $(BUILD) clean all
|
|
87
|
+
|
|
88
|
+
#---------------------------------------------------------------------------------
|
|
89
|
+
all: $(BUILD)
|
|
90
|
+
@[ -d $@ ] || mkdir -p include
|
|
91
|
+
@cp ../../*.h include
|
|
92
|
+
|
|
93
|
+
lib:
|
|
94
|
+
@[ -d $@ ] || mkdir -p $@
|
|
95
|
+
|
|
96
|
+
$(BUILD): lib
|
|
97
|
+
@[ -d $@ ] || mkdir -p $@
|
|
98
|
+
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
|
99
|
+
|
|
100
|
+
#---------------------------------------------------------------------------------
|
|
101
|
+
clean:
|
|
102
|
+
@echo clean ...
|
|
103
|
+
@rm -fr $(BUILD) lib
|
|
104
|
+
|
|
105
|
+
#---------------------------------------------------------------------------------
|
|
106
|
+
else
|
|
107
|
+
|
|
108
|
+
DEPENDS := $(OFILES:.o=.d)
|
|
109
|
+
|
|
110
|
+
#---------------------------------------------------------------------------------
|
|
111
|
+
# main targets
|
|
112
|
+
#---------------------------------------------------------------------------------
|
|
113
|
+
$(OUTPUT) : $(OFILES)
|
|
114
|
+
|
|
115
|
+
#---------------------------------------------------------------------------------
|
|
116
|
+
%.bin.o : %.bin
|
|
117
|
+
#---------------------------------------------------------------------------------
|
|
118
|
+
@echo $(notdir $<)
|
|
119
|
+
@$(bin2o)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
-include $(DEPENDS)
|
|
123
|
+
|
|
124
|
+
#---------------------------------------------------------------------------------------
|
|
125
|
+
endif
|
|
126
|
+
#---------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/98.
|
|
2
|
+
# Copyright (C) 1995-1998 Jean-loup Gailly.
|
|
3
|
+
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
|
|
5
|
+
# To compile, or to compile and test, type:
|
|
6
|
+
#
|
|
7
|
+
# make -fmakefile.emx; make test -fmakefile.emx
|
|
8
|
+
#
|
|
9
|
+
|
|
10
|
+
CC=gcc -Zwin32
|
|
11
|
+
|
|
12
|
+
#CFLAGS=-MMD -O
|
|
13
|
+
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
14
|
+
#CFLAGS=-MMD -g -DZLIB_DEBUG
|
|
15
|
+
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
16
|
+
-Wstrict-prototypes -Wmissing-prototypes
|
|
17
|
+
|
|
18
|
+
# If cp.exe is available, replace "copy /Y" with "cp -fp" .
|
|
19
|
+
CP=copy /Y
|
|
20
|
+
# If gnu install.exe is available, replace $(CP) with ginstall.
|
|
21
|
+
INSTALL=$(CP)
|
|
22
|
+
# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
|
|
23
|
+
RM=del
|
|
24
|
+
LDLIBS=-L. -lzlib
|
|
25
|
+
LD=$(CC) -s -o
|
|
26
|
+
LDSHARED=$(CC)
|
|
27
|
+
|
|
28
|
+
INCL=zlib.h zconf.h
|
|
29
|
+
LIBS=zlib.a
|
|
30
|
+
|
|
31
|
+
AR=ar rcs
|
|
32
|
+
|
|
33
|
+
prefix=/usr/local
|
|
34
|
+
exec_prefix = $(prefix)
|
|
35
|
+
|
|
36
|
+
OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \
|
|
37
|
+
gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
|
|
38
|
+
|
|
39
|
+
TEST_OBJS = example.o minigzip.o
|
|
40
|
+
|
|
41
|
+
all: example.exe minigzip.exe
|
|
42
|
+
|
|
43
|
+
test: all
|
|
44
|
+
./example
|
|
45
|
+
echo hello world | .\minigzip | .\minigzip -d
|
|
46
|
+
|
|
47
|
+
%.o : %.c
|
|
48
|
+
$(CC) $(CFLAGS) -c $< -o $@
|
|
49
|
+
|
|
50
|
+
zlib.a: $(OBJS)
|
|
51
|
+
$(AR) $@ $(OBJS)
|
|
52
|
+
|
|
53
|
+
%.exe : %.o $(LIBS)
|
|
54
|
+
$(LD) $@ $< $(LDLIBS)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.PHONY : clean
|
|
58
|
+
|
|
59
|
+
clean:
|
|
60
|
+
$(RM) *.d
|
|
61
|
+
$(RM) *.o
|
|
62
|
+
$(RM) *.exe
|
|
63
|
+
$(RM) zlib.a
|
|
64
|
+
$(RM) foo.gz
|
|
65
|
+
|
|
66
|
+
DEPS := $(wildcard *.d)
|
|
67
|
+
ifneq ($(DEPS),)
|
|
68
|
+
include $(DEPS)
|
|
69
|
+
endif
|