2 |
|
|
3 |
plugindir = $(libdir)/vst |
plugindir = $(libdir)/vst |
4 |
plugin_LTLIBRARIES = LinuxSampler.la |
plugin_LTLIBRARIES = LinuxSampler.la |
5 |
INCLUDES = -I@VSTSDK_DIR@ -I@VSTSDK_DIR@/public.sdk/source/vst2.x $(GIG_CFLAGS) |
LinuxSampler_la_CPPFLAGS = -I"$(VSTSDK_DIR)" \ |
6 |
|
-I"$(VSTSDK_DIR)/public.sdk/source/vst2.x" \ |
7 |
|
$(GIG_CFLAGS) $(SQLITE3_CFLAGS) |
8 |
|
|
9 |
LinuxSampler_la_SOURCES = PluginVst.cpp PluginVst.h |
LinuxSampler_la_SOURCES = PluginVst.cpp PluginVst.h vstsdk.cpp |
|
nodist_LinuxSampler_la_SOURCES = \ |
|
|
@VSTSDK_DIR@/public.sdk/source/vst2.x/audioeffectx.cpp \ |
|
|
@VSTSDK_DIR@/public.sdk/source/vst2.x/audioeffect.cpp \ |
|
|
@VSTSDK_DIR@/public.sdk/source/vst2.x/vstplugmain.cpp |
|
10 |
|
|
11 |
LinuxSampler_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,-s |
LinuxSampler_la_LDFLAGS = -module -avoid-version -no-undefined |
12 |
LinuxSampler_la_LIBADD = $(top_builddir)/src/liblinuxsampler.la |
LinuxSampler_la_LIBADD = $(top_builddir)/src/liblinuxsampler.la |
13 |
|
|
|
EXTRA_DIST = PluginVst.def |
|
|
|
|
14 |
if HAVE_WINDOWS |
if HAVE_WINDOWS |
15 |
LinuxSampler_la_LDFLAGS += -Wl,PluginVst.def |
LinuxSampler_la_LDFLAGS += -Wl,$(srcdir)/PluginVst.def -Wl,-s |
16 |
LinuxSampler_la_LIBADD += -lws2_32 |
LinuxSampler_la_LIBADD += -lws2_32 |
17 |
else |
else |
18 |
LinuxSampler_la_CPPFLAGS = -D__cdecl= |
LinuxSampler_la_CPPFLAGS += -D__cdecl= -DDATADIR=\""$(datadir)"\" |
19 |
|
if LINUX |
20 |
|
LinuxSampler_la_LDFLAGS += -Wl,--defsym -Wl,main=VSTPluginMain -Wl,-s |
21 |
|
endif |
22 |
endif |
endif |
23 |
|
|
24 |
|
if MAC |
25 |
|
all-local: LinuxSampler.vst |
26 |
|
|
27 |
|
LinuxSampler.vst: LinuxSampler.la $(srcdir)/Info.plist $(srcdir)/PkgInfo |
28 |
|
mkdir -p LinuxSampler.vst/Contents/MacOS |
29 |
|
cp $(srcdir)/Info.plist LinuxSampler.vst/Contents |
30 |
|
cp $(srcdir)/PkgInfo LinuxSampler.vst/Contents |
31 |
|
if test -f .libs/LinuxSampler.so ; then cp .libs/LinuxSampler.so LinuxSampler.vst/Contents/MacOS/LinuxSampler ; fi |
32 |
|
@touch $@ |
33 |
|
|
34 |
|
CLEAN_MAC = clean-bundle |
35 |
|
|
36 |
|
clean-bundle: |
37 |
|
rm -rf LinuxSampler.vst |
38 |
|
|
39 |
|
install-exec-hook: |
40 |
|
if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/VST && \ |
41 |
|
test -w $(MAC_PLUGIN_INSTALL_DIR)/VST ; then \ |
42 |
|
cp -r LinuxSampler.vst $(MAC_PLUGIN_INSTALL_DIR)/VST/ ; \ |
43 |
|
if test -n "$(INSTALL_STRIP_FLAG)" ; then $(STRIP) -x $(MAC_PLUGIN_INSTALL_DIR)/VST/LinuxSampler.vst/Contents/MacOS/LinuxSampler ; fi ; fi |
44 |
|
|
45 |
|
uninstall-hook: |
46 |
|
rm -rf $(MAC_PLUGIN_INSTALL_DIR)/VST/LinuxSampler.vst |
47 |
endif |
endif |
48 |
|
|
49 |
|
endif |
50 |
|
|
51 |
|
EXTRA_DIST = PluginVst.def PkgInfo Info.plist |