mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 23:43:35 +00:00
35 lines
807 B
Makefile
35 lines
807 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
MAINTAINER=peter@FreeBSD.org
|
|
|
|
LIB= z
|
|
MAN= zlib.3
|
|
|
|
#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
#CFLAGS+= -g -DDEBUG
|
|
#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
# -Wstrict-prototypes -Wmissing-prototypes
|
|
|
|
CFLAGS+= -DHAS_snprintf -DHAS_vsnprintf
|
|
|
|
CLEANFILES+= example.o example foo.gz minigzip.o minigzip
|
|
|
|
SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
|
|
zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c
|
|
INCS= zconf.h zlib.h
|
|
|
|
minigzip: all minigzip.o
|
|
$(CC) -o minigzip minigzip.o -L. -lz
|
|
|
|
example: all example.o
|
|
$(CC) -o example example.o -L. -lz
|
|
|
|
test: example minigzip
|
|
(export LD_LIBRARY_PATH=. ; ./example )
|
|
(export LD_LIBRARY_PATH=. ; \
|
|
echo hello world | ./minigzip | ./minigzip -d )
|
|
|
|
.include <bsd.lib.mk>
|