Skip to content

Commit

Permalink
Added windows 64-bit makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbaume committed Mar 29, 2016
1 parent c37b385 commit ed68f32
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions Makefile.mingw64
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ed68f32

Please sign in to comment.