Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Makefile.bor
Package: zlib124.zip [view]
Upload User: shengde
Upload Date: 2021-02-21
Package Size: 638k
Code Size: 3k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- # Makefile for zlib
- # Borland C++ for Win32
- #
- # Usage:
- # make -f win32/Makefile.bor
- # make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj
- # ------------ Borland C++ ------------
- # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
- # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
- # added to the declaration of LOC here:
- LOC = $(LOCAL_ZLIB)
- CC = bcc32
- AS = bcc32
- LD = bcc32
- AR = tlib
- CFLAGS = -a -d -k- -O2 $(LOC)
- ASFLAGS = $(LOC)
- LDFLAGS = $(LOC)
- # variables
- ZLIB_LIB = zlib.lib
- OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
- OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
- #OBJA =
- OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
- OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
- #OBJPA=
- # targets
- all: $(ZLIB_LIB) example.exe minigzip.exe
- .c.obj:
- $(CC) -c $(CFLAGS) $<
- .asm.obj:
- $(AS) -c $(ASFLAGS) $<
- adler32.obj: adler32.c zlib.h zconf.h
- compress.obj: compress.c zlib.h zconf.h
- crc32.obj: crc32.c zlib.h zconf.h crc32.h
- deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
- gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
- gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
- gzread.obj: gzread.c zlib.h zconf.h gzguts.h
- gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
- infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h
- inffast.h inffixed.h
- inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h
- inffast.h
- inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h
- inffast.h inffixed.h
- inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
- trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
- uncompr.obj: uncompr.c zlib.h zconf.h
- zutil.obj: zutil.c zutil.h zlib.h zconf.h
- example.obj: example.c zlib.h zconf.h
- minigzip.obj: minigzip.c zlib.h zconf.h
- # For the sake of the old Borland make,
- # the command line is cut to fit in the MS-DOS 128 byte limit:
- $(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
- -del $(ZLIB_LIB)
- $(AR) $(ZLIB_LIB) $(OBJP1)
- $(AR) $(ZLIB_LIB) $(OBJP2)
- $(AR) $(ZLIB_LIB) $(OBJPA)
- # testing
- test: example.exe minigzip.exe
- example
- echo hello world | minigzip | minigzip -d
- example.exe: example.obj $(ZLIB_LIB)
- $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
- minigzip.exe: minigzip.obj $(ZLIB_LIB)
- $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
- # cleanup
- clean:
- -del $(ZLIB_LIB)
- -del *.obj
- -del *.exe
- -del *.tds
- -del zlib.bak
- -del foo.gz