You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin.mk 692B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. RACK_DIR ?= ../..
  2. FLAGS += -fPIC \
  3. -I$(RACK_DIR)/include -I$(RACK_DIR)/dep/include
  4. ifdef SLUG
  5. FLAGS += -DSLUG=$(SLUG)
  6. endif
  7. include $(RACK_DIR)/arch.mk
  8. ifeq ($(ARCH), lin)
  9. LDFLAGS += -shared
  10. TARGET = plugin.so
  11. endif
  12. ifeq ($(ARCH), mac)
  13. LDFLAGS += -shared -undefined dynamic_lookup
  14. TARGET = plugin.dylib
  15. endif
  16. ifeq ($(ARCH), win)
  17. LDFLAGS += -shared -L$(RACK_DIR) -lRack
  18. TARGET = plugin.dll
  19. endif
  20. DISTRIBUTABLES += $(TARGET)
  21. all: $(TARGET)
  22. include $(RACK_DIR)/compile.mk
  23. clean:
  24. rm -rfv build $(TARGET) dist
  25. dist: all
  26. rm -rf dist
  27. mkdir -p dist/$(SLUG)
  28. cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
  29. cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)
  30. .PHONY: clean dist