|
@@ -1,14 +1,14 @@ |
|
|
# All paths here assume the PWD is plugin/something |
|
|
|
|
|
|
|
|
RACK_DIR ?= ../.. |
|
|
|
|
|
|
|
|
FLAGS += -fPIC \ |
|
|
FLAGS += -fPIC \ |
|
|
-I../../include -I../../dep/include |
|
|
|
|
|
|
|
|
-I$(RACK_DIR)/include -I$(RACK_DIR)/dep/include |
|
|
|
|
|
|
|
|
ifdef SLUG |
|
|
ifdef SLUG |
|
|
FLAGS += -DSLUG=$(SLUG) |
|
|
FLAGS += -DSLUG=$(SLUG) |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include ../../arch.mk |
|
|
|
|
|
|
|
|
include $(RACK_DIR)/arch.mk |
|
|
|
|
|
|
|
|
ifeq ($(ARCH), lin) |
|
|
ifeq ($(ARCH), lin) |
|
|
LDFLAGS += -shared |
|
|
LDFLAGS += -shared |
|
@@ -21,7 +21,7 @@ ifeq ($(ARCH), mac) |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq ($(ARCH), win) |
|
|
ifeq ($(ARCH), win) |
|
|
LDFLAGS += -shared -L../../ -lRack |
|
|
|
|
|
|
|
|
LDFLAGS += -shared -L$(RACK_DIR) -lRack |
|
|
TARGET = plugin.dll |
|
|
TARGET = plugin.dll |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
@@ -30,7 +30,7 @@ DISTRIBUTABLES += $(TARGET) |
|
|
|
|
|
|
|
|
all: $(TARGET) |
|
|
all: $(TARGET) |
|
|
|
|
|
|
|
|
include ../../compile.mk |
|
|
|
|
|
|
|
|
include $(RACK_DIR)/compile.mk |
|
|
|
|
|
|
|
|
clean: |
|
|
clean: |
|
|
rm -rfv build $(TARGET) dist |
|
|
rm -rfv build $(TARGET) dist |
|
|