|
-
- SLUG=Bogaudio
- VERSION=0.6.4
- FLAGS += -DSLUG=$(SLUG) -DVERSION=$(VERSION)
-
- ifdef REQUIRE_VERSION
- FLAGS += -DREQUIRE_VERSION=$(REQUIRE_VERSION)
- endif
-
- ifdef EXPERIMENTAL
- FLAGS += -DEXPERIMENTAL=1
- endif
-
- ifdef TEST
- FLAGS += -DTEST=1
- endif
-
- SOURCES = $(wildcard src/*.cpp src/dsp/*cpp)
- CXXFLAGS += -Isrc -Isrc/dsp
-
- DISTRIBUTABLES += $(wildcard LICENSE* README*) res
-
- RACK_DIR ?= ../..
- include $(RACK_DIR)/plugin.mk
-
- BENCHMARK_SOURCES = $(wildcard benchmarks/*.cpp src/dsp/*cpp)
- BENCHMARK_OBJECTS = $(patsubst %, build/%.o, $(BENCHMARK_SOURCES))
- BENCHMARK_DEPS = $(patsubst %, build/%.d, $(BENCHMARK_SOURCES))
- -include $(BENCHMARK_DEPS)
- benchmark: $(BENCHMARK_OBJECTS)
- $(CXX) -o $@ $^ ../../build/src/util.cpp.o -lbenchmark -lpthread
- benchmark_clean:
- rm -f benchmark $(BENCHMARK_OBJECTS)
- clean: benchmark_clean
|