#	$NetBSD: Makefile,v 1.6 2026/04/28 15:21:14 tsutsui Exp $

.include <bsd.hostinit.mk>

#
# Do *not* set HOSTPROG or HOSTLIB at this point otherwise
# it will create a loop trying to extract the object directory.
#
.include "Makefile.inc"

CONFIGURE_ARGS+=	--enable-threads=no --disable-nls --disable-sandbox
CONFIGURE_ARGS+=	--disable-assembler
.if ${MAKEVERBOSE} == 0
CONFIGURE_ARGS+=	--silent
.endif

config.status: ${XZSRCDIR}/configure
	${HOST_SH} ${XZSRCDIR}/configure ${CONFIGURE_ARGS} \
	    CC=${HOST_CC:Q} CPPFLAGS=${HOST_CPPFLAGS:Q}

CLEANFILES+=	config.log config.status config.h libtool stamp-h1

realdepends realall: config.status

.include <bsd.hostprog.mk>
