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