annotate skeleton/Makefile.osx @ 525:8c18bdaad04f c++11-mutex

Avoid simple static allocation of mutex, as it could lead to mutex being destroyed before last adapter that needs to use it (since adapters are usually also static)
author Chris Cannam
date Mon, 09 Sep 2019 10:24:13 +0100
parents 14b34e85523b
children
rev   line source
Chris@378 1
Chris@378 2 ## Makefile for Vamp plugin using command-line tools on OS/X.
Chris@378 3 ##
Chris@378 4 ## Edit this to adjust compiler and library settings when
Chris@378 5 ## building for OS/X.
Chris@378 6 ##
Chris@378 7 ## Note that the list of source files, etc, goes in Makefile.inc
Chris@378 8 ## instead so that it can be included by all platform Makefiles.
Chris@378 9
Chris@378 10
Chris@378 11 # For a debug build...
Chris@378 12
Chris@378 13 CFLAGS := -Wall -Wextra -g -fPIC
Chris@378 14
Chris@378 15 # ... or for a release build
Chris@378 16
Chris@397 17 #CFLAGS := -Wall -Wextra -O3 -fPIC
Chris@378 18
Chris@378 19
Chris@378 20 # Flags to determine processor architecture and system SDK
Chris@378 21
Chris@397 22 ARCHFLAGS ?= -mmacosx-version-min=10.7 -arch x86_64 -stdlib=libc++
Chris@378 23
Chris@378 24
Chris@378 25 # Location of Vamp plugin SDK relative to the project directory
Chris@378 26
Chris@378 27 VAMPSDK_DIR := ../vamp-plugin-sdk
Chris@378 28
Chris@378 29
Chris@378 30 # Libraries and linker flags required by plugin: add any -l<library>
Chris@378 31 # options here
Chris@378 32
Chris@378 33 PLUGIN_LDFLAGS := -dynamiclib -exported_symbols_list vamp-plugin.list $(VAMPSDK_DIR)/libvamp-sdk.a
Chris@378 34
Chris@378 35
Chris@378 36 # File extension for plugin library on this platform
Chris@378 37
Chris@378 38 PLUGIN_EXT := .dylib
Chris@378 39
Chris@378 40
Chris@378 41 include Makefile.inc
Chris@378 42
Chris@378 43