| # Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/98. |
| # Copyright (C) 1995-1998 Jean-loup Gailly. |
| # For conditions of distribution and use, see copyright notice in zlib.h |
| # To compile, or to compile and test, type: |
| # make -fmakefile.emx; make test -fmakefile.emx |
| #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 |
| #CFLAGS=-MMD -g -DZLIB_DEBUG |
| CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ |
| -Wstrict-prototypes -Wmissing-prototypes |
| # If cp.exe is available, replace "copy /Y" with "cp -fp" . |
| # If gnu install.exe is available, replace $(CP) with ginstall. |
| # The default value of RM is "rm -f." If "rm.exe" is found, comment out: |
| OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \ |
| gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o |
| TEST_OBJS = example.o minigzip.o |
| all: example.exe minigzip.exe |
| echo hello world | .\minigzip | .\minigzip -d |
| $(CC) $(CFLAGS) -c $< -o $@ |