1# 2# $Id$ 3# 4 5MAINTAINER=peter@FreeBSD.org 6 7LIB= z 8 9#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 10#CFLAGS+= -g -DDEBUG 11#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 12# -Wstrict-prototypes -Wmissing-prototypes 13 14CLEANFILES+= example.o example minigzip.o minigzip 15 16SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \ 17 zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c 18 19beforeinstall: 20.for hdr in zconf.h zlib.h 21 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${hdr} \ 22 ${DESTDIR}/usr/include 23.endfor 24 25minigzip: all minigzip.o 26 $(CC) -o minigzip minigzip.o -L. -lz 27 28example: all example.o 29 $(CC) -o example example.o -L. -lz 30 31test: example minigzip 32 (export LD_LIBRARY_PATH=. ; ./example ) 33 (export LD_LIBRARY_PATH=. ; \ 34 echo hello world | ./minigzip | ./minigzip -d ) 35 36.include <bsd.lib.mk> 37