diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,13 +1,22 @@ -default: alsa +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++ -alsa: alsa.cpp - $(CXX) $(CXXFLAGS) -std=c++20 -O2 -g -Wall -o $@ $^ $(CXXLIBS) +$(TARGET): $(OBJS) + $(CXX) $^ -o $@ $(CXXLIBS) + +%.o: %.cpp + $(CXX) $(CXXFLAGS) -std=c++20 -O2 -g -Wall -o $@ -c $< clean: - rm -f alsa + rm -f $(TARGET) $(OBJS) sound: ffmpeg -i media/click.wav -f s16le media/click.s16le |