Makefile revision 50476
1193323Sed# 2193323Sed# $FreeBSD: head/lib/libz/Makefile 50476 1999-08-28 00:22:10Z peter $ 3193323Sed# 4193323Sed 5193323SedMAINTAINER=peter@FreeBSD.org 6193323Sed 7193323SedLIB= z 8193323SedMAN3= zlib.3 9193323Sed 10193323Sed#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 11193323Sed#CFLAGS+= -g -DDEBUG 12193323Sed#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 13193323Sed# -Wstrict-prototypes -Wmissing-prototypes 14193323Sed 15193323SedCLEANFILES+= example.o example foo.gz minigzip.o minigzip 16193323Sed 17193323SedSRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \ 18193323Sed zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c 19193323Sed 20193323Sedbeforeinstall: 21193323Sed.for hdr in zconf.h zlib.h 22193323Sed ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${hdr} \ 23193323Sed ${DESTDIR}/usr/include 24193323Sed.endfor 25193323Sed 26193323Sedminigzip: all minigzip.o 27193323Sed $(CC) -o minigzip minigzip.o -L. -lz 28193323Sed 29193323Sedexample: all example.o 30193323Sed $(CC) -o example example.o -L. -lz 31193323Sed 32193323Sedtest: example minigzip 33193323Sed (export LD_LIBRARY_PATH=. ; ./example ) 34212904Sdim (export LD_LIBRARY_PATH=. ; \ 35212904Sdim echo hello world | ./minigzip | ./minigzip -d ) 36193323Sed 37193323Sed.include <bsd.lib.mk> 38224145Sdim