⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zlibdll.txt

📁 GSview 4.6 PostScript previewer。Ghostscript在MS-Windows, OS/2 and Unix下的图形化接口
💻 TXT
📖 第 1 页 / 共 3 页
字号:
diff -c ./ChangeLog ../zlib_bcc/ChangeLog
*** ./ChangeLog	Wed Jul 24 15:55:10 1996
--- ../zlib_bcc/ChangeLog	Sun Nov 24 22:05:56 1996
***************
*** 1,6 ****
--- 1,14 ----
  
  		ChangeLog file for zlib
  
+ Changes in 1.0.X (24 Nov 96)
+ - Add EXPORT to a number of functions to match prototypes.
+ - Add Win32 DLL target for Borland C++ 4.5 (Makefile.bor, zconf.h, 
+   zlib32.def, zlib32.rc).
+   Renamed zlib.def to zlib32.def, zlib.rc to zlib32.rc
+ - Add Win16 DLL target (Makefile.bor, zlib16.def, zlib16.rc)
+ - Add OS/2  DLL target (Makefile.emx, zlib16.def, zlib16.rc)
+ 
  Changes in 1.0.4 (24 Jul 96)
  - In very rare conditions, deflate(s, Z_FINISH) could fail to produce an EOF
    bit, so the decompressor could decompress all the correct data but went
diff -c ./INDEX ../zlib_bcc/INDEX
*** ./INDEX	Tue Jul 09 11:27:08 1996
--- ../zlib_bcc/INDEX	Sun Nov 24 21:52:34 1996
***************
*** 3,9 ****
  Make_vms.com	script for Vax/VMS
  Makefile	makefile for Unix (generated by configure)
  Makefile.b32	makefile for Borland C++   32-bit
! Makefile.bor	makefile for Borland C/C++ 16-bit
  Makefile.dj2	makefile for DJGPP 2.x
  Makefile.in	makefile for Unix (template for configure)
  Makefile.msc	makefile for Microsoft C 16-bit
--- 3,10 ----
  Make_vms.com	script for Vax/VMS
  Makefile	makefile for Unix (generated by configure)
  Makefile.b32	makefile for Borland C++   32-bit
! Makefile.bor	makefile for Borland C/C++ 16-bit, DLL 16 & 32-bit
! Makefile.emx	makefile for OS/2 EMX/GCC 32-bit and DLL
  Makefile.dj2	makefile for DJGPP 2.x
  Makefile.in	makefile for Unix (template for configure)
  Makefile.msc	makefile for Microsoft C 16-bit
***************
*** 15,22 ****
  algorithm.doc	description of the compression & decompression algorithms
  configure	configure script for Unix
  descrip.mms	makefile for Vax/VMS
! zlib.def        definition file for Windows DLL
! zlib.rc         definition file for Windows DLL
  
  
  		zlib public header files (must be kept):
--- 16,27 ----
  algorithm.doc	description of the compression & decompression algorithms
  configure	configure script for Unix
  descrip.mms	makefile for Vax/VMS
! zlib16.def      definition file for Windows DLL 16-bit
! zlib16.rc       definition file for Windows DLL 16-bit
! zlib32.def      definition file for Windows DLL 32-bit
! zlib32.rc       definition file for Windows DLL 32-bit
! zlib2.def       definition file for OS/2 DLL 32-bit
! zlib2.rc        definition file for OS/2 DLL 32-bit
  
  
  		zlib public header files (must be kept):
diff -c ./Makefile.bor ../zlib_bcc/Makefile.bor
*** ./Makefile.bor	Tue Jan 30 22:59:08 1996
--- ../zlib_bcc/Makefile.bor	Sun Nov 24 22:04:36 1996
***************
*** 1,5 ****
  # Makefile for zlib
! # Borland C++   ************ UNTESTED ***********
  
  # To use, do "make -fmakefile.bor"
  # To compile in small model, set below: MODEL=-ms
--- 1,6 ----
  # Makefile for zlib
! # Borland C++
! # tested with zlib 1.0.4, BC++ 4.5
  
  # To use, do "make -fmakefile.bor"
  # To compile in small model, set below: MODEL=-ms
***************
*** 13,25 ****
  # See zconf.h for details about the memory requirements.
  
  # ------------- Turbo C++, Borland C++ -------------
  MODEL=-ml
  CFLAGS=-O2 -Z $(MODEL)
  CC=bcc
  LD=bcc
  LIB=tlib
- #   replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
  LDFLAGS=$(MODEL)
  O=.obj
  
  # variables
--- 14,56 ----
  # See zconf.h for details about the memory requirements.
  
  # ------------- Turbo C++, Borland C++ -------------
+ #Default is 16-bit EXE (DLL=0, WIN32=0)
+ #DLL=1 for DLL
+ DLL=0
+ #WIN32=1 for Win32 platform
+ WIN32=0
+ 
+ #   replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
+ !if $(WIN32)
+ MODEL=
+ CFLAGS=-O2 -Z $(MODEL)
+ CC=bcc32
+ LD=bcc32
+ LIB=tlib
+ !else
  MODEL=-ml
  CFLAGS=-O2 -Z $(MODEL)
  CC=bcc
  LD=bcc
  LIB=tlib
  LDFLAGS=$(MODEL)
+ !endif
+ 
+ !if $(DLL)
+ CMAKEDLL=-WD -DZLIB_DLL -D_WINDOWS -DMAKE_DLL
+ INCLUDE=c:\bc45\include
+ CUSEDLL1=-DZLIB_DLL -D_WINDOWS
+ !if $(WIN32)
+ BITS=32
+ LDFLAGS=-WC $(CUSEDLL1)
+ CUSEDLL=-WC $(CUSEDLL1)
+ !else
+ BITS=16
+ LDFLAGS=-WE $(MODEL) $(CUSEDLL1)
+ CUSEDLL=-WE $(CUSEDLL1)
+ !endif
+ !endif
+ 
  O=.obj
  
  # variables
***************
*** 35,94 ****
  all: test
  
  adler32.obj: adler32.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  compress.obj: compress.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  crc32.obj: crc32.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  gzio.obj: gzio.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
     infcodes.h infutil.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
     infcodes.h inffast.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  uncompr.obj: uncompr.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  zutil.obj: zutil.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  example.obj: example.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  minigzip.obj: minigzip.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $*.c
  
  # we must cut the command line to fit in the MS/DOS 128 byte limit:
  zlib.lib: $(OBJ1) $(OBJ2)
  	del zlib.lib
  	$(LIB) zlib +$(OBJP1)
  	$(LIB) zlib +$(OBJP2)
  
  example.exe: example.obj zlib.lib
  	$(LD) $(LDFLAGS) example.obj zlib.lib
--- 66,156 ----
  all: test
  
  adler32.obj: adler32.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  compress.obj: compress.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  crc32.obj: crc32.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  gzio.obj: gzio.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
     infcodes.h infutil.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
     infcodes.h inffast.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  uncompr.obj: uncompr.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  zutil.obj: zutil.c zutil.h zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
  
  example.obj: example.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CUSEDLL) $*.c
  
  minigzip.obj: minigzip.c zlib.h zconf.h
! 	$(CC) -c $(CFLAGS) $(CUSEDLL) $*.c
  
+ zlib32.dll: $(OBJ1) $(OBJ2) zlib32.def zlib32.rc
+ 	$(CC) $(CFLAGS) $(CMAKEDLL) -ezlib32.dll @&&!
+ $(OBJ1)
+ $(OBJ2)
+ !
+ 	brcc32 -i$(INCLUDE) zlib32.rc zlib32.dll
+ 
+ zlib16.dll: $(OBJ1) $(OBJ2) zlib16.def zlib16.rc
+ 	$(CC) $(CFLAGS) $(CMAKEDLL) -ezlib16.dll @&&!
+ $(OBJ1)
+ $(OBJ2)
+ !
+ 	brcc -i$(INCLUDE) zlib16.rc zlib16.dll 
+ 
+ !if $(DLL)
+ !if $(WIN32)
+ # ----- WIN32 DLL -----
+ zlib.lib: zlib32.dll
+ 	implib zlib32.lib zlib32.dll
+ 	-del zlib.lib
+ 	copy zlib32.lib zlib.lib
+ !else
+ # ----- WIN16 DLL -----
+ zlib.lib: zlib16.dll
+ 	implib zlib16.lib zlib16.dll
+ 	-del zlib.lib
+ 	copy zlib16.lib zlib.lib
+ !endif
+ !else
+ # ----- Normal library -----
  # we must cut the command line to fit in the MS/DOS 128 byte limit:
  zlib.lib: $(OBJ1) $(OBJ2)
  	del zlib.lib
  	$(LIB) zlib +$(OBJP1)
  	$(LIB) zlib +$(OBJP2)
+ !endif
  
  example.exe: example.obj zlib.lib
  	$(LD) $(LDFLAGS) example.obj zlib.lib
***************
*** 98,105 ****
  
  test: example.exe minigzip.exe
  	example
  	echo hello world | minigzip | minigzip -d 
  
! #clean:
! #	del *.obj
! #	del *.exe
--- 160,173 ----
  
  test: example.exe minigzip.exe
  	example
+ !if !($(DLL) && !$(WIN32))
  	echo hello world | minigzip | minigzip -d 
+ !endif
  
! 	
! 	
! clean:
! 	del *.obj
! 	del *.exe
! 	del *.res
! 	del *.dll
diff -c ./Makefile.emx ../zlib_bcc/Makefile.emx
*** ./Makefile.emx	Sun Nov 24 22:02:26 1996
--- ../zlib_bcc/Makefile.emx	Sun Nov 24 22:04:12 1996
***************
*** 0 ****
--- 1,133 ----
+ # Makefile for zlib
+ # GCC/EMX 0.9b
+ 
+ # To use, do "nmake -f makefile.emx"
+ 
+ # ------------- GCC/EMX -------------
+ #Default is 32-bit EXE (DLL=0)
+ #DLL=1 for DLL
+ DLL=1
+ 
+ DRIVE=c:
+ COMP=gcc
+ COMPBASE=$(DRIVE)\emx
+ EMXPATH=$(DRIVE)/emx
+ INCLUDE=$(EMXPATH)/include
+ !if $(DLL)
+ CMAKEDLL=-Zdll -Zso -Zsys -DZLIB_DLL
+ CUSEDLL=-DZLIB_DLL
+ !else
+ #nothing yet
+ !endif
+ CFLAGS=-O -Wall -Zomf -Zmts -DOS2 $(CDEBUG)
+ LDFLAGS=-Zomf -Zmts
+ 
+ CC=$(COMPBASE)\bin\$(COMP) -I$(INCLUDE)
+ LD=$(CC)
+ LIB=$(COMPBASE)\bin\emxomfar rc
+ 
+ O=.obj
+ 
+ # variables
+ OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
+   trees$(O)
+ OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
+   trees$(O)
+ OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
+   infutil$(O) inffast$(O)
+ OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
+   infutil$(O)+inffast$(O)
+ 
+ all: test
+ 
+ adler32.obj: adler32.c zutil.h zlib.h zconf.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ compress.obj: compress.c zlib.h zconf.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ crc32.obj: crc32.c zutil.h zlib.h zconf.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ gzio.obj: gzio.c zutil.h zlib.h zconf.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
+    infcodes.h infutil.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
+    infcodes.h inffast.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
+ 	$(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+ 
+ infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -