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.

38 lines
625B

  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. all: $(TARGET)
  18. include ../../compile.mk
  19. clean:
  20. rm -rfv build $(TARGET) dist
  21. dist: all
  22. rm -rf dist
  23. mkdir -p dist/$(SLUG)
  24. cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
  25. cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)
  26. .PHONY: clean dist