PERFORCE change 171270 for review
Rafal Jaworowski
raj at FreeBSD.org
Wed Dec 2 14:48:43 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=171270
Change 171270 by raj at raj_fdt on 2009/12/02 14:47:55
Fix build errors when using 'buildenv' target to build dtc.
Affected files ...
.. //depot/projects/fdt/gnu/usr.bin/dtc/Makefile#2 edit
Differences ...
==== //depot/projects/fdt/gnu/usr.bin/dtc/Makefile#2 (text+ko) ====
@@ -8,7 +8,7 @@
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
+ fdt_sw.c fdt_wip.c $(DTCDIR)/version_gen.h
CFLAGS = -Wall -g -Os -fPIC -Wpointer-arith -Wcast-qual
CFLAGS+= -I. -I${.CURDIR} -I${DTCDIR} -I${DTCDIR}/libfdt
@@ -18,21 +18,20 @@
VERSIONSUB!= awk '/^SUBLEVEL =/ { print $$3 }' $(DTCDIR)/Makefile
VERSIONEXTRA!= $(DTCDIR)/scripts/setlocalversion
-DTCVERSION= ${VERSIONMAJ}.${VERSIONMIN}.${VERSIONSUB}${VERSIONEXTRA}
-DTCVERSIONFILE= version_gen.h
+DTCVERSION:= ${VERSIONMAJ}.${VERSIONMIN}.${VERSIONSUB}${VERSIONEXTRA}
+DTCVERSIONFILE:= $(DTCDIR)/version_gen.h
MAN=
BISON= yacc
LEX= lex
-OBJS+= $(DTCVERSIONFILE) dtc-parser.tab.o dtc-lexer.lex.o
+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 ${DTCVERSION}
@echo '#define DTC_VERSION "DTC ${DTCVERSION}"' > ${DTCVERSIONFILE}
dtc-parser.tab.o: dtc-parser.tab.c dtc-parser.tab.h
More information about the p4-projects
mailing list