1 # $NetBSD: Makefile,v 1.13 2026/05/01 02:18:08 christos Exp $ 2 # Build a tiny limited gzip (i.e. for tiny boot media) 3 4 .include <bsd.own.mk> 5 6 SRCDIR= ${.CURDIR}/../../../usr.bin/gzip 7 8 PROG= gzip 9 NOMAN= # defined 10 11 CPPFLAGS+= -DSMALL 12 CPPFLAGS+= -DNO_BZIP2_SUPPORT 13 CPPFLAGS+= -DNO_COMPRESS_SUPPORT 14 CPPFLAGS+= -DNO_PACK_SUPPORT 15 CPPFLAGS+= -DNO_LZ_SUPPORT 16 CPPFLAGS+= -DNO_ZSTD_SUPPORT 17 18 # for crunched binaries this does not take effect, also check the 19 # LIBS entry in the lists file 20 DPADD= ${LIBZ} 21 LDADD= -lz 22 23 .if ${USE_XZ_SETS:Uno} != "no" 24 DPADD+= ${LIBLZMA} 25 LDADD+= -llzma 26 .else 27 CPPFLAGS+= -DNO_XZ_SUPPORT 28 .endif 29 30 .include <bsd.prog.mk> 31 32 .PATH: ${SRCDIR} 33