From 9a5d85c66817713696c2e99ed61f00782242a2a4 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 25 Jun 2018 21:04:48 -0400 Subject: [PATCH] Revert "Remove need for libRack.a. Now SDK can be built cross-platform, woohoo!" This reverts commit 7b7f24923480bf309c0fca6ba4b3586ac360d08e. --- Makefile | 5 ++++- plugin.mk | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aa1dc4cb..95b6b94b 100644 --- a/Makefile +++ b/Makefile @@ -155,7 +155,10 @@ endif cp -R include dist/Rack-SDK/ mkdir -p dist/Rack-SDK/dep/ cp -R dep/include dist/Rack-SDK/dep/ - cd dist && zip -5 -r Rack-SDK-$(VERSION).zip Rack-SDK +ifdef ARCH_WIN + cp libRack.a dist/Rack-SDK/ +endif + cd dist && zip -5 -r Rack-SDK-$(VERSION)-$(ARCH).zip Rack-SDK # Obviously this will only work if you have the private keys to my server diff --git a/plugin.mk b/plugin.mk index e35e55e8..35f2c30e 100644 --- a/plugin.mk +++ b/plugin.mk @@ -28,7 +28,7 @@ ifdef ARCH_MAC endif ifdef ARCH_WIN - LDFLAGS += -shared + LDFLAGS += -shared -L$(RACK_DIR) -lRack TARGET := plugin.dll RACK_USER_DIR ?= $(USERPROFILE)/Documents/Rack endif