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
953B

  1. SLUG = StellareModular-Link
  2. VERSION = 0.5.2
  3. FLAGS += -DSLUG=$(SLUG) -DVERSION=$(VERSION)
  4. FLAGS += -Imodules/link/include -Imodules/link/modules/asio-standalone/asio/include -Ilink-wrapper
  5. ifeq ($(OS),Windows_NT)
  6. # On Windows uses the wrapper DLL, needs to be build separately
  7. LDFLAGS += -Lsrc -llink-wrapper
  8. else
  9. UNAME_S := $(shell uname -s)
  10. ifeq ($(UNAME_S),Linux)
  11. CXXFLAGS += -DLINK_PLATFORM_LINUX=1
  12. endif
  13. ifeq ($(UNAME_S),Darwin)
  14. CXXFLAGS += -DLINK_PLATFORM_MACOSX=1
  15. endif
  16. endif
  17. SOURCES = $(wildcard src/*.cpp)
  18. ifneq ($(OS),Windows_NT)
  19. # On Mac and Windows directly compiles the wrapper
  20. SOURCES += $(wildcard link-wrapper/*.cpp)
  21. endif
  22. include ../../plugin.mk
  23. # Convenience target for packaging files into a ZIP file
  24. .PHONY: dist
  25. dist: all
  26. mkdir -p dist/$(SLUG)
  27. cp LICENSE* dist/$(SLUG)/
  28. cp $(TARGET) dist/$(SLUG)/
  29. cp -R res dist/$(SLUG)/
  30. cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)