Blame thirdparty/zlib-1.2.8/contrib/minizip/make_vms.com
|
kusano |
fc6ab3 |
$ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig
|
|
kusano |
fc6ab3 |
$ open/write zdef vmsdefs.h
|
|
kusano |
fc6ab3 |
$ copy sys$input: zdef
|
|
kusano |
fc6ab3 |
$ deck
|
|
kusano |
fc6ab3 |
#define unix
|
|
kusano |
fc6ab3 |
#define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from
|
|
kusano |
fc6ab3 |
#define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator
|
|
kusano |
fc6ab3 |
#define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord
|
|
kusano |
fc6ab3 |
#define Write_EndOfCentralDirectoryRecord Write_EoDRecord
|
|
kusano |
fc6ab3 |
$ eod
|
|
kusano |
fc6ab3 |
$ close zdef
|
|
kusano |
fc6ab3 |
$ copy vmsdefs.h,ioapi.h_orig ioapi.h
|
|
kusano |
fc6ab3 |
$ cc/include=[--]/prefix=all ioapi.c
|
|
kusano |
fc6ab3 |
$ cc/include=[--]/prefix=all miniunz.c
|
|
kusano |
fc6ab3 |
$ cc/include=[--]/prefix=all unzip.c
|
|
kusano |
fc6ab3 |
$ cc/include=[--]/prefix=all minizip.c
|
|
kusano |
fc6ab3 |
$ cc/include=[--]/prefix=all zip.c
|
|
kusano |
fc6ab3 |
$ link miniunz,unzip,ioapi,[--]libz.olb/lib
|
|
kusano |
fc6ab3 |
$ link minizip,zip,ioapi,[--]libz.olb/lib
|
|
kusano |
fc6ab3 |
$ mcr []minizip test minizip_info.txt
|
|
kusano |
fc6ab3 |
$ mcr []miniunz -l test.zip
|
|
kusano |
fc6ab3 |
$ rename minizip_info.txt; minizip_info.txt_old
|
|
kusano |
fc6ab3 |
$ mcr []miniunz test.zip
|
|
kusano |
fc6ab3 |
$ delete test.zip;*
|
|
kusano |
fc6ab3 |
$exit
|