plugindir=$(pkglibdir)/plugins
AM_CPPFLAGS = -I$(top_srcdir)/include

AM_CFLAGS = \
@GTK_CFLAGS@ \
@XML2_CFLAGS@ \
-DLOCALE_DIR=\"$(localedir)\" \
-DPLUGIN_DIR=\"$(plugindir)\" \
-DDOC_DIR=\"$(docdir)\" \
-DDATA_DIR=\"$(pkgdatadir)\"

AM_LDFLAGS = @GMERLIN_EXE_LDFLAGS@

if HAVE_GTK
gtk_programs = \
cfgtest \
mdb-tree
else
gtk_programs =
endif

bin_PROGRAMS = gmerlin-mediadump

noinst_PROGRAMS = \
server \
client \
extractchannel \
fs_cache \
insertchannel \
textrenderer \
ladspa \
makethumbnail \
msgiotest \
resource \
sqlextract \
upnpdesc \
$(gtk_programs) \
gmerlin_imgconvert \
gmerlin_imgdiff \
gmerlin_imgsplit \
gmerlin_psnr \
gmerlin_ssim \
gmerlin_vanalyze \
gmerlin_vpsnr

# noinst_HEADERS = player1.h


sqlextract_SOURCES = sqlextract.c
sqlextract_LDADD = ../lib/libgmerlin.la -ldl  @SQLITE3_LIBS@

msgiotest_SOURCES = msgiotest.c
msgiotest_LDADD = ../lib/libgmerlin.la -ldl

upnpdesc_SOURCES = upnpdesc.c
upnpdesc_LDADD = ../lib/libgmerlin.la -ldl @UUID_LIBS@ @XML2_LIBS@

extractchannel_SOURCES = extractchannel.c
extractchannel_LDADD = ../lib/libgmerlin.la -ldl

fs_cache_SOURCES = fs_cache.c
fs_cache_LDADD = ../lib/libgmerlin.la -ldl

insertchannel_SOURCES = insertchannel.c
insertchannel_LDADD = ../lib/libgmerlin.la -ldl

ladspa_SOURCES = ladspa.c
ladspa_LDADD =  -ldl

makethumbnail_SOURCES = makethumbnail.c
makethumbnail_LDADD = ../lib/libgmerlin.la -ldl

gmerlin_imgconvert_SOURCES = imgconvert.c
gmerlin_imgconvert_LDADD = ../lib/libgmerlin.la -ldl

gmerlin_imgsplit_SOURCES = gmerlin_imgsplit.c
gmerlin_imgsplit_LDADD = ../lib/libgmerlin.la -ldl


gmerlin_psnr_SOURCES = gmerlin_psnr.c
gmerlin_psnr_LDADD = ../lib/libgmerlin.la -ldl

gmerlin_ssim_SOURCES = gmerlin_ssim.c
gmerlin_ssim_LDADD = ../lib/libgmerlin.la -ldl

gmerlin_vpsnr_SOURCES = gmerlin_vpsnr.c
gmerlin_vpsnr_LDADD = ../lib/libgmerlin.la -ldl

gmerlin_mediadump_SOURCES = gmerlin-mediadump.c
gmerlin_mediadump_LDADD = ../lib/libgmerlin.la -ldl

gmerlin_vanalyze_SOURCES = gmerlin_vanalyze.c
gmerlin_vanalyze_LDADD = ../lib/libgmerlin.la -ldl

gmerlin_imgdiff_SOURCES = gmerlin_imgdiff.c
gmerlin_imgdiff_LDADD = ../lib/libgmerlin.la -ldl

textrenderer_SOURCES = textrenderer.c
textrenderer_LDADD = ../lib/libgmerlin.la -ldl

cfgtest_SOURCES = cfgtest.c
cfgtest_LDADD = ../lib/libgmerlin.la ../lib/gtk/libgmerlin_gtk.la @GTK_LIBS@

mdb_tree_SOURCES = mdb-tree.c
mdb_tree_LDADD = ../lib/libgmerlin.la ../lib/gtk/libgmerlin_gtk.la @GTK_LIBS@

resource_SOURCES = resource.c
resource_LDADD = ../lib/libgmerlin.la

server_SOURCES = server.c
server_LDADD = ../lib/libgmerlin.la

client_SOURCES = client.c
client_LDADD = ../lib/libgmerlin.la

