From d7790611c185ee3e0ea33efcded27447281785bb Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 23 Oct 2014 23:14:23 +0000 Subject: [PATCH] Hook libxo to the build. Sponsored by: Juniper Networks, Inc. --- etc/mtree/BSD.include.dist | 2 ++ lib/Makefile | 1 + lib/libxo/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 lib/libxo/Makefile diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist index 3462d7ed9b9..fd543870cd7 100644 --- a/etc/mtree/BSD.include.dist +++ b/etc/mtree/BSD.include.dist @@ -249,6 +249,8 @@ .. libmilter .. + libxo + .. lzma .. machine diff --git a/lib/Makefile b/lib/Makefile index b683a90f6ff..b1f0de0dd90 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -106,6 +106,7 @@ SUBDIR= ${SUBDIR_ORDERED} \ ${_libvgl} \ ${_libvmmapi} \ libwrap \ + libxo \ liby \ ${_libypclnt} \ libz \ diff --git a/lib/libxo/Makefile b/lib/libxo/Makefile new file mode 100644 index 00000000000..644b71f4a9c --- /dev/null +++ b/lib/libxo/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +LIBXO= ${.CURDIR:H:H}/contrib/libxo + +.PATH: ${LIBXO}/libxo + +LIB= xo +SHLIB_MAJOR=0 + +SRCS= libxo.c + +CFLAGS+=-I${LIBXO}/libxo + +INCS= xo.h +INCSDIR=${INCLUDEDIR}/libxo + +MAN+= libxo.3 +MAN+= xo_attr.3 \ + xo_create.3 \ + xo_emit.3 \ + xo_err.3 \ + xo_finish.3 \ + xo_flush.3 \ + xo_no_setlocale.3 \ + xo_open_container.3 \ + xo_open_list.3 \ + xo_parse_args.3 \ + xo_set_allocator.3 \ + xo_set_flags.3 \ + xo_set_info.3 \ + xo_set_options.3 \ + xo_set_style.3 \ + xo_set_writer.3 +MAN+= xo_format.5 + +.include