Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools Add support for libprop as a host tool library.
details: https://anonhg.NetBSD.org/src/rev/1f9bd30fb34c
branches: trunk
changeset: 451120:1f9bd30fb34c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue May 07 04:29:45 2019 +0000
description:
Add support for libprop as a host tool library.
diffstat:
tools/Makefile | 4 ++--
tools/libprop/Makefile | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r cf5785b5240a -r 1f9bd30fb34c tools/Makefile
--- a/tools/Makefile Tue May 07 04:21:09 2019 +0000
+++ b/tools/Makefile Tue May 07 04:29:45 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.201 2019/04/03 15:22:05 joerg Exp $
+# $NetBSD: Makefile,v 1.202 2019/05/07 04:29:45 thorpej Exp $
.include <bsd.own.mk>
.include <bsd.endian.mk>
@@ -101,7 +101,7 @@
.endif
SUBDIR+= cat rpcgen join lorder m4 mkdep tsort xz-include .WAIT yacc .WAIT awk .WAIT lex
-SUBDIR+= grep xz-lib
+SUBDIR+= grep xz-lib libprop
.if ${TOOLS_BUILDRUMP} == "no"
SUBDIR += .WAIT texinfo \
diff -r cf5785b5240a -r 1f9bd30fb34c tools/libprop/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/libprop/Makefile Tue May 07 04:29:45 2019 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/05/07 04:29:45 thorpej Exp $
+
+HOSTLIB= prop
+
+.include <bsd.hostinit.mk>
+
+LIBPROP_DIR= ${.CURDIR}/../../common/lib/libprop
+LIBPROP_INC= ${.CURDIR}/../../common/include
+
+.include "${LIBPROP_DIR}/Makefile.inc"
+
+CPPFLAGS+= -I${.CURDIR}/../compat -I${LIBPROP_INC}
+CPPFLAGS+= -I${TOOLDIR}/include/nbinclude
+
+.PATH: ${LIBPROP_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>
Home |
Main Index |
Thread Index |
Old Index