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

  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.5.2dev# Not really a full release yet
  5. # Add .cpp and .c files to the build
  6. SOURCES = \
  7. $(wildcard lib/oscpack/ip/*.cpp) \
  8. $(wildcard lib/oscpack/osc/*.cpp) \
  9. $(wildcard src/*.cpp) \
  10. $(wildcard src/*/*.cpp) \
  11. # Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
  12. # Static libraries are fine.
  13. include ../../arch.mk
  14. ifeq ($(ARCH), win)
  15. SOURCES += $(wildcard lib/oscpack/ip/win32/*.cpp)
  16. LDFLAGS += -lws2_32 -lwinmm
  17. # TODO: Figure out how to get this to compile in Win without this
  18. LDFLAGS += -L../../dep/lib -lglew32 -lglfw3dll
  19. else
  20. SOURCES += $(wildcard lib/oscpack/ip/posix/*.cpp)
  21. endif
  22. DISTRIBUTABLES += $(wildcard LICENSE*) res \
  23. pd other
  24. # ^ add our other folders (supplementary files)
  25. RACK_DIR ?= ../..
  26. include $(RACK_DIR)/plugin.mk