diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-20 18:21:16 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-20 18:21:16 +0200 |
commit | acbfd76275c8d6e405157eebc2547340945e5ee0 (patch) | |
tree | 558a13a832914d9bdafe8b678d841331278994d5 | |
parent | fc8f5e8cd2b8d30cd05f177baf24d1d7351f7cd8 (diff) |
Only compile jackclient.cc if at least one of the jack modules are included.
-rw-r--r-- | drumgizmo/Makefile.am | 10 |
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 \ |