From ed68f3212ed444b5c19398fb9ac2b94d1b2e434b Mon Sep 17 00:00:00 2001 From: Chris Baume Date: Tue, 29 Mar 2016 09:51:19 +0100 Subject: [PATCH] Added windows 64-bit makefile --- Makefile.mingw => Makefile.mingw32 | 0 Makefile.mingw64 | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+) rename Makefile.mingw => Makefile.mingw32 (100%) create mode 100755 Makefile.mingw64 diff --git a/Makefile.mingw b/Makefile.mingw32 similarity index 100% rename from Makefile.mingw rename to Makefile.mingw32 diff --git a/Makefile.mingw64 b/Makefile.mingw64 new file mode 100755 index 0000000..d4ebc3a --- /dev/null +++ b/Makefile.mingw64 @@ -0,0 +1,24 @@ +include Makefile.inc + +PLUGIN_EXT := .dll +PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) +CXXFLAGS := -I$(VAMP_SDK_DIR) +LDFLAGS := $(LDFLAGS) -fno-exceptions -static -static-libgcc +DYNAMIC_LDFLAGS = -shared -Wl,-Bsymbolic +PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=$(VAMP_SDK_DIR)/build/vamp-plugin.map +PLUGIN_LIBS = $(VAMP_SDK_DIR)/libvamp-sdk.a + +CXX := x86_64-w64-mingw32-g++ +CC := x86_64-w64-mingw32-gcc + +OBJECTS := $(SOURCES:.cpp=.o) +OBJECTS := $(OBJECTS:.c=.o) + +$(PLUGIN): $(OBJECTS) + $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $^ $(PLUGIN_LIBS) + +clean: + rm $(OBJECTS) + +distclean: clean + rm $(PLUGIN)