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.

69 lines
2.3KB

  1. # Must follow the format in the Naming section of https://vcvrack.com/manual/PluginDevelopmentTutorial.html
  2. SLUG = squinkylabs-plug1
  3. # Must follow the format in the Versioning section of https://vcvrack.com/manual/PluginDevelopmentTutorial.html
  4. VERSION = 0.6.14
  5. # FLAGS will be passed to both the C and C++ compiler
  6. FLAGS += -I./dsp/generators -I./dsp/utils -I./dsp/filters
  7. FLAGS += -I./dsp/third-party/falco -I./dsp/third-party/kiss_fft130
  8. FLAGS += -I./dsp/third-party/kiss_fft130/tools -I./dsp/third-party/src
  9. FLAGS += -I./sqsrc/thread -I./dsp/fft -I./composites
  10. FLAGS += -I./sqsrc/noise -I./sqsrc/util -I./sqsrc/clock -I./sqsrc/grammar -I./sqsrc/delay
  11. FLAGS += -I./midi/model -I./midi/view -I./midi/controller -I./util
  12. FLAGS += -I./src/third-party -I.src/ctrl
  13. CFLAGS +=
  14. CXXFLAGS +=
  15. # For now, this branch is always V1
  16. # FLAGS += -D __V1
  17. # Command line variable to turn on "experimental" modules
  18. ifdef _EXP
  19. FLAGS += -D _EXP
  20. endif
  21. # Macro to use on any target where we don't normally want asserts
  22. ASSERTOFF = -D NDEBUG
  23. # Make _ASSERT=true will nullify our ASSERTOFF flag, thus allowing them
  24. ifdef _ASSERT
  25. ASSERTOFF =
  26. endif
  27. # Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
  28. # Static libraries are fine.
  29. LDFLAGS += -lpthread
  30. # Add .cpp and .c files to the build
  31. SOURCES += $(wildcard src/*.cpp)
  32. SOURCES += $(wildcard dsp/**/*.cpp)
  33. SOURCES += $(wildcard dsp/third-party/falco/*.cpp)
  34. xxSOURCES += dsp/third-party/src/minblep.cpp
  35. SOURCES += dsp/third-party/kiss_fft130/kiss_fft.c
  36. SOURCES += dsp/third-party/kiss_fft130/tools/kiss_fftr.c
  37. SOURCES += $(wildcard sqsrc/**/*.cpp)
  38. SOURCES += $(wildcard midi/**/*.cpp)
  39. SOURCES += $(wildcard src/third-party/*.cpp)
  40. SOURCES += $(wildcard src/seq/*.cpp)
  41. # Add files to the ZIP package when running `make dist`
  42. # The compiled plugin is automatically added.
  43. DISTRIBUTABLES += $(wildcard LICENSE*) res
  44. # If RACK_DIR is not defined when calling the Makefile, default to two levels above
  45. RACK_DIR ?= ../..
  46. # Include the VCV Rack plugin Makefile framework
  47. include $(RACK_DIR)/plugin.mk
  48. # This turns asserts off for make (plugin), not for test or perf
  49. $(TARGET) : FLAGS += $(ASSERTOFF)
  50. # mac does not like this argument
  51. ifdef ARCH_WIN
  52. FLAGS += -fmax-errors=5
  53. endif
  54. include test.mk