URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [zlib/] [msdos/] [Makefile.tc] - Rev 745
Compare with Previous | Blame | View Log
# Makefile for zlib# Turbo C 2.01, Turbo C++ 1.01# Last updated: 15-Mar-2003# To use, do "make -fmakefile.tc"# To compile in small model, set below: MODEL=s# WARNING: the small model is supported but only for small values of# MAX_WBITS and MAX_MEM_LEVEL. For example:# -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3# If you wish to reduce the memory requirements (default 256K for big# objects plus a few K), you can add to CFLAGS below:# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14# See zconf.h for details about the memory requirements.# ------------ Turbo C 2.01, Turbo C++ 1.01 ------------MODEL=lCC=tccLD=tccAR=tlib# CFLAGS=-O2 -G -Z -m$(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3CFLAGS=-O2 -G -Z -m$(MODEL)LDFLAGS=-m$(MODEL) -f-# variablesZLIB_LIB = zlib_$(MODEL).libOBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.objOBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.objOBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.objOBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj# targetsall: $(ZLIB_LIB) example.exe minigzip.exe.c.obj:$(CC) -c $(CFLAGS) $*.cadler32.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# the command line is cut to fit in the MS-DOS 128 byte limit:$(ZLIB_LIB): $(OBJ1) $(OBJ2)-del $(ZLIB_LIB)$(AR) $(ZLIB_LIB) $(OBJP1)$(AR) $(ZLIB_LIB) $(OBJP2)example.exe: example.obj $(ZLIB_LIB)$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)minigzip.exe: minigzip.obj $(ZLIB_LIB)$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)test: example.exe minigzip.exeexampleecho hello world | minigzip | minigzip -dclean:-del *.obj-del *.lib-del *.exe-del zlib_*.bak-del foo.gz
