1 |
persson |
1777 |
if HAVE_VST |
2 |
|
|
|
3 |
|
|
plugindir = $(libdir)/vst |
4 |
|
|
plugin_LTLIBRARIES = LinuxSampler.la |
5 |
persson |
2519 |
LinuxSampler_la_CPPFLAGS = -I"$(VSTSDK_DIR)" \ |
6 |
|
|
-I"$(VSTSDK_DIR)/public.sdk/source/vst2.x" \ |
7 |
persson |
1923 |
$(GIG_CFLAGS) $(SQLITE3_CFLAGS) |
8 |
persson |
1842 |
|
9 |
persson |
2519 |
LinuxSampler_la_SOURCES = PluginVst.cpp PluginVst.h vstsdk.cpp |
10 |
persson |
1777 |
|
11 |
persson |
2197 |
LinuxSampler_la_LDFLAGS = -module -avoid-version -no-undefined |
12 |
persson |
1777 |
LinuxSampler_la_LIBADD = $(top_builddir)/src/liblinuxsampler.la |
13 |
|
|
|
14 |
|
|
if HAVE_WINDOWS |
15 |
persson |
2197 |
LinuxSampler_la_LDFLAGS += -Wl,$(srcdir)/PluginVst.def -Wl,-s |
16 |
persson |
1777 |
LinuxSampler_la_LIBADD += -lws2_32 |
17 |
|
|
else |
18 |
persson |
2420 |
LinuxSampler_la_CPPFLAGS += -D__cdecl= -DDATADIR=\""$(datadir)"\" |
19 |
persson |
2197 |
if LINUX |
20 |
|
|
LinuxSampler_la_LDFLAGS += -Wl,--defsym -Wl,main=VSTPluginMain -Wl,-s |
21 |
persson |
1777 |
endif |
22 |
persson |
2197 |
endif |
23 |
persson |
1777 |
|
24 |
persson |
2197 |
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 |
persson |
2478 |
CLEAN_MAC = clean-bundle |
35 |
|
|
|
36 |
|
|
clean-bundle: |
37 |
persson |
2197 |
rm -rf LinuxSampler.vst |
38 |
|
|
|
39 |
|
|
install-exec-hook: |
40 |
persson |
2203 |
if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/VST && \ |
41 |
|
|
test -w $(MAC_PLUGIN_INSTALL_DIR)/VST ; then \ |
42 |
persson |
2208 |
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 |
persson |
2203 |
|
45 |
persson |
2197 |
uninstall-hook: |
46 |
persson |
2203 |
rm -rf $(MAC_PLUGIN_INSTALL_DIR)/VST/LinuxSampler.vst |
47 |
persson |
1777 |
endif |
48 |
persson |
2183 |
|
49 |
persson |
2197 |
endif |
50 |
|
|
|
51 |
|
|
EXTRA_DIST = PluginVst.def PkgInfo Info.plist |