if BUILD_GTK_CLIENT

EXTRA_DIST = ingenuity.gladep
MAINTAINERCLEANFILES = Makefile.in

sharefilesdir = $(pkgdatadir)
dist_sharefiles_DATA = ingenuity.glade om-icon.png

AM_CXXFLAGS = -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -I$(top_srcdir)/src/common -I$(top_srcdir)/src/libs/client -DPKGDATADIR=\"$(pkgdatadir)\" @GTKMM_CFLAGS@ @LIBGLADEMM_CFLAGS@ @GNOMECANVASMM_CFLAGS@ @LOSC_CFLAGS@ @LASH_CFLAGS@ @FLOWCANVAS_CFLAGS@
ingenuity_LDADD = @GTKMM_LIBS@ @LIBGLADEMM_LIBS@ @GNOMECANVASMM_LIBS@ @LOSC_LIBS@ @LASH_LIBS@ @FLOWCANVAS_LIBS@ ../../libs/client/libomclient.la
ingenuity_DEPENDENCIES = ../../libs/client/libomclient.la

# FIXME: make engine have a separate include dir
if MONOLITHIC_INGENUITY
AM_CXXFLAGS += -I$(top_srcdir)/src/libs
ingenuity_LDADD += @JACK_LIBS@ @ALSA_LIBS@ @LASH_LIBS@ @SLV2_LIBS@ -lrt ../../libs/engine/libingen.la
ingenuity_DEPENDENCIES += ../../libs/engine/libingen.la
endif

bin_PROGRAMS = ingenuity
ingenuity_SOURCES = \
	cmdline.h \
	cmdline.c \
	main.cpp \
	NodeMenu.h \
	NodeMenu.cpp \
	PatchCanvas.h \
	PatchCanvas.cpp \
	BreadCrumb.h \
	BreadCrumbBox.h \
	BreadCrumbBox.cpp \
	ConnectWindow.h \
	ConnectWindow.cpp \
	App.h \
	App.cpp \
	Configuration.h \
	Configuration.cpp \
	GladeFactory.h \
	GladeFactory.cpp \
	LoadPluginWindow.h \
	LoadPluginWindow.cpp \
	LoadPatchWindow.h \
	LoadPatchWindow.cpp \
	MessagesWindow.h \
	MessagesWindow.cpp \
	LoadSubpatchWindow.h \
	LoadSubpatchWindow.cpp \
	NodeControlWindow.h \
	NodeControlWindow.cpp \
	ControlPanel.h \
	ControlPanel.cpp \
	ControlGroups.h \
	ControlGroups.cpp \
	PatchView.h \
	PatchView.cpp \
	PatchWindow.h \
	PatchWindow.cpp \
	WindowFactory.h \
	WindowFactory.cpp \
	../../common/types.h \
	../../common/Path.h \
	NodeModule.h \
	NodeModule.cpp \
	PatchPortModule.h \
	PatchPortModule.cpp \
	DSSIModule.h \
	DSSIModule.cpp \
	SubpatchModule.h \
	SubpatchModule.cpp \
	Port.h \
	Port.cpp \
	NewSubpatchWindow.h \
	NewSubpatchWindow.cpp \
	ConfigWindow.h \
	ConfigWindow.cpp \
	PatchPropertiesWindow.h \
	PatchPropertiesWindow.cpp \
	Loader.h \
	Loader.cpp \
	RenameWindow.h \
	RenameWindow.cpp \
	NodePropertiesWindow.h \
	NodePropertiesWindow.cpp \
	PatchTreeWindow.h \
	PatchTreeWindow.cpp

if WITH_LASH
ingenuity_SOURCES += LashController.h LashController.cpp
endif


endif # WITH_GTK_CLIENT