[Midnightbsd-cvs] src [10456] trunk/gnu/usr.bin/dtc: add dtc

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jun 6 19:46:00 EDT 2018


Revision: 10456
          http://svnweb.midnightbsd.org/src/?rev=10456
Author:   laffer1
Date:     2018-06-06 19:45:59 -0400 (Wed, 06 Jun 2018)
Log Message:
-----------
add dtc

Added Paths:
-----------
    trunk/gnu/usr.bin/dtc/
    trunk/gnu/usr.bin/dtc/Makefile

Added: trunk/gnu/usr.bin/dtc/Makefile
===================================================================
--- trunk/gnu/usr.bin/dtc/Makefile	                        (rev 0)
+++ trunk/gnu/usr.bin/dtc/Makefile	2018-06-06 23:45:59 UTC (rev 10456)
@@ -0,0 +1,52 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/dtc/Makefile 210101 2010-07-15 02:22:50Z marcel $
+
+.include <bsd.own.mk>
+
+DTCDIR=	${.CURDIR}/../../../contrib/dtc
+LIBFDTDIR= ${.CURDIR}/../../../sys/contrib/libfdt
+.PATH: ${DTCDIR} ${LIBFDTDIR}
+
+PROG=	dtc
+
+SRCS=	dtc.c checks.c fstree.c livetree.c treesource.c data.c \
+	flattree.c srcpos.c util.c \
+	fdt.c fdt_ro.c fdt_rw.c fdt_strerror.c \
+	fdt_sw.c fdt_wip.c ${DTCVERSIONFILE}
+
+WARNS?=	2
+CFLAGS+= -I. -I${.CURDIR} -I${DTCDIR} -I${LIBFDTDIR}
+
+VERSIONMAJ!= awk '/^VERSION =/ { print $$3 }' ${DTCDIR}/Makefile
+VERSIONMIN!= awk '/^PATCHLEVEL =/ { print $$3 }' ${DTCDIR}/Makefile
+VERSIONSUB!= awk '/^SUBLEVEL =/ { print $$3 }' ${DTCDIR}/Makefile
+VERSIONEXTRA=
+
+DTCVERSION:=	${VERSIONMAJ}.${VERSIONMIN}.${VERSIONSUB}${VERSIONEXTRA}
+DTCVERSIONFILE:=	version_gen.h
+
+MAN=
+
+BISON=	yacc
+LEX=	lex
+
+OBJS+= dtc-parser.tab.o dtc-lexer.lex.o
+
+CLEANFILES+= dtc-parser.tab.o dtc-lexer.lex.o dtc-parser.tab.c \
+		dtc-parser.tab.h dtc-lexer.lex.c ${DTCVERSIONFILE}
+
+${DTCVERSIONFILE}:
+	@echo '#define DTC_VERSION "DTC ${DTCVERSION}"' > ${DTCVERSIONFILE}
+
+dtc-parser.tab.o:	dtc-parser.tab.c dtc-parser.tab.h
+dtc-lexer.lex.o:	dtc-lexer.lex.c dtc-parser.tab.h
+
+dtc-parser.tab.c:	dtc-parser.y
+	${BISON} -o$@ -d ${DTCDIR}/dtc-parser.y
+
+dtc-parser.tab.h:	dtc-parser.tab.c
+
+dtc-lexer.lex.c: dtc-lexer.l
+	${LEX} -o$@ ${DTCDIR}/dtc-lexer.l
+
+.include <bsd.prog.mk>


Property changes on: trunk/gnu/usr.bin/dtc/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list