79de2555b1
Now when a lib is marked as PRIVATELIB it is renamed into libprivate$foo instead of being installed in /usr/lib/private and playing with rpath. Also allow to install headers for PRIVATELIBS in that case the headers will be installed in /usr/include/private/$foo Keep the headers under a private namespace to prevent third party build system to easily find them to ensure they are only used on purpose. This allows for non base applications to statically link against a library in base which is linked to a privatelib Treating PRIVATELIBS as regular libraries allows to push them into our current compatX packages if needed. While here finish promotion of libevent as PRIVATELIB Install header for bsdstat and libucl Differential Revision: https://reviews.freebsd.org/D2365 Reviewed by: brooks, des Discussed with: imp
30 lines
445 B
Makefile
30 lines
445 B
Makefile
# $FreeBSD$
|
|
|
|
LIBUCL= ${.CURDIR}/../../contrib/libucl
|
|
|
|
LIB= ucl
|
|
PRIVATELIB= true
|
|
SHLIB_MAJOR= 1
|
|
SRCS= ucl_emitter_streamline.c \
|
|
ucl_emitter_utils.c \
|
|
ucl_emitter.c \
|
|
ucl_hash.c \
|
|
ucl_parser.c \
|
|
ucl_schema.c \
|
|
ucl_util.c \
|
|
xxhash.c
|
|
|
|
.PATH: ${LIBUCL}/src \
|
|
${LIBUCL}/include
|
|
|
|
INCS= ucl.h
|
|
LIBADD= m
|
|
|
|
WARNS= 1
|
|
CFLAGS+= -I${LIBUCL}/include \
|
|
-I${LIBUCL}/src \
|
|
-I${LIBUCL}/uthash \
|
|
-I${LIBUCL}/klib
|
|
|
|
.include <bsd.lib.mk>
|