summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-02 13:14:08 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-02 13:14:08 +0100
commit083e46d5d23d2105e2df1adc769700fb579c9597 (patch)
tree27fb7fd49b4eb91f40eec561c566717f72cedd12 /Makefile
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..eb05671
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+default: alsa
+
+CXXLIBS=$(shell pkg-config --libs alsa) -lreichwein -lfmt
+CXX=clang++
+
+alsa: alsa.cpp
+ $(CXX) $(CXXFLAGS) -std=c++20 -O2 -g -Wall -o $@ $^ $(CXXLIBS)
+
+clean:
+ rm -f alsa
+
+sound:
+ ffmpeg -i media/click.wav -f s16le media/click.s16le