Makefile.am 2.31 KB
Newer Older
Waldo Bastian's avatar
Waldo Bastian committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# Copyright (c) 2007 Intel Corporation. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sub license, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# 
# The above copyright notice and this permission notice (including the
# next paragraph) shall be included in all copies or substantial portions
# of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
root's avatar
root committed
22

Waldo Bastian's avatar
Waldo Bastian committed
23
check_PROGRAMS = test_01 test_02 test_03 test_04 test_05 test_06 \
Waldo Bastian's avatar
Waldo Bastian committed
24
		test_07 test_08 test_09 test_10 test_11 test_12
Waldo Bastian's avatar
Waldo Bastian committed
25

26 27
bin_PROGRAMS = vainfo

root's avatar
root committed
28 29
testdir = $(bindir)

Austin Yuan's avatar
Austin Yuan committed
30
AM_CFLAGS = -I$(top_srcdir)/../../include/external/ -I$(top_srcdir)/src  -I$(top_srcdir)/src/x11
root's avatar
root committed
31

Waldo Bastian's avatar
Waldo Bastian committed
32
TESTS = $(check_PROGRAMS)
Waldo Bastian's avatar
Waldo Bastian committed
33

34 35 36 37
TEST_LIBS = ../src/libva.la

vainfo_LDADD = ../src/libva.la
vainfo_SOURCES = vainfo.c
Waldo Bastian's avatar
Waldo Bastian committed
38 39

test_01_LDADD = $(TEST_LIBS)
Waldo Bastian's avatar
Waldo Bastian committed
40 41
test_01_SOURCES = test_01.c

Waldo Bastian's avatar
Waldo Bastian committed
42
test_02_LDADD = $(TEST_LIBS)
Waldo Bastian's avatar
Waldo Bastian committed
43 44
test_02_SOURCES = test_02.c

Waldo Bastian's avatar
Waldo Bastian committed
45
test_03_LDADD = $(TEST_LIBS)
Waldo Bastian's avatar
Waldo Bastian committed
46 47
test_03_SOURCES = test_03.c

Waldo Bastian's avatar
Waldo Bastian committed
48
test_04_LDADD = $(TEST_LIBS)
Waldo Bastian's avatar
Waldo Bastian committed
49 50
test_04_SOURCES = test_04.c

Waldo Bastian's avatar
Waldo Bastian committed
51
test_05_LDADD = $(TEST_LIBS)
Waldo Bastian's avatar
Waldo Bastian committed
52 53
test_05_SOURCES = test_05.c

Waldo Bastian's avatar
Waldo Bastian committed
54 55 56 57 58 59 60 61 62 63 64 65
test_06_LDADD = $(TEST_LIBS)
test_06_SOURCES = test_06.c

test_07_LDADD = $(TEST_LIBS)
test_07_SOURCES = test_07.c

test_08_LDADD = $(TEST_LIBS)
test_08_SOURCES = test_08.c

test_09_LDADD = $(TEST_LIBS)
test_09_SOURCES = test_09.c

Waldo Bastian's avatar
Waldo Bastian committed
66 67 68 69 70 71
test_10_LDADD = $(TEST_LIBS)
test_10_SOURCES = test_10.c

test_11_LDADD = $(TEST_LIBS)
test_11_SOURCES = test_11.c

Waldo Bastian's avatar
Waldo Bastian committed
72 73 74
test_12_LDADD = $(TEST_LIBS)
test_12_SOURCES = test_12.c

Waldo Bastian's avatar
Waldo Bastian committed
75 76 77 78 79

valgrind:	$(check_PROGRAMS)
	for a in $(check_PROGRAMS); do \
		valgrind --leak-check=full --show-reachable=yes .libs/$$a; \
	done