1 |
if HAVE_VST |
2 |
|
3 |
plugindir = $(libdir)/vst |
4 |
plugin_LTLIBRARIES = LinuxSampler.la |
5 |
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 vstsdk.cpp |
10 |
|
11 |
LinuxSampler_la_LDFLAGS = -module -avoid-version -no-undefined |
12 |
LinuxSampler_la_LIBADD = $(top_builddir)/src/liblinuxsampler.la |
13 |
|
14 |
if HAVE_WINDOWS |
15 |
LinuxSampler_la_LDFLAGS += -Wl,$(srcdir)/PluginVst.def -Wl,-s |
16 |
LinuxSampler_la_LIBADD += -lws2_32 |
17 |
else |
18 |
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 |
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 |
48 |
|
49 |
endif |
50 |
|
51 |
EXTRA_DIST = PluginVst.def PkgInfo Info.plist |