summaryrefslogtreecommitdiff
path: root/plugin/Makefile.am
blob: 02dc5a3ad66bc32294a6c2ddf536d052f91e0598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
SUBDIRS = vst
noinst_PROGRAMS =


#######
# LV2
###
if ENABLE_LV2
lv2plugindir = @LV2DIR@/drumgizmo.lv2
lv2plugin_LTLIBRARIES = drumgizmo.la
noinst_PROGRAMS += ttlgen
lv2plugin_DATA = manifest.ttl
endif

drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \
	-fvisibility=hidden \
	$(LV2_CFLAGS) \
	$(SNDFILE_CFLAGS) \
	-I$(top_srcdir)/plugin/plugingizmo \
	-I$(top_srcdir)/plugingui \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/hugin

drumgizmo_la_CFLAGS = -fvisibility=hidden

drumgizmo_la_SOURCES = \
	$(top_srcdir)/hugin/hugin.c \
	$(top_srcdir)/plugin/plugingizmo/midievent.cc \
	$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc \
	drumgizmo_plugin.cc

drumgizmo_la_LDFLAGS = -shared -module -avoid-version \
	-export-symbols drumgizmo_lv2.sym

drumgizmo_la_LIBADD = $(LV2_LIBS) \
	$(top_srcdir)/plugingui/libdggui.la \
	$(top_srcdir)/src/libdg.la

ttlgen_CPPFLAGS = $(DL_CFLAGS) -I$(top_srcdir)/plugin/plugingizmo
ttlgen_LDFLAGS = $(DL_LIBS)
ttlgen_SOURCES = \
	$(top_srcdir)/plugin/plugingizmo/ttlgen.cc

manifest.ttl : ttlgen drumgizmo.la
	./ttlgen .libs/drumgizmo.so manifest.ttl


#######
# VST
###
if ENABLE_VST
vstplugindir = $(libdir)/vst
vstplugin_LTLIBRARIES = drumgizmo_vst.la
vstplugin_DATA =
endif

drumgizmo_vst_la_CXXFLAGS = -DVST \
	-fvisibility=hidden \
	$(SNDFILE_CFLAGS) \
	-I$(top_srcdir)/plugin/plugingizmo \
	-I$(top_srcdir)/plugingui \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/hugin \
	$(VST_CPPFLAGS) -Ivst

drumgizmo_vst_la_CFLAGS = -fvisibility=hidden

drumgizmo_vst_la_SOURCES = \
	$(top_srcdir)/hugin/hugin.c \
	$(top_srcdir)/plugin/plugingizmo/midievent.cc \
	$(top_srcdir)/plugin/plugingizmo/pluginvst.cc \
	drumgizmo_plugin.cc

drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version \
	-export-symbols drumgizmo_vst.sym

drumgizmo_vst_la_LIBADD = vst/libvstsdk.la \
	$(top_srcdir)/plugingui/libdggui.la \
	$(top_srcdir)/src/libdg.la


install-data-hook:
	rm -f $(DESTDIR)/$(lv2plugindir)/drumgizmo.la
	rm -f $(DESTDIR)/$(vstplugindir)/drumgizmo_vst.la


EXTRA_DIST = \
	$(lv2plugin_DATA) \
	$(vstplugin_DATA) \
	drumgizmo_plugin.h \
	drumgizmo_lv2.sym \
	drumgizmo_vst.sym \
	$(top_srcdir)/plugin/plugingizmo/plugin.h \
	$(top_srcdir)/plugin/plugingizmo/midievent.h \
	$(top_srcdir)/plugin/plugingizmo/pluginlv2.h \
	$(top_srcdir)/plugin/plugingizmo/pluginvst.h \
	$(top_srcdir)/plugin/plugingizmo/inline-display.h