Mercurial > hg > vamp-plugin-sdk
annotate skeleton/Makefile.linux @ 533:a7e6d747fd3f vamp-plugin-sdk-v2.9
Date
author | Chris Cannam |
---|---|
date | Tue, 12 Nov 2019 14:12:56 +0000 |
parents | 29a73259f59a |
children |
rev | line source |
---|---|
Chris@378 | 1 |
Chris@378 | 2 ## Makefile for Vamp plugin using GNU tools on Linux. |
Chris@378 | 3 ## |
Chris@378 | 4 ## Edit this to adjust compiler and library settings when |
Chris@378 | 5 ## building for Linux. |
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 -msse -msse2 -mfpmath=sse -ftree-vectorize -fPIC |
Chris@378 | 18 |
Chris@378 | 19 |
Chris@378 | 20 # Location of Vamp plugin SDK relative to the project directory |
Chris@378 | 21 |
Chris@378 | 22 VAMPSDK_DIR := ../vamp-plugin-sdk |
Chris@378 | 23 |
Chris@378 | 24 |
Chris@378 | 25 # Libraries and linker flags required by plugin: add any -l<library> |
Chris@378 | 26 # options here |
Chris@378 | 27 |
Chris@378 | 28 PLUGIN_LDFLAGS := -shared -Wl,-Bsymbolic -Wl,-z,defs -Wl,--version-script=vamp-plugin.map $(VAMPSDK_DIR)/libvamp-sdk.a |
Chris@378 | 29 |
Chris@378 | 30 |
Chris@378 | 31 # File extension for plugin library on this platform |
Chris@378 | 32 |
Chris@378 | 33 PLUGIN_EXT := .so |
Chris@378 | 34 |
Chris@378 | 35 |
Chris@378 | 36 include Makefile.inc |
Chris@378 | 37 |
Chris@378 | 38 |