Makefile: splitted for osx/linux/mingw32
[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 # Libraries and linker flags required by plugin: add any -l<library>
26 # options here
27 PLUGIN_LDFLAGS  := -shared -static -Wl,--retain-symbols-file=vamp-plugin.list $(VAMPSDK_DIR)/libvamp-sdk.a
28
29
30 # File extension for plugin library on this platform
31 PLUGIN_EXT      := .dll
32
33 include Makefile.inc