summaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 93e322ab95826f29b6ddf5d216dca9175c75d422 (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
30
31
32
33
34
35
36
37
38
TARGET=click

default: $(TARGET)

SRCS= \
  MainLoop.cpp \
  main.cpp \
  MIDI.cpp \
  PCM.cpp \
  config.cpp \
  UI.cpp \
  Timer.cpp \
  debug.cpp \
  cpuload.cpp \
  log.cpp \
  NoteClick.cpp \
  ClockClick.cpp \
  InternalClick.cpp \
  BPMDetect.cpp \

HEADERS=$(SRCS:.cpp=.h)

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 -Wpedantic -o $@ -c $<

clean:
	rm -f $(TARGET) $(OBJS)

sound:
	ffmpeg -i media/click.wav -f s16le media/click.s16le