URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [zlib/] [win32/] [Makefile.bor] - Rev 15
Compare with Previous | Blame | View Log
# Makefile for zlib# Borland C++ for Win32## Updated for zlib 1.2.x by Cosmin Truta, 11-Mar-2003# Last updated: 28-Aug-2003## 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 = bcc32AS = bcc32LD = bcc32AR = tlibCFLAGS = -a -d -k- -O2 $(LOC)ASFLAGS = $(LOC)LDFLAGS = $(LOC)# variablesZLIB_LIB = zlib.libOBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.objOBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj#OBJA =OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.objOBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj#OBJPA=# targetsall: $(ZLIB_LIB) example.exe minigzip.exe.c.obj:$(CC) -c $(CFLAGS) $<.asm.obj:$(AS) -c $(ASFLAGS) $<adler32.obj: adler32.c zlib.h zconf.hcompress.obj: compress.c zlib.h zconf.hcrc32.obj: crc32.c zlib.h zconf.h crc32.hdeflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.hgzio.obj: gzio.c zutil.h zlib.h zconf.hinfback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \inffast.h inffixed.hinffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \inffast.hinflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \inffast.h inffixed.hinftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.htrees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.huncompr.obj: uncompr.c zlib.h zconf.hzutil.obj: zutil.c zutil.h zlib.h zconf.hexample.obj: example.c zlib.h zconf.hminigzip.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)# testingtest: example.exe minigzip.exeexampleecho hello world | minigzip | minigzip -dexample.exe: example.obj $(ZLIB_LIB)$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)minigzip.exe: minigzip.obj $(ZLIB_LIB)$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)# cleanupclean:-del *.obj-del *.lib-del *.exe-del *.tds-del zlib.bak-del foo.gz
