summaryrefslogtreecommitdiffstats
path: root/contrib/libxo/encoder/test/Makefile.am
blob: 1d8518e8e7ea59b468d6ff2d7bf696e089bd3fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# $Id$
#
# Copyright 2015, Juniper Networks, Inc.
# All rights reserved.
# This SOFTWARE is licensed under the LICENSE provided in the
# ../Copyright file. By downloading, installing, copying, or otherwise
# using the SOFTWARE, you agree to be bound by the terms of that
# LICENSE.

if LIBXO_WARNINGS_HIGH
LIBXO_WARNINGS = HIGH
endif
if HAVE_GCC
GCC_WARNINGS = yes
endif
include ${top_srcdir}/warnings.mk

enc_testincdir = ${includedir}/libxo

AM_CFLAGS = \
    -I${top_srcdir}/libxo \
    -I${top_builddir}/libxo \
    ${WARNINGS}

LIBNAME = libenc_test
pkglib_LTLIBRARIES = libenc_test.la
LIBS = \
    -L${top_builddir}/libxo -lxo

LDADD = ${top_builddir}/libxo/libxo.la

libenc_test_la_SOURCES = \
    enc_test.c

pkglibdir = ${XO_ENCODERDIR}

UGLY_NAME = test.enc

install-exec-hook:
	@DLNAME=`sh -c '. ./libenc_test.la ; echo $$dlname'` ; \
		if [ x"$$DLNAME" = x ]; \
                    then DLNAME=${LIBNAME}.${XO_LIBEXT}; fi ; \
		if [ "$(build_os)" = "cygwin" ]; \
		    then DLNAME="../bin/$$DLNAME"; fi ; \
		echo Install link $$DLNAME "->" ${UGLY_NAME} "..." ; \
		mkdir -p ${DESTDIR}${XO_ENCODERDIR} ; \
		cd ${DESTDIR}${XO_ENCODERDIR} \
		&& chmod +w . \
		&& rm -f ${UGLY_NAME} \
		&& ${LN_S} $$DLNAME ${UGLY_NAME}
OpenPOWER on IntegriCloud