/[svn]/linuxsampler/trunk/src/hostplugins/au/Makefile.am
ViewVC logotype

Annotation of /linuxsampler/trunk/src/hostplugins/au/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2519 - (hide annotations) (download)
Sat Feb 8 09:34:32 2014 UTC (10 years, 2 months ago) by persson
File size: 3940 byte(s)
* enabled automake 'subdir-objects' option and moved external source
  references (vst, au, asio) from makefiles to cpp files, in order to
  get rid of warnings from automake 1.14

1 iliev 1846 if HAVE_AU
2    
3     plugindir = $(libdir)/au
4 persson 2197 examples_dir = $(DEVELOPER_EXTRAS_DIR)
5 iliev 1846 au_public_dir = $(examples_dir)/CoreAudio/AudioUnits/AUPublic
6     ca_public_dir = $(examples_dir)/CoreAudio/PublicUtility
7 persson 2421 LinuxSamplerAU_CPPFLAGS = -I$(au_public_dir)/AUBase -I$(au_public_dir)/OtherBases \
8 iliev 2012 -I$(au_public_dir)/Utility -I$(ca_public_dir) $(GIG_CFLAGS) $(SQLITE3_CFLAGS) $(SNDFILE_CFLAGS)
9 iliev 1846
10 persson 2208 noinst_PROGRAMS = LinuxSamplerAU
11 iliev 1846
12     # Uncomment for debug messages.
13     #debug_messages = -DAU_DEBUG_DISPATCHER=1
14    
15 persson 2519 LinuxSamplerAU_SOURCES = PluginAU.cpp PluginAU.h PluginAUVersion.h ausdk.cpp
16 iliev 1846
17 persson 2197 LinuxSamplerAU_LDADD = $(top_builddir)/src/liblinuxsampler.la
18 iliev 1846
19     if HAVE_AUFLAGS
20     else
21 iliev 2018 AUFLAGS = $(GIG_LIBS) $(JACK_LIBS) $(SQLITE3_LIBS) $(SNDFILE_LIBS)
22 iliev 1846 endif
23    
24 persson 2421 LinuxSamplerAU_CPPFLAGS += $(debug_messages)
25 persson 2197 LinuxSamplerAU_LDFLAGS = -bundle $(AUFLAGS) \
26 persson 2183 -exported_symbols_list $(srcdir)/PluginAU.exp \
27 iliev 1846 -framework CoreServices -framework CoreMIDI -framework CoreAudio \
28     -framework CoreFoundation -framework AudioToolbox -framework AudioUnit
29    
30     COMPONENT_DIR = LinuxSamplerAU.component
31    
32 persson 2197 all-local: $(COMPONENT_DIR)
33    
34     LinuxSamplerAU.rsrc: $(srcdir)/PluginAU.r $(srcdir)/PluginAUVersion.h
35 persson 2183 Rez $(srcdir)/PluginAU.r -d SystemSevenOrLater=1 -useDF -script Roman -d ppc_YES -d i386_YES -d x86_64_YES \
36 iliev 1846 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/Current/Headers \
37     -I $(au_public_dir)/AUBase/ -arch i386 -arch x86_64 -arch ppc -o LinuxSamplerAU.rsrc
38    
39 persson 2197 $(COMPONENT_DIR): $(srcdir)/PkgInfo $(srcdir)/Info.plist LinuxSamplerAU LinuxSamplerAU.rsrc
40     mkdir -p "$(COMPONENT_DIR)/Contents/Frameworks"
41     mkdir -p "$(COMPONENT_DIR)/Contents/MacOS"
42     mkdir -p "$(COMPONENT_DIR)/Contents/Resources"
43 iliev 1846
44 persson 2183 cp $(srcdir)/PkgInfo "$(COMPONENT_DIR)/Contents"
45     cp $(srcdir)/Info.plist "$(COMPONENT_DIR)/Contents"
46 persson 2197 $(LIBTOOL) --mode=install cp LinuxSamplerAU "$(PWD)/$(COMPONENT_DIR)/Contents/MacOS"
47 iliev 1846 cp LinuxSamplerAU.rsrc "$(COMPONENT_DIR)/Contents/Resources"
48 persson 2197 @touch $@
49 iliev 1846
50     # cp "`pkg-config --variable=libdir gig`/libgig.6.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \
51     # install_name_tool -id @executable_path/../Frameworks/libgig.6.dylib \
52     # "$(COMPONENT_DIR)/Contents/Frameworks/libgig.6.dylib"; \
53     # install_name_tool -change "`pkg-config --variable=libdir gig`/libgig.6.dylib" \
54     # @executable_path/../Frameworks/libgig.6.dylib \
55     # "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU"
56     #
57     #if HAVE_SQLITE3
58     # cp "`pkg-config --variable=libdir sqlite3`/libsqlite3.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \
59     # install_name_tool -id @executable_path/../Frameworks/libsqlite3.dylib \; \
60     # "$(COMPONENT_DIR)/Contents/Frameworks/libsqlite3.dylib"; \
61     # install_name_tool -change "`pkg-config --variable=libdir sqlite3`/libsqlite3.dylib" \
62     # @executable_path/../Frameworks/libsqlite3.dylib \
63     # "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU"
64     #endif
65     #
66     #if HAVE_JACK
67     # cp "`pkg-config --variable=libdir jack`/libjack.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \
68     # install_name_tool -id @executable_path/../Frameworks/libjack.dylib \
69     # "$(COMPONENT_DIR)/Contents/Frameworks/libjack.dylib"; \
70     # install_name_tool -change "`pkg-config --variable=libdir jack`/libjack.dylib" \
71     # @executable_path/../Frameworks/libjack.dylib \
72     # "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU"
73     #endif
74    
75     clean-local:
76     rm -f LinuxSamplerAU.rsrc
77     rm -rf $(COMPONENT_DIR)
78    
79     install-exec-hook:
80 persson 2203 if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/Components && \
81     test -w $(MAC_PLUGIN_INSTALL_DIR)/Components ; then \
82 persson 2208 cp -r $(COMPONENT_DIR) $(MAC_PLUGIN_INSTALL_DIR)/Components/ ; \
83     if test -n "$(INSTALL_STRIP_FLAG)" ; then $(STRIP) -x $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU ; fi ; fi
84 persson 2203
85 iliev 1846 uninstall-hook:
86 persson 2203 rm -rf $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR)
87 iliev 1846 endif
88 persson 2183
89     EXTRA_DIST = PluginAU.exp PluginAU.r PkgInfo Info.plist

  ViewVC Help
Powered by ViewVC