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.

31 lines
784B

  1. # FLAGS will be passed to both the C and C++ compiler
  2. FLAGS +=
  3. CFLAGS +=
  4. CXXFLAGS +=
  5. # Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
  6. # Static libraries are fine.
  7. LDFLAGS +=
  8. # Add .cpp and .c files to the build
  9. SOURCES = $(wildcard src/*.cpp)
  10. # Must include the VCV plugin Makefile framework
  11. include ../../plugin.mk
  12. # Convenience target for including files in the distributable release
  13. DIST_NAME = Template
  14. .PHONY: dist
  15. dist: all
  16. ifndef VERSION
  17. $(error VERSION must be defined when making distributables)
  18. endif
  19. mkdir -p dist/$(DIST_NAME)
  20. cp LICENSE* dist/$(DIST_NAME)/
  21. cp $(TARGET) dist/$(DIST_NAME)/
  22. cp -R res dist/$(DIST_NAME)/
  23. cd dist && zip -5 -r $(DIST_NAME)-$(VERSION)-$(ARCH).zip $(DIST_NAME)