summaryrefslogtreecommitdiff
path: root/vst/Makefile.am
blob: 894cb07f62c7a3970ee97074ef314eecf4a88b26 (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
include $(top_srcdir)/plugingui/Makefile.am.plugingui
include $(top_srcdir)/src/Makefile.am.drumgizmo

VST_BASE = ${VST_SOURCE_PATH}
VST_SRC_BASE = ${VST_BASE}/public.sdk/source/vst2.x/
VST_SOURCES = \
	${VST_SRC_BASE}/audioeffectx.cpp \
	${VST_SRC_BASE}/audioeffect.cpp \
	${VST_SRC_BASE}/vstplugmain.cpp

AM_CPPFLAGS = -I$(top_srcdir)/hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX

EXTRA_DIST = \
	Makefile.mingw32 \
	constants.h \
	drumgizmo_vst.cc \
	drumgizmo_vst.h \
	input_vst.cc \
	input_vst.h \
	output_vst.cc \
	output_vst.h

plugindir = $(prefix)/vst
plugin_LTLIBRARIES =

if ENABLE_VST
plugin_LTLIBRARIES += libdrumgizmo_vst.la
noinst_LTLIBRARIES = libdg.la
endif

libdg_la_SOURCES = \
	$(DRUMGIZMO_SOURCES) \
	$(PLUGIN_GUI_SOURCES)

libdg_la_LDFLAGS = -static
libdg_la_LIBADD = $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS)
libdg_la_CXXFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/plugingui \
	-I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \
	$(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) $(VST_CPPFLAGS) \
	$(PLUGIN_GUI_CFLAGS) $(SSEFLAGS)\
	-DUSE_THREAD $(SAMPLERATE_CFLAGS)

libdrumgizmo_vst_la_SOURCES = \
  $(VST_SOURCES) \
	drumgizmo_vst.cc \
	input_vst.cc \
	output_vst.cc

libdrumgizmo_vst_la_LDFLAGS = -static-libgcc -no-undefined -shared
libdrumgizmo_vst_la_LIBADD =
libdrumgizmo_vst_la_CXXFLAGS = -w $(VST_CPPFLAGS) .libs/libdg.a \
	-I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/plugingui