Home | History | Annotate | Line # | Download | only in x_gzip
      1 #	$NetBSD: Makefile,v 1.12 2022/07/10 04:01:07 mrg 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 
     17 # for crunched binaries this does not take effect, also check the
     18 # LIBS entry in the lists file
     19 DPADD=		${LIBZ}
     20 LDADD=		-lz
     21 
     22 .if ${USE_XZ_SETS:Uno} != "no"
     23 DPADD+=		${LIBLZMA}
     24 LDADD+=		-llzma
     25 .else
     26 CPPFLAGS+=	-DNO_XZ_SUPPORT
     27 .endif
     28 
     29 .include <bsd.prog.mk>
     30 
     31 .PATH:		${SRCDIR}
     32