|  | # All paths here assume the PWD is plugin/something
FLAGS += -fPIC \
	-I../../include -I../../dep/include
include ../../arch.mk
ifeq ($(ARCH), lin)
	LDFLAGS += -shared
	TARGET = plugin.so
endif
ifeq ($(ARCH), mac)
	LDFLAGS += -shared -undefined dynamic_lookup
	TARGET = plugin.dylib
endif
ifeq ($(ARCH), win)
	LDFLAGS += -shared -L../../ -lRack
	TARGET = plugin.dll
endif
DISTRIBUTABLES += $(TARGET)
all: $(TARGET)
include ../../compile.mk
clean:
	rm -rfv build $(TARGET) dist
dist: all
	rm -rf dist
	mkdir -p dist/$(SLUG)
	cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
	cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)
.PHONY: clean dist
 |