AM_CFLAGS = -Wall -D_DEBUG -I../lib
AM_CXXFLAGS = -Wall -Weffc++ -D_DEBUG -I../lib

TESTS = \
  unit-test \
  io-test \
  vector-test \
  tail-test \
  trie-test \
  c-test

check_PROGRAMS = $(TESTS)

noinst_HEADERS = assert.h

unit_test_SOURCES = unit-test.cc
unit_test_LDADD = ../lib/libmarisa_alpha.la

io_test_SOURCES = io-test.cc
io_test_LDADD = ../lib/libmarisa_alpha.la

vector_test_SOURCES = vector-test.cc
vector_test_LDADD = ../lib/libmarisa_alpha.la

tail_test_SOURCES = tail-test.cc
tail_test_LDADD = ../lib/libmarisa_alpha.la

trie_test_SOURCES = trie-test.cc
trie_test_LDADD = ../lib/libmarisa_alpha.la

c_test_SOURCES = c-test.c
c_test_LDADD = ../lib/libmarisa_alpha.la -lstdc++