From 9056a0602a0d235386518fbcd9de119e03b9ba52 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 5 Oct 2011 19:45:55 +0200 Subject: Make all parts disableble by configure. --- lv2/Makefile.am | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) (limited to 'lv2/Makefile.am') diff --git a/lv2/Makefile.am b/lv2/Makefile.am index 96d39a2..da5a8a0 100644 --- a/lv2/Makefile.am +++ b/lv2/Makefile.am @@ -1,4 +1,13 @@ -lv2sources = \ +if ENABLE_LV2 + +INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \ + $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) $(LV2_CFLAGS) +lv2plugindir = $(libdir)/lv2/drumgizmo.lv2 +lv2plugin_LTLIBRARIES = drumgizmo.la +lv2plugin_DATA = manifest.ttl drumgizmo.ttl +EXTRA_DIST = $(lv2plugin_DATA) + +drumgizmo_la_SOURCES = lv2.cc \ input_lv2.cc \ output_lv2.cc \ @@ -17,29 +26,13 @@ lv2sources = \ $(top_srcdir)/src/path.cc \ $(top_srcdir)/src/sample.cc \ $(top_srcdir)/src/saxparser.cc \ - $(top_srcdir)/src/thread.cc \ $(top_srcdir)/src/velocity.cc + lv2_event.h \ + lv2-saverestore.h -if WITH_LV2 - -lv2ltlibs = liblv2.la -lv2buildsources = $(lv2sources) - -else +# $(top_srcdir)/plugingui/gui.cc -lv2ltlibs = -lv2buildsources = +drumgizmo_la_LDFLAGS = -module -avoid-version +drumgizmo_la_LIBADD = $(SNDFILE_LIBS) $(EXPAT_LIBS) $(LV2_LIBS) -lX11 endif - -EXTRA_DIST = $(lv2sources) - -lib_LTLIBRARIES = $(lv2ltlibs) - -libdir = $(LV2_PLUGIN_DIR) - -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \ - $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) $(LV2_CFLAGS) -liblv2_la_LDFLAGS = $(SNDFILE_LIBS) $(EXPAT_LIBS) $(LV2_LIBS) -liblv2_la_LIBADD = -liblv2_la_SOURCES = $(lv2buildsources) -- cgit v1.2.3