Copy Derf's experimental ptalarbvorm branch to trunk.
[theora.git] / tests / Makefile.am
1 INCLUDES = -I$(top_srcdir)/include
2
3 noinst_HEADERS = tests.h
4
5 AM_CFLAGS = $(OGG_CFLAGS)
6
7 THEORADIR = ../lib
8 THEORA_LIBS = $(THEORADIR)/libtheora.la $(OGG_LIBS)
9 THEORADEC_LIBS = $(THEORADIR)/libtheoradec.la $(OGG_LIBS)
10 THEORAENC_LIBS = $(THEORADIR)/libtheoraenc.la \
11                  $(THEORADIR)/libtheoradec.la $(OGG_LIBS)
12 test: check
13
14 TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
15
16 TESTS_DEC = noop_theora \
17         comment comment_theoradec comment_theora
18
19 TESTS_ENC = noop noop_theoraenc \
20         granulepos granulepos_theoraenc granulepos_theora
21
22 if THEORA_DISABLE_ENCODE
23 TESTS = $(TESTS_DEC)
24 else
25 TESTS = $(TESTS_DEC) $(TESTS_ENC)
26 endif
27
28 check_PROGRAMS = $(TESTS)
29 # dummy call tests for the current api
30 noop_SOURCES = noop.c
31 noop_LDADD = $(THEORAENC_LIBS)
32 noop_CFLAGS = $(OGG_CFLAGS)
33
34 # dummy call tests for the pre-1.0 legacy api with current link line
35 noop_theoraenc_SOURCES = noop_theora.c
36 noop_theoraenc_LDADD = $(THEORAENC_LIBS)
37 noop_theoraenc_CFLAGS = $(OGG_CFLAGS)
38
39 # dummy call tests for the pre-1.0 legacy api with legacy link line
40 noop_theora_SOURCES = noop_theora.c
41 noop_theora_LDADD = $(THEORA_LIBS)
42 noop_theora_CFLAGS = $(OGG_CFLAGS)
43
44 # comment utilities for the current api
45 comment_SOURCES = comment.c
46 comment_LDADD = $(THEORADEC_LIBS)
47 comment_CFLAGS = $(OGG_CFLAGS)
48
49 # comment utilities for the legacy api and current lib
50 comment_theoradec_SOURCES = comment.c
51 comment_theoradec_LDADD = $(THEORADEC_LIBS)
52 comment_theoradec_CFLAGS = $(OGG_CFLAGS)
53
54 # comment utilities for the legacy api and legacy lib
55 comment_theora_SOURCES = comment_theora.c
56 comment_theora_LDADD = $(THEORA_LIBS)
57 comment_theora_CFLAGS = $(OGG_CFLAGS)
58
59 granulepos_SOURCES = granulepos.c
60 granulepos_LDADD = $(THEORAENC_LIBS) -lm
61 granulepos_CFLAGS = $(OGG_CFLAGS)
62
63 granulepos_theoraenc_SOURCES = granulepos_theora.c
64 granulepos_theoraenc_LDADD = $(THEORAENC_LIBS) -lm
65 granulepos_theoraenc_CFLAGS = $(OGG_CFLAGS)
66
67 granulepos_theora_SOURCES = granulepos_theora.c
68 granulepos_theora_LDADD = $(THEORA_LIBS) -lm
69 granulepos_theora_CFLAGS = $(OGG_CFLAGS)