|
@@ -18,16 +18,19 @@ include $(RACK_DIR)/arch.mk |
|
|
ifeq ($(ARCH), lin) |
|
|
ifeq ($(ARCH), lin) |
|
|
LDFLAGS += -shared |
|
|
LDFLAGS += -shared |
|
|
TARGET := plugin.so |
|
|
TARGET := plugin.so |
|
|
|
|
|
RACK_USER_DIR ?= $(HOME)/.Rack |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq ($(ARCH), mac) |
|
|
ifeq ($(ARCH), mac) |
|
|
LDFLAGS += -shared -undefined dynamic_lookup |
|
|
LDFLAGS += -shared -undefined dynamic_lookup |
|
|
TARGET := plugin.dylib |
|
|
TARGET := plugin.dylib |
|
|
|
|
|
RACK_USER_DIR ?= $(HOME)/Documents/Rack |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq ($(ARCH), win) |
|
|
ifeq ($(ARCH), win) |
|
|
LDFLAGS += -shared -L$(RACK_DIR) -lRack |
|
|
LDFLAGS += -shared -L$(RACK_DIR) -lRack |
|
|
TARGET := plugin.dll |
|
|
TARGET := plugin.dll |
|
|
|
|
|
RACK_USER_DIR ?= $(USERPROFILE)/Documents/Rack |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -57,6 +60,8 @@ endif |
|
|
# Create ZIP package |
|
|
# Create ZIP package |
|
|
cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) |
|
|
cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) |
|
|
|
|
|
|
|
|
|
|
|
install: dist |
|
|
|
|
|
cp dist/$(SLUG)-$(VERSION)-$(ARCH).zip $(RACK_USER_DIR)/plugins/ |
|
|
|
|
|
|
|
|
.PHONY: clean dist |
|
|
.PHONY: clean dist |
|
|
.DEFAULT_GOAL := all |
|
|
.DEFAULT_GOAL := all |