diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-19 12:14:32 +0000 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-19 12:14:32 +0000 |
commit | df1a250beb787e54f81518d2786d78d654f082ba (patch) | |
tree | dd2f19de0fed6ea408e40013cf652c4900d678dd /Makefile | |
parent | ec3c5801f14700dcbb60f60f663d28ff6cb528b4 (diff) |
Add local aplaymidi version, for adding clock (WIP)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -11,10 +11,11 @@ CXX=clang++ CXXFLAGS=-Wall -g -O2 -fPIC -std=c++20 CXXLIBS=-lfcgi -lreichwein -lfmt -lasound -all: $(TARGET) +CC=clang +CFLAGS=-Wall -g -O2 -fPIC +CLIBS=-lasound -play: - aplaymidi -p24 locked_out_of_heaven.midi +all: $(TARGET) aplaymidi-mp run-fcgi: spawn-fcgi -a 127.0.0.1 -p 9090 -n -- ./midiplay @@ -25,5 +26,11 @@ run-fcgi: $(TARGET): $(OBJS) $(CXX) $(CXXFLAGS) -o $@ $^ $(CXXLIBS) +aplaymidi-mp.o: aplaymidi-mp.c + $(CC) $(CFLAGS) -o $@ -c $^ + +aplaymidi-mp: aplaymidi-mp.o + $(CC) $(CFLAGS) -o $@ $^ $(CLIBS) + clean: - -rm -rf $(OBJS) $(TARGET) + -rm -rf *.o $(TARGET) aplaymidi-mp |