1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE= runtime 6 7LIBXOSRC= ${SRCTOP}/contrib/libxo 8 9.PATH: ${LIBXOSRC}/encoder/csv 10 11# We use FILES to install the encoder library under the proper/magic 12# name, in the proper/magic directory. libxo looks for encoders from 13# "--libxo encoder=name" as "${prefix}/lib/libxo/encoder/${name}.enc" 14FILES = libenc_csv.so 15FILESNAME_libenc_csv.so= csv.enc 16FILESDIR = /usr/lib/libxo/encoder 17 18LIB= enc_csv 19SHLIB_MAJOR=0 20SHLIB_NAME= lib${LIB}.so 21 22SRCS= enc_csv.c 23 24CFLAGS+=-I${LIBXOSRC}/libxo -I${.CURDIR} 25CFLAGS+=-DXO_ENCODERDIR=\"/usr/lib/libxo/encoder\" 26 27LIBADD= util xo 28LDFLAGS += -L${.OBJDIR:H:H}/libxo 29 30WARNS?= 5 31 32# Need to define a fake "install" target to block the one in bsd.lib.mk, 33# since that one will install our lib in the wrong place (/usr/lib/). 34install: realinstall 35 36.include <bsd.lib.mk> 37.include <bsd.files.mk> 38