annotate Makefile.osx @ 3:243cfccb824b

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