Add build glue (from skrll)

This commit is contained in:
christos 2017-06-05 18:59:43 +00:00
parent f8d365c3eb
commit 461d2d6a4c
8 changed files with 60 additions and 0 deletions

5
external/gpl2/dtc/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2017/06/05 18:59:43 christos Exp $
SUBDIR = lib .WAIT usr.bin
.include <bsd.subdir.mk>

4
external/gpl2/dtc/Makefile.inc vendored Normal file
View File

@ -0,0 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2017/06/05 18:59:43 christos Exp $
BINDIR= /usr/bin
DIST= ${NETBSDSRCDIR}/external/gpl2/dtc/dist

5
external/gpl2/dtc/lib/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2017/06/05 18:59:43 christos Exp $
SUBDIR+= libfdt
.include <bsd.subdir.mk>

19
external/gpl2/dtc/lib/libfdt/Makefile vendored Normal file
View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2017/06/05 18:59:43 christos Exp $
LIBISPRIVATE= yes
.include <bsd.own.mk>
LIB= fdt
.include "${.CURDIR}/../../Makefile.inc"
.include "${.CURDIR}/../../dist/libfdt/Makefile.libfdt"
SRCS= ${LIBFDT_SRCS}
CPPFLAGS+= -I ${DIST}/libfdt
.PATH: ${DIST}/libfdt
.include <bsd.lib.mk>

5
external/gpl2/dtc/usr.bin/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2017/06/05 18:59:43 christos Exp $
SUBDIR+= dtc
.include <bsd.subdir.mk>

View File

21
external/gpl2/dtc/usr.bin/dtc/Makefile vendored Normal file
View File

@ -0,0 +1,21 @@
# $NetBSD: Makefile,v 1.1 2017/06/05 18:59:43 christos Exp $
NOMAN= # defined
.include <bsd.own.mk>
PROG= dtc
.include "${.CURDIR}/../../Makefile.inc"
.include "${DIST}/Makefile.dtc"
CPPFLAGS+= -I${.CURDIR}
CPPFLAGS+= -I${DIST}
CPPFLAGS+= -I${DIST}/libfdt
SRCS+= ${DTC_SRCS} dtc-lexer.l dtc-parser.y
YFLAGS+= -d -L
.PATH: ${DIST}
.include <bsd.prog.mk>

View File

@ -0,0 +1 @@
#define DTC_VERSION "DTC 1.4.1"