xref: /freebsd/contrib/libxo/encoder/csv/Makefile.am (revision 76afb20c58adb296f09857aed214b91464242264)
1*76afb20cSPhil Shafer#
2*76afb20cSPhil Shafer# $Id$
3*76afb20cSPhil Shafer#
4*76afb20cSPhil Shafer# Copyright 2015-2019, Juniper Networks, Inc.
5*76afb20cSPhil Shafer# All rights reserved.
6*76afb20cSPhil Shafer# This SOFTWARE is licensed under the LICENSE provided in the
7*76afb20cSPhil Shafer# ../Copyright file. By downloading, installing, copying, or otherwise
8*76afb20cSPhil Shafer# using the SOFTWARE, you agree to be bound by the terms of that
9*76afb20cSPhil Shafer# LICENSE.
10*76afb20cSPhil Shafer
11*76afb20cSPhil Shaferif LIBXO_WARNINGS_HIGH
12*76afb20cSPhil ShaferLIBXO_WARNINGS = HIGH
13*76afb20cSPhil Shaferendif
14*76afb20cSPhil Shaferif HAVE_GCC
15*76afb20cSPhil ShaferGCC_WARNINGS = yes
16*76afb20cSPhil Shaferendif
17*76afb20cSPhil Shaferinclude ${top_srcdir}/warnings.mk
18*76afb20cSPhil Shafer
19*76afb20cSPhil Shaferenc_csvincdir = ${includedir}/libxo
20*76afb20cSPhil Shafer
21*76afb20cSPhil ShaferAM_CFLAGS = \
22*76afb20cSPhil Shafer    -I${top_srcdir}/libxo \
23*76afb20cSPhil Shafer    -I${top_builddir}/libxo \
24*76afb20cSPhil Shafer    ${WARNINGS}
25*76afb20cSPhil Shafer
26*76afb20cSPhil ShaferLIBNAME = libenc_csv
27*76afb20cSPhil Shaferpkglib_LTLIBRARIES = libenc_csv.la
28*76afb20cSPhil ShaferLIBS = \
29*76afb20cSPhil Shafer    -L${top_builddir}/libxo -lxo
30*76afb20cSPhil Shafer
31*76afb20cSPhil ShaferLDADD = ${top_builddir}/libxo/libxo.la
32*76afb20cSPhil Shafer
33*76afb20cSPhil Shaferlibenc_csv_la_SOURCES = \
34*76afb20cSPhil Shafer    enc_csv.c
35*76afb20cSPhil Shafer
36*76afb20cSPhil Shaferpkglibdir = ${XO_ENCODERDIR}
37*76afb20cSPhil Shafer
38*76afb20cSPhil ShaferUGLY_NAME = csv.enc
39*76afb20cSPhil Shafer
40*76afb20cSPhil Shaferinstall-exec-hook:
41*76afb20cSPhil Shafer	@DLNAME=`sh -c '. ./libenc_csv.la ; echo $$dlname'` ; \
42*76afb20cSPhil Shafer		if [ x"$$DLNAME" = x ]; \
43*76afb20cSPhil Shafer                    then DLNAME=${LIBNAME}.${XO_LIBEXT}; fi ; \
44*76afb20cSPhil Shafer		if [ "$(build_os)" = "cygwin" ]; \
45*76afb20cSPhil Shafer		    then DLNAME="../bin/$$DLNAME"; fi ; \
46*76afb20cSPhil Shafer		echo Install link $$DLNAME "->" ${UGLY_NAME} "..." ; \
47*76afb20cSPhil Shafer		mkdir -p ${DESTDIR}${XO_ENCODERDIR} ; \
48*76afb20cSPhil Shafer		cd ${DESTDIR}${XO_ENCODERDIR} \
49*76afb20cSPhil Shafer		&& chmod +w . \
50*76afb20cSPhil Shafer		&& rm -f ${UGLY_NAME} \
51*76afb20cSPhil Shafer		&& ${LN_S} $$DLNAME ${UGLY_NAME}
52