NetBSD/distrib/utils/x_gzip/Makefile

28 lines
634 B
Makefile

# $NetBSD: Makefile,v 1.11 2020/06/03 07:06:18 rin Exp $
# Build a tiny limited gzip (i.e. for tiny boot media)
SRCDIR= ${.CURDIR}/../../../usr.bin/gzip
PROG= gzip
NOMAN= # defined
CPPFLAGS+= -DSMALL
CPPFLAGS+= -DNO_BZIP2_SUPPORT
CPPFLAGS+= -DNO_COMPRESS_SUPPORT
CPPFLAGS+= -DNO_PACK_SUPPORT
CPPFLAGS+= -DNO_LZ_SUPPORT
CPPFLAGS+= ${"${USE_XZ_SETS:Uno}"!="no":?:-DNO_XZ_SUPPORT}
# for crunched binaries this does not take effect, also check the
# LIBS entry in the lists file
DPADD= ${LIBZ}
LDADD= -lz
.if ${USE_XZ_SETS:Uno} != "no"
DPADD+= ${LIBLZMA}
LDADD+= -llzma
.endif
.include <bsd.prog.mk>
.PATH: ${SRCDIR}