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.

41 lines
655B

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