Home | History | Annotate | Line # | Download | only in x_gzip
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 2020/06/03 07:06:18 rin Exp $
      2 # Build a tiny limited gzip (i.e. for tiny boot media)
      3 
      4 SRCDIR=         ${.CURDIR}/../../../usr.bin/gzip
      5 
      6 PROG=		gzip
      7 NOMAN=		# defined
      8 
      9 CPPFLAGS+=	-DSMALL
     10 CPPFLAGS+=	-DNO_BZIP2_SUPPORT
     11 CPPFLAGS+=	-DNO_COMPRESS_SUPPORT
     12 CPPFLAGS+=	-DNO_PACK_SUPPORT
     13 CPPFLAGS+=	-DNO_LZ_SUPPORT
     14 CPPFLAGS+=	${"${USE_XZ_SETS:Uno}"!="no":?:-DNO_XZ_SUPPORT}
     15 
     16 # for crunched binaries this does not take effect, also check the
     17 # LIBS entry in the lists file
     18 DPADD=		${LIBZ}
     19 LDADD=		-lz
     20 .if ${USE_XZ_SETS:Uno} != "no"
     21 DPADD+=		${LIBLZMA}
     22 LDADD+=		-llzma
     23 .endif
     24 
     25 .include <bsd.prog.mk>
     26 
     27 .PATH:		${SRCDIR}
     28