summaryrefslogtreecommitdiff
path: root/drumgizmo/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/Makefile.am')
-rw-r--r--drumgizmo/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/drumgizmo/Makefile.am b/drumgizmo/Makefile.am
index 6ef7ddd..4c8f93a 100644
--- a/drumgizmo/Makefile.am
+++ b/drumgizmo/Makefile.am
@@ -19,7 +19,6 @@ drumgizmo_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER
drumgizmo_SOURCES = \
drumgizmoc.cc \
- jackclient.cc \
enginefactory.cc \
$(DRUMGIZMO_SOURCES) \
$(top_srcdir)/hugin/hugin.c \
@@ -71,6 +70,15 @@ drumgizmo_SOURCES += output/jackaudio.cc
drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_JACKAUDIO
endif # HAVE_OUTPUT_JACKAUDIO
+# Only compile jackclient.cc if at least one of the jack modules are included.
+if HAVE_OUTPUT_JACKAUDIO
+drumgizmo_SOURCES += jackclient.cc
+else
+if HAVE_INPUT_JACKMIDI
+drumgizmo_SOURCES += jackclient.cc
+endif # HAVE_INPUT_JACKMIDI
+endif # HAVE_OUTPUT_JACKAUDIO
+
EXTRA_DIST = \
drumgizmoc.h \
jackclient.h \