AUTOMAKE_OPTIONS = foreign
-INCLUDES = -I$(top_srcdir)/include @OGG_CFLAGS@
+check_PROGRAMS = test
-noinst_PROGRAMS = test
+check: $(check_PROGRAMS)
+ ./test$(EXEEXT)
+
+AM_CPPFLAGS = -I$(top_srcdir)/include @OGG_CFLAGS@
test_SOURCES = util.c util.h write_read.c write_read.h test.c
-test_LDADD = ../lib/libvorbisenc.la ../lib/libvorbis.la @OGG_LIBS@
+test_LDADD = ../lib/libvorbisenc.la ../lib/libvorbis.la @OGG_LIBS@ @VORBIS_LIBS@
debug:
- $(MAKE) all CFLAGS="@DEBUG@"
+ $(MAKE) check CFLAGS="@DEBUG@"
profile:
- $(MAKE) all CFLAGS="@PROFILE@"
-
-check: test
- ./test
-
+ $(MAKE) check CFLAGS="@PROFILE@"