summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-12 17:35:13 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-12 17:35:13 +0100
commit208a484ca309a4919f83a385f402272039817ed9 (patch)
treeee3f5eb218ac5ef7153033b5eaa8daac256abc62 /Makefile
parent7386cb9794092a7698ba7ca6c22787c18d911046 (diff)
First roundtrip data for remote control
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c81e849..5f24c4e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,19 @@
TARGET=midiplay
+all: $(TARGET)
+
play:
aplaymidi -p24 locked_out_of_heaven.midi
+
+run-fcgi:
+ spawn-fcgi -a 127.0.0.1 -p 9090 -n -- ./midiplay
+
+midiplay.o: midiplay.cpp
+ g++ -Wall -g -O2 -fPIC -o $@ -c $^
+
+$(TARGET): midiplay.o
+ g++ -Wall -g -O2 -fPIC -o $@ $^ -lfcgi -lreichwein -lfmt
+
+
+clean:
+ -rm -rf $(TARGET)