3229a1476a37459815abef4a1ccfae859e2a9a71
[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 TOOLPREFIX     ?=
10 CXX             = $(TOOLPREFIX)g++
11 CC              = $(TOOLPREFIX)gcc
12 LD              = $(TOOLPREFIX)g++
13 AR              = $(TOOLPREFIX)ar
14 RANLIB          = $(TOOLPREFIX)ranlib
15
16 # For a debug build...
17 #CFLAGS         := -Wall -Wextra -g
18
19 # ... or for a release build
20 CFLAGS          := -Wall -Wextra -O3 -ftree-vectorize
21
22 # Location of Vamp plugin SDK relative to the project directory
23 VAMPSDK_DIR     ?= ../vamp-plugin-sdk
24
25 # Location of libvamp-sdk.dll
26 VAMPDLL_DIR ?= ../vamp-plugin-sdk-2.5-binaries-win32-mingw
27
28 # Location of libaubio-4.dll
29 AUBIODLL_DIR ?= ../../dist-win32/usr/local/lib
30
31 # Libraries and linker flags required by plugin: add any -l<library>
32 # options here
33 PLUGIN_LDFLAGS  := -shared -Wl,--retain-symbols-file=vamp-plugin.list
34 PLUGIN_LIBS                     := $(VAMPDLL_DIR)/libvamp-sdk.dll $(AUBIODLL_DIR)/libaubio-4.dll
35
36
37 # File extension for plugin library on this platform
38 PLUGIN_EXT      := .dll
39
40 include Makefile.inc