]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libxo/encoder/csv/Makefile.am
Import libxo-1.3.0:
[FreeBSD/FreeBSD.git] / contrib / libxo / encoder / csv / Makefile.am
1 #
2 # $Id$
3 #
4 # Copyright 2015-2019, Juniper Networks, Inc.
5 # All rights reserved.
6 # This SOFTWARE is licensed under the LICENSE provided in the
7 # ../Copyright file. By downloading, installing, copying, or otherwise
8 # using the SOFTWARE, you agree to be bound by the terms of that
9 # LICENSE.
10
11 if LIBXO_WARNINGS_HIGH
12 LIBXO_WARNINGS = HIGH
13 endif
14 if HAVE_GCC
15 GCC_WARNINGS = yes
16 endif
17 include ${top_srcdir}/warnings.mk
18
19 enc_csvincdir = ${includedir}/libxo
20
21 AM_CFLAGS = \
22     -I${top_srcdir}/libxo \
23     -I${top_builddir}/libxo \
24     ${WARNINGS}
25
26 LIBNAME = libenc_csv
27 pkglib_LTLIBRARIES = libenc_csv.la
28 LIBS = \
29     -L${top_builddir}/libxo -lxo
30
31 LDADD = ${top_builddir}/libxo/libxo.la
32
33 libenc_csv_la_SOURCES = \
34     enc_csv.c
35
36 pkglibdir = ${XO_ENCODERDIR}
37
38 UGLY_NAME = csv.enc
39
40 install-exec-hook:
41         @DLNAME=`sh -c '. ./libenc_csv.la ; echo $$dlname'` ; \
42                 if [ x"$$DLNAME" = x ]; \
43                     then DLNAME=${LIBNAME}.${XO_LIBEXT}; fi ; \
44                 if [ "$(build_os)" = "cygwin" ]; \
45                     then DLNAME="../bin/$$DLNAME"; fi ; \
46                 echo Install link $$DLNAME "->" ${UGLY_NAME} "..." ; \
47                 mkdir -p ${DESTDIR}${XO_ENCODERDIR} ; \
48                 cd ${DESTDIR}${XO_ENCODERDIR} \
49                 && chmod +w . \
50                 && rm -f ${UGLY_NAME} \
51                 && ${LN_S} $$DLNAME ${UGLY_NAME}