Mercurial > hg > vamp-plugin-sdk
annotate skeleton/Makefile.osx @ 378:29a73259f59a
Split out big Makefile into Makefile.inc and platform-specific Makefiles
author | Chris Cannam |
---|---|
date | Fri, 05 Sep 2014 09:31:00 +0100 |
parents | |
children | 14b34e85523b |
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@378 | 17 #CFLAGS := -Wall -Wextra -O3 -ftree-vectorize -fPIC |
Chris@378 | 18 |
Chris@378 | 19 |
Chris@378 | 20 # Flags to determine processor architecture and system SDK |
Chris@378 | 21 |
Chris@378 | 22 ARCHFLAGS ?= -mmacosx-version-min=10.6 -arch x86_64 -arch i386 |
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 |