annotate Makefile.mingw32 @ 198:3a76aa26b578 tip master

wscript: check for 64bit using sys.maxsize (closes #3)
author Paul Brossier <piem@piem.org>
date Mon, 04 Dec 2017 01:42:19 +0100
parents 5e944736a8ed
children
rev   line source
piem@75 1 ## Makefile for Vamp aubio plugin using MinGW tools on Windows.
piem@75 2 ##
piem@75 3 ## Edit this to adjust compiler and library settings when
piem@75 4 ## building using MinGW.
piem@75 5 ##
piem@75 6 ## Note that the list of source files, etc, goes in Makefile.inc
piem@75 7 ## instead so that it can be included by all platform Makefiles.
piem@75 8
piem@94 9 # Location of Vamp plugin SDK relative to the project directory
piem@162 10 VAMPSDK_DIR ?= ./contrib/vamp-plugin-sdk-2.6
piem@94 11
piem@94 12 # Location of libvamp-sdk.dll
piem@162 13 #VAMPBIN_DIR ?= ./contrib/vamp-plugin-sdk-2.6-binaries-win32-mingw
piem@162 14 VAMPBIN_DIR ?= ./contrib/vamp-plugin-sdk-2.6
piem@94 15
piem@108 16 # Location of cross compiled and installed aubio tree
piem@162 17 AUBIO_MINGW32_DISTDIR ?= ./contrib/aubio-dist
piem@94 18
piem@94 19 # Toolchain prefix
piem@162 20 # on debian/ubuntu systems, you will want to install g++-mingw-w64-i686
piem@162 21 TOOLPREFIX ?= i686-w64-mingw32-
piem@94 22
piem@75 23 CXX = $(TOOLPREFIX)g++
piem@75 24 CC = $(TOOLPREFIX)gcc
piem@75 25 LD = $(TOOLPREFIX)g++
piem@75 26 AR = $(TOOLPREFIX)ar
piem@75 27 RANLIB = $(TOOLPREFIX)ranlib
piem@75 28
piem@75 29 # For a debug build...
piem@75 30 #CFLAGS := -Wall -Wextra -g
piem@75 31
piem@75 32 # ... or for a release build
piem@75 33 CFLAGS := -Wall -Wextra -O3 -ftree-vectorize
piem@75 34
piem@94 35 # add AUBIO_MINGW32_DISTDIR to ARCHFLAGS
piem@162 36 ARCHFLAGS := -I$(AUBIO_MINGW32_DISTDIR)/include
piem@77 37
piem@94 38 # add AUBIO_MINGW32_DISTDIR to PLUGIN_LDFLAGS
piem@162 39 PLUGIN_LDFLAGS :=
piem@75 40
piem@75 41 # Libraries and linker flags required by plugin: add any -l<library>
piem@75 42 # options here
piem@94 43 PLUGIN_LDFLAGS += -Wl,--enable-auto-import
piem@162 44 PLUGIN_LDFLAGS += -fno-exceptions -static -static-libgcc
piem@162 45 PLUGIN_LDFLAGS += -shared -Wl,-Bsymbolic
piem@162 46 PLUGIN_LDFLAGS += -Wl,--retain-symbols-file=vamp-plugin.list
piem@162 47 PLUGIN_LIBS := $(AUBIO_MINGW32_DISTDIR)/lib/libaubio.dll.a $(VAMPBIN_DIR)/libvamp-sdk.a
piem@75 48
piem@75 49 # File extension for plugin library on this platform
piem@75 50 PLUGIN_EXT := .dll
piem@75 51
piem@75 52 include Makefile.inc