1 # Calf DSP library - example modules
3 INCLUDES = -I$(top_srcdir) -I$(srcdir)
7 lib_LTLIBRARIES = libcalfwidgets.la
9 CTLHDRLIST=calfwidgets/led.h calfwidgets/knob.h calfwidgets/vumeter.h
11 enums.cpp: calfwidgets/enums.h Makefile.am
12 sh -c "glib-mkenums --fhead '#include <gtk/gtk.h>\n#include <calfwidgets/enums.h>' --vhead 'GType @enum_name@_get_type (void) {\n static GType type = NULL; if (type) return type; static G@Type@Value data[] = { ' --vprod ' { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" },' --vtail ' {0, NULL, NULL}};\n return type = g_enum_register_static(\"@EnumName@\", data);\n}\n\n' $(CTLHDRLIST) >enums.cpp"
15 libcalfwidgets_la_SOURCES = curve.cpp keyboard.cpp knob.cpp led.cpp linegraph.cpp vumeter.cpp enums.cpp
16 libcalfwidgets_la_LDFLAGS = $(GUI_DEPS_LIBS) -version-info 0:0:0
17 libcalfwidgets_la_CXXFLAGS = $(GUI_DEPS_CFLAGS) -DPKGLIBDIR=\"$(pkglibdir)\"
20 install -d -m 755 $(DESTDIR)$(pkglibdir)
21 install -c -m 644 $(top_srcdir)/knob.png $(DESTDIR)$(pkglibdir)
24 rm -f $(DESTDIR)$(pkglibdir)/knob.png
25 rmdir $(DESTDIR)$(pkglibdir) || true