mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-23 10:06:25 +01:00
Add a bmakefile for zlib.
This commit is contained in:
parent
b91de0e172
commit
b1c8a8dffe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17653
35
lib/libz/Makefile
Normal file
35
lib/libz/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
MAINTAINER=peter@FreeBSD.org
|
||||
|
||||
LIB= z
|
||||
|
||||
#CFLAGS+= -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
||||
#CFLAGS+= -g -DDEBUG
|
||||
#CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
||||
# -Wstrict-prototypes -Wmissing-prototypes
|
||||
|
||||
CLEANFILES+= example.o example 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
|
||||
|
||||
beforeinstall:
|
||||
${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} zlib.h zconf.h \
|
||||
${DESTDIR}/usr/include
|
||||
|
||||
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>
|
Loading…
Reference in New Issue
Block a user