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