scripts/get_aubio.sh: always pass options
[vamp-aubio-plugins.git] / Makefile.mingw32
1 ##  Makefile for Vamp aubio plugin using MinGW tools on Windows.
2 ##
3 ##  Edit this to adjust compiler and library settings when
4 ##  building using MinGW.
5 ##
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.
8
9 # Location of Vamp plugin SDK relative to the project directory
10 VAMPSDK_DIR     ?= ../vamp-plugin-sdk-2.5
11
12 # Location of libvamp-sdk.dll
13 VAMPBIN_DIR ?= ../vamp-plugin-sdk-2.5-binaries-win32-mingw
14
15 # Location of cross compiled and installed aubio tree
16 AUBIO_MINGW32_DISTDIR ?= ../aubio-dist-mingw32
17
18 # Toolchain prefix
19 TOOLPREFIX     ?= i586-mingw32msvc-
20
21 CXX             = $(TOOLPREFIX)g++
22 CC              = $(TOOLPREFIX)gcc
23 LD              = $(TOOLPREFIX)g++
24 AR              = $(TOOLPREFIX)ar
25 RANLIB          = $(TOOLPREFIX)ranlib
26
27 # For a debug build...
28 #CFLAGS         := -Wall -Wextra -g
29
30 # ... or for a release build
31 CFLAGS          := -Wall -Wextra -O3 -ftree-vectorize
32
33 # add AUBIO_MINGW32_DISTDIR to ARCHFLAGS
34 ARCHFLAGS := -I$(AUBIO_MINGW32_DISTDIR)/usr/local/include
35
36 # add AUBIO_MINGW32_DISTDIR to PLUGIN_LDFLAGS
37 PLUGIN_LDFLAGS  := -L$(AUBIO_MINGW32_DISTDIR)/usr/local/lib
38
39 # Libraries and linker flags required by plugin: add any -l<library>
40 # options here
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
44
45 # File extension for plugin library on this platform
46 PLUGIN_EXT      := .dll
47
48 include Makefile.inc