ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ffms2.pc

dist_doc_DATA = doc/ffms2-api.html doc/ffms2-changelog.html doc/style.css

AM_CPPFLAGS = -I. -I$(top_srcdir)/include -I$(top_srcdir)/src/config @LIBAV_CFLAGS@ @ZLIB_CPPFLAGS@ -include config.h

lib_LTLIBRARIES = src/core/libffms2.la
src_core_libffms2_la_LIBADD = @LIBAV_LIBS@ @AVRESAMPLE_LIBS@ @ZLIB_LDFLAGS@ -lz @LTUNDEF@
src_core_libffms2_la_SOURCES = \
	src/core/audiosource.h \
	src/core/audiosource.cpp \
	src/core/codectype.h \
	src/core/codectype.cpp \
	src/core/coparser.h \
	src/core/ffms.cpp \
	src/core/guids.h \
	src/core/haaliaudio.cpp \
	src/core/haaliindexer.cpp \
	src/core/haalivideo.cpp \
	src/core/indexing.h \
	src/core/indexing.cpp \
	src/core/lavfaudio.cpp \
	src/core/lavfindexer.cpp \
	src/core/lavfvideo.cpp \
	src/core/matroskaaudio.cpp \
	src/core/matroskaindexer.cpp \
	src/core/matroskaparser.h \
	src/core/matroskaparser.c \
	src/core/matroskavideo.cpp \
	src/core/numthreads.h \
	src/core/numthreads.cpp \
	src/core/stdiostream.h \
	src/core/stdiostream.c \
	src/core/utils.h \
	src/core/utils.cpp \
	src/core/videosource.h \
	src/core/videosource.cpp \
	src/core/videoutils.h \
	src/core/videoutils.cpp \
	src/core/wave64writer.h \
	src/core/wave64writer.cpp \
	src/vapoursynth/VapourSynth.h \
	src/vapoursynth/vapoursource.h \
	src/vapoursynth/vapoursource.cpp \
	src/vapoursynth/vapoursynth.cpp

include_HEADERS = $(top_srcdir)/include/ffms.h $(top_srcdir)/include/ffmscompat.h

bin_PROGRAMS = src/index/ffmsindex
src_index_ffmsindex_SOURCES = src/index/ffmsindex.cpp
src_index_ffmsindex_LDADD = src/core/libffms2.la
