TARGET=click default: $(TARGET) SRCS= \ main.cpp \ MIDI.cpp \ PCM.cpp \ config.cpp \ UI.cpp \ Timer.cpp \ debug.cpp \ cpuload.cpp \ log.cpp \ Click.cpp \ BPMDetect.cpp HEADERS=$(SRCS:.cpp=.h) OBJS=$(SRCS:.cpp=.o) CXXLIBS=$(shell pkg-config --libs alsa) -lreichwein -lfmt CXX=clang++ $(TARGET): $(OBJS) $(CXX) $^ -o $@ $(CXXLIBS) %.o: %.cpp $(CXX) $(CXXFLAGS) -std=c++20 -O2 -g -Wall -Wpedantic -o $@ -c $< clean: rm -f $(TARGET) $(OBJS) sound: ffmpeg -i media/click.wav -f s16le media/click.s16le