diff options
| author | thorpej <thorpej@NetBSD.org> | 2019-05-07 04:29:45 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2019-05-07 04:29:45 +0000 |
| commit | cb4e524cd3ddbaee5850fbdde86c2ad713fc4c33 (patch) | |
| tree | 9eecdac5826a6887e14d1c3cdece2d36f0dace7c /tools | |
| parent | 3d7291476d91065aa2fb0db71259a863188d2856 (diff) | |
Add support for libprop as a host tool library.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/Makefile | 4 | ||||
| -rw-r--r-- | tools/libprop/Makefile | 23 |
2 files changed, 25 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile index e93bc4534b1..b6d1481b343 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -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 @@ SUBDIR+= cap_mkdb crunchgen ctags gencat hexdump \ .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 --git a/tools/libprop/Makefile b/tools/libprop/Makefile new file mode 100644 index 00000000000..d1f03ab4aa4 --- /dev/null +++ b/tools/libprop/Makefile @@ -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> |
