1#         $NetBSD: Makefile,v 1.14 2018/05/01 19:59:46 christos Exp $
2
3.include <bsd.hostinit.mk>
4
5HOSTPROGNAME=       ${MACHINE_GNU_PLATFORM}-install
6HOST_SRCDIR=        usr.bin/xinstall
7CPPFLAGS+=          -I${.CURDIR}/../compat/sys
8CPPFLAGS+=          -DTARGET_STRIP=\"${STRIP}\"
9
10# Prevent Makefile.host from trying to use the version of libnbcompat
11# from ${TOOLDIR}.
12NOCOMPATLIB=
13
14# Use uninstalled copy of host-mkdep
15HOST_MKDEP_OBJ!= cd ${.CURDIR}/../host-mkdep && ${PRINTOBJDIR}
16HOST_MKDEP=         ${HOST_MKDEP_OBJ}/host-mkdep
17MKDEP=              ${HOST_MKDEP}
18
19# Use uninstalled copy of libnbcompat and associated *.h files
20COMPATLIB_UNINSTALLED= yes
21COMPATOBJ!=         cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
22.-include "${COMPATOBJ}/defs.mk"
23
24.include "${.CURDIR}/../Makefile.host"
25
26# Use uninstalled copy of the install program
27INSTALL=  ./xinstall
28
29