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.

35 lines
809B

  1. SLUG=Bogaudio
  2. VERSION=0.6.4
  3. FLAGS += -DSLUG=$(SLUG) -DVERSION=$(VERSION)
  4. ifdef REQUIRE_VERSION
  5. FLAGS += -DREQUIRE_VERSION=$(REQUIRE_VERSION)
  6. endif
  7. ifdef EXPERIMENTAL
  8. FLAGS += -DEXPERIMENTAL=1
  9. endif
  10. ifdef TEST
  11. FLAGS += -DTEST=1
  12. endif
  13. SOURCES = $(wildcard src/*.cpp src/dsp/*cpp)
  14. CXXFLAGS += -Isrc -Isrc/dsp
  15. DISTRIBUTABLES += $(wildcard LICENSE* README*) res
  16. RACK_DIR ?= ../..
  17. include $(RACK_DIR)/plugin.mk
  18. BENCHMARK_SOURCES = $(wildcard benchmarks/*.cpp src/dsp/*cpp)
  19. BENCHMARK_OBJECTS = $(patsubst %, build/%.o, $(BENCHMARK_SOURCES))
  20. BENCHMARK_DEPS = $(patsubst %, build/%.d, $(BENCHMARK_SOURCES))
  21. -include $(BENCHMARK_DEPS)
  22. benchmark: $(BENCHMARK_OBJECTS)
  23. $(CXX) -o $@ $^ ../../build/src/util.cpp.o -lbenchmark -lpthread
  24. benchmark_clean:
  25. rm -f benchmark $(BENCHMARK_OBJECTS)
  26. clean: benchmark_clean