Home | History | Annotate | Line # | Download | only in libbz2
Makefile revision 1.20.8.1
      1 #	$NetBSD: Makefile,v 1.20.8.1 2023/10/08 14:35:23 martin Exp $
      2 
      3 USE_FORT?= yes	# data driven bugs?
      4 
      5 NOMAN=		# defined
      6 
      7 .include <bsd.own.mk>
      8 
      9 LIB=		bz2
     10 DIST=		${NETBSDSRCDIR}/external/bsd/bzip2/dist
     11 .PATH:		${DIST}
     12 
     13 SRCS=		blocksort.c huffman.c crctable.c randtable.c compress.c \
     14 		decompress.c bzlib.c
     15 INCS=		bzlib.h
     16 INCSDIR=	/usr/include
     17 
     18 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
     19 COPTS+=		-Wno-error=implicit-fallthrough
     20 .endif
     21 
     22 # XXX blocksort.c gets mis-compiled with 4.1
     23 .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \
     24     defined(HAVE_GCC)
     25 COPTS.blocksort.c+=	-fno-loop-optimize
     26 .endif
     27 
     28 .if ${MKSHARE} != "no"
     29 FILESDIR=	/usr/share/doc/reference/ref1/bzip2
     30 FILES=		manual.html
     31 .endif
     32 
     33 .include <bsd.info.mk>
     34 .include <bsd.lib.mk>
     35