From acbfd76275c8d6e405157eebc2547340945e5ee0 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 May 2016 18:21:16 +0200 Subject: Only compile jackclient.cc if at least one of the jack modules are included. --- drumgizmo/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'drumgizmo') 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 \ -- cgit v1.2.3