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.

57 lines
1.8KB

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