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.

59 lines
1.9KB

  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.9
  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. CFLAGS +=
  12. CXXFLAGS +=
  13. # Command line variable to turn on "experimental" modules
  14. ifdef _EXP
  15. FLAGS += -D _EXP
  16. endif
  17. ifdef _CPU_HOG
  18. FLAGS += -D _CPU_HOG
  19. endif
  20. # Macro to use on any target where we don't normally want asserts
  21. ASSERTOFF = -D NDEBUG
  22. # Make _ASSERT=true will nullify our ASSERTOFF flag, thus allowing them
  23. ifdef _ASSERT
  24. ASSERTOFF =
  25. endif
  26. # Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
  27. # Static libraries are fine.
  28. LDFLAGS += -lpthread
  29. # Add .cpp and .c files to the build
  30. SOURCES += $(wildcard src/*.cpp)
  31. SOURCES += $(wildcard dsp/**/*.cpp)
  32. SOURCES += $(wildcard dsp/third-party/falco/*.cpp)
  33. xxSOURCES += dsp/third-party/src/minblep.cpp
  34. SOURCES += dsp/third-party/kiss_fft130/kiss_fft.c
  35. SOURCES += dsp/third-party/kiss_fft130/tools/kiss_fftr.c
  36. SOURCES += $(wildcard sqsrc/**/*.cpp)
  37. # Add files to the ZIP package when running `make dist`
  38. # The compiled plugin is automatically added.
  39. DISTRIBUTABLES += $(wildcard LICENSE*) res
  40. # If RACK_DIR is not defined when calling the Makefile, default to two levels above
  41. RACK_DIR ?= ../..
  42. # Include the VCV Rack plugin Makefile framework
  43. include $(RACK_DIR)/plugin.mk
  44. # This turns asserts off for make (plugin), not for test or perf
  45. $(TARGET) : FLAGS += $(ASSERTOFF)
  46. include test.mk