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
1.0KB

  1. SHELL:=/bin/bash -O extglob
  2. # 03/03/2018 Changed to match https://github.com/VCVRack/Fundamental/blob/master/Makefile
  3. SLUG = trowaSoft
  4. VERSION = 0.6.3
  5. # ^ Don't allow any SPACE after the VERSION because it will F'UP the zip...
  6. # ONLY 3 digits allowed now. https://github.com/VCVRack/community/issues/269
  7. RACK_DIR ?= ../..
  8. # Add .cpp and .c files to the build
  9. SOURCES = \
  10. $(wildcard lib/oscpack/ip/*.cpp) \
  11. $(wildcard lib/oscpack/osc/*.cpp) \
  12. $(wildcard src/*.cpp) \
  13. $(wildcard src/*/*.cpp) \
  14. # Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
  15. # Static libraries are fine.
  16. include $(RACK_DIR)/arch.mk
  17. ifeq ($(ARCH), win)
  18. SOURCES += $(wildcard lib/oscpack/ip/win32/*.cpp)
  19. LDFLAGS += -lws2_32 -lwinmm
  20. LDFLAGS += -L$(RACK_DIR)/dep/lib #-lglew32 -lglfw3dll
  21. #LDFLAGS += -lrtmidi
  22. else
  23. SOURCES += $(wildcard lib/oscpack/ip/posix/*.cpp)
  24. endif
  25. DISTRIBUTABLES += $(wildcard LICENSE*) res \
  26. pd other
  27. # ^ add our other folders (supplementary files)
  28. include $(RACK_DIR)/plugin.mk