10 COMPATOBJ!= cd ${.CURDIR}/../compat && ${PRINTOBJDIR}
11 .-include "${COMPATOBJ}/defs.mk"
14 # Resolve pathnames in variables.
15 _RESOLVE_VARS= CFLAGS CPPFLAGS DPADD HOST_CPPFLAGS LDADD
16 .for var in ${_RESOLVE_VARS}
20 # Switch over to the "real" Makefile.
21 .PROGDIR:= ${.CURDIR}/../../${HOST_SRCDIR}
27 .include "${.CURDIR}/Makefile"
28 .-include "${.CURDIR}/../Makefile.inc"
30 # Resolve pathnames from "real" Makefile, and switch .CURDIR back.
31 .for var in ${_RESOLVE_VARS}
37 # Set up the environment for <bsd.hostprog.mk>.
38 .if ${USETOOLS} != "yes"
42 HOSTPROGNAME?= ${HOSTPROG}
43 HOST_BINDIR?= ${TOOLDIR}/bin
44 HOST_CPPFLAGS:= ${HOST_CPPFLAGS} ${CPPFLAGS}
53 realinstall: install.host install.files
54 install.host: ${HOST_BINDIR}/${HOSTPROGNAME}
55 ${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG}
57 mkdir -p ${HOST_BINDIR}
58 ${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET}
60 .if ${MKUPDATE} == "no"
61 .PHONY: ${HOST_BINDIR}/${HOSTPROGNAME}
65 .for F in ${HOSTFILES}
66 install.files: ${HOST_FILESDIR}/${F}
67 ${HOST_FILESDIR}/${F}: ${F}
69 mkdir -p ${HOST_FILESDIR}
70 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
72 .if ${MKUPDATE} == "no"
73 .PHONY: ${HOST_FILESDIR}/${F}
77 .include <bsd.hostprog.mk>