blob: 47f9a5ffb09c17c960aa1e1e4eeeebb983614bf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
TARGET=click
default: $(TARGET)
SRCS=main.cpp MIDI.cpp PCM.cpp ClickStream.cpp config.cpp
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 -o $@ -c $<
clean:
rm -f $(TARGET) $(OBJS)
sound:
ffmpeg -i media/click.wav -f s16le media/click.s16le
|