From 2ef317859d5be88a5dff9a7760cd9b83621a9679 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 7 Feb 2018 10:44:18 -0500 Subject: [PATCH] Use RACK_DIR in plugins Makefile framework --- plugin.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin.mk b/plugin.mk index caab1d2a..7896ad22 100644 --- a/plugin.mk +++ b/plugin.mk @@ -1,14 +1,14 @@ -# All paths here assume the PWD is plugin/something +RACK_DIR ?= ../.. FLAGS += -fPIC \ - -I../../include -I../../dep/include + -I$(RACK_DIR)/include -I$(RACK_DIR)/dep/include ifdef SLUG FLAGS += -DSLUG=$(SLUG) endif -include ../../arch.mk +include $(RACK_DIR)/arch.mk ifeq ($(ARCH), lin) LDFLAGS += -shared @@ -21,7 +21,7 @@ ifeq ($(ARCH), mac) endif ifeq ($(ARCH), win) - LDFLAGS += -shared -L../../ -lRack + LDFLAGS += -shared -L$(RACK_DIR) -lRack TARGET = plugin.dll endif @@ -30,7 +30,7 @@ DISTRIBUTABLES += $(TARGET) all: $(TARGET) -include ../../compile.mk +include $(RACK_DIR)/compile.mk clean: rm -rfv build $(TARGET) dist