opnsense-src/lib/libxo/encoder/csv/Makefile
Phil Shafer 2db46b45f4 Allow proper builds of libxo's CSV encoder:
- Move libxo.a build to subdirectory (lib/libxo/libxo/Makefile)
- Add .WAIT target to delay encoder build til after libxo
- Use FILES to install encoder library as csv.enc
- Update import script to put xo_config.h in new location
2019-12-16 22:05:03 +00:00

37 lines
861 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
PACKAGE= runtime
LIBXOSRC= ${SRCTOP}/contrib/libxo
.PATH: ${LIBXOSRC}/encoder/csv
# We use FILES to install the encoder library under the proper/magic
# name, in the proper/magic directory. libxo looks for encoders from
# "--libxo encoder=name" as "${prefix}/lib/libxo/encoder/${name}.enc"
FILES = libenc_csv.so
FILESNAME_libenc_csv.so= csv.enc
FILESDIR = /usr/lib/libxo/encoder
LIB= enc_csv
SHLIB_MAJOR=0
SHLIB_NAME= lib${LIB}.so
SRCS= enc_csv.c
CFLAGS+=-I${LIBXOSRC}/libxo -I${.CURDIR}
CFLAGS+=-DXO_ENCODERDIR=\"/usr/lib/libxo/encoder\"
LIBADD= util xo
LDFLAGS += -L${.OBJDIR:H:H}/libxo
WARNS?= 5
# Need to define a fake "install" target to block the one in bsd.lib.mk,
# since that one will install our lib in the wrong place (/usr/lib/).
install: realinstall
.include <bsd.lib.mk>
.include <bsd.files.mk>