blob: 8ef3555342ea9562d3e07e07401d0e7ad49f83e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
TARGET=click
default: $(TARGET)
SRCS= \
main.cpp \
MIDI.cpp \
PCM.cpp \
ClickStream.cpp \
config.cpp \
UI.cpp \
Timer.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
|