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