3eee8f1cbb
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
25 lines
372 B
Makefile
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>
|