Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/zdump add defines



details:   https://anonhg.NetBSD.org/src/rev/2ca276904d09
branches:  trunk
changeset: 332758:2ca276904d09
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 07 22:20:02 2014 +0000

description:
add defines

diffstat:

 usr.sbin/zdump/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r c91a04d12acb -r 2ca276904d09 usr.sbin/zdump/Makefile
--- a/usr.sbin/zdump/Makefile   Tue Oct 07 22:14:46 2014 +0000
+++ b/usr.sbin/zdump/Makefile   Tue Oct 07 22:20:02 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2013/03/02 21:39:14 christos Exp $
+#      $NetBSD: Makefile,v 1.9 2014/10/07 22:20:02 christos Exp $
 
 .include "${.PARSEDIR}/../zic/Makefile.inc"
 .include <bsd.own.mk>
@@ -7,6 +7,9 @@
 SRCS=  zdump.c ialloc.c
 MAN=   zdump.8
 
+TZVERSION!= ${TOOL_SED} -ne 's/VERSION=[       ]*//p' ${NETBSDSRCDIR}/lib/libc/time/Makefile
+CPPFLAGS+=-DPKGVERSION='"(tzcode) "' -DTZVERSION='"${TZVERSION}"'
+
 COPTS.zdump.c += -Wno-format-nonliteral
 
 .PATH: ${NETBSDSRCDIR}/lib/libc/time



Home | Main Index | Thread Index | Old Index