1 ## Makefile for Vamp aubio plugin using MinGW tools on Windows.
3 ## Edit this to adjust compiler and library settings when
4 ## building using MinGW.
6 ## Note that the list of source files, etc, goes in Makefile.inc
7 ## instead so that it can be included by all platform Makefiles.
9 # Location of Vamp plugin SDK relative to the project directory
10 VAMPSDK_DIR ?= ../vamp-plugin-sdk-2.5
12 # Location of libvamp-sdk.dll
13 VAMPBIN_DIR ?= ../vamp-plugin-sdk-2.5-binaries-win32-mingw
15 # Location of cross compiled and installed aubio tree
16 AUBIO_MINGW32_DISTDIR ?= ../aubio-dist-mingw32
19 TOOLPREFIX ?= i586-mingw32msvc-
21 CXX = $(TOOLPREFIX)g++
25 RANLIB = $(TOOLPREFIX)ranlib
27 # For a debug build...
28 #CFLAGS := -Wall -Wextra -g
30 # ... or for a release build
31 CFLAGS := -Wall -Wextra -O3 -ftree-vectorize
33 # add AUBIO_MINGW32_DISTDIR to ARCHFLAGS
34 ARCHFLAGS := -I$(AUBIO_MINGW32_DISTDIR)/usr/local/include
36 # add AUBIO_MINGW32_DISTDIR to PLUGIN_LDFLAGS
37 PLUGIN_LDFLAGS := -L$(AUBIO_MINGW32_DISTDIR)/usr/local/lib
39 # Libraries and linker flags required by plugin: add any -l<library>
41 PLUGIN_LDFLAGS += -Wl,--enable-auto-import
42 PLUGIN_LDFLAGS += -shared -Wl,--retain-symbols-file=vamp-plugin.list
43 PLUGIN_LIBS := $(VAMPBIN_DIR)/libvamp-sdk.dll
45 # File extension for plugin library on this platform