Module Name:    src
Committed By:   skrll
Date:           Tue Jun  6 07:45:39 UTC 2017

Added Files:
        src/tools/libfdt: Makefile

Log Message:
Add libfdt


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tools/libfdt/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/tools/libfdt/Makefile
diff -u /dev/null src/tools/libfdt/Makefile:1.1
--- /dev/null	Tue Jun  6 07:45:39 2017
+++ src/tools/libfdt/Makefile	Tue Jun  6 07:45:39 2017
@@ -0,0 +1,24 @@
+#	$NetBSD: Makefile,v 1.1 2017/06/06 07:45:39 skrll Exp $
+
+HOSTLIB=	fdt
+
+.include <bsd.own.mk>
+
+LIBFDT_DIR=	${.CURDIR}/../../external/gpl2/dtc/dist/libfdt
+
+.include "${LIBFDT_DIR}/Makefile.libfdt"
+
+SRCS=	${LIBFDT_SRCS}
+
+CPPFLAGS+=	-I${.CURDIR}/../compat -I${LIBFDT_DIR}
+CPPFLAGS+=	-I${TOOLDIR}/include/nbinclude
+
+.PATH:		${LIBFDT_DIR}
+
+CPPFLAGS+=	-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
+
+HOST_CPPFLAGS:=	${CPPFLAGS} ${HOST_CPPFLAGS}
+CPPFLAGS:=	# empty
+
+.include "${.CURDIR}/../Makefile.nbincludes"
+.include <bsd.hostlib.mk>

Reply via email to