2018-05-01 22:59:42 +03:00
|
|
|
# $NetBSD: Makefile,v 1.5 2018/05/01 19:59:46 christos Exp $
|
2017-06-06 01:44:40 +03:00
|
|
|
|
2018-05-01 22:59:42 +03:00
|
|
|
.include <bsd.hostinit.mk>
|
2017-06-06 01:44:40 +03:00
|
|
|
|
2017-06-08 20:16:44 +03:00
|
|
|
LIBFDT_DIR= ${.CURDIR}/../../sys/external/bsd/libfdt/dist
|
|
|
|
HOST_CPPFLAGS+= -I${LIBFDT_DIR}
|
|
|
|
|
2017-06-06 01:44:40 +03:00
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}dtc
|
|
|
|
HOST_SRCDIR= external/gpl2/dtc/usr.bin/dtc
|
|
|
|
|
|
|
|
FDTOBJ!= cd ${.CURDIR}/../libfdt && ${PRINTOBJDIR}
|
|
|
|
LDADD+= -L${FDTOBJ} -lfdt
|
|
|
|
|
|
|
|
.include "${.CURDIR}/../Makefile.nbincludes"
|
|
|
|
.include "${.CURDIR}/../Makefile.host"
|