freebsd-dev/lib/libxo/encoder/csv/Makefile
Tijl Coosemans 3eee8f1cbb Fix installation of libxo encoder modules.
Because the install location was hardcoded in the Makefile as
/usr/lib/libxo/encoder, the lib32 version was installed over the native
version.  Replace /usr/lib with ${LIBDIR}.

Also define SHLIB_NAME instead of LIB + FILES.  This prevents building a
static library.

MFC after:	2 weeks
2020-05-31 17:20:17 +00:00

25 lines
372 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
PACKAGE= runtime
LIBXOSRC= ${SRCTOP}/contrib/libxo
.PATH: ${LIBXOSRC}/encoder/csv
SHLIBDIR= ${LIBDIR}/libxo/encoder
SHLIB_NAME= csv.enc
SRCS= enc_csv.c
CFLAGS+=-I${LIBXOSRC}/libxo -I${.CURDIR}
CFLAGS+=-DXO_ENCODERDIR=\"${LIBDIR}/libxo/encoder\"
LIBADD= util xo
LDFLAGS += -L${.OBJDIR:H:H}/libxo
WARNS?= 5
.include <bsd.lib.mk>