-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 798 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (21 loc) · 798 Bytes
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
SRCS = awb alsa engine event fluid mawb.pb term jackengine wavetree serial
%.o : %.cc mawb.pb.h
mkdir -p .deps
g++ -c $*.cc -std=c++11 -g -MD -MF .deps/$*.d -o $*.o
all : awbd mawb_pb2.py
check : event_test wavetree_test
event_test
wavetree_test
clean :
rm -rf event_test wavetree_test mawb_pb2.py mawb.pb.* *.o .deps
awbd : $(foreach f,$(SRCS),$f.o)
g++ $^ -L/usr/local/lib -lspug++ -lasound -lfluidsynth -lprotobuf -ljack -o awbd
jawbd : jackengine.o wavetree.o
g++ $^ -std=c++11 -ljack -o jawbd
mawb_pb2.py mawb.pb.cc mawb.pb.h : mawb.proto
protoc --cpp_out=. --python_out=. mawb.proto
event_test : event_test.o event.o
g++ $^ -g -lspug++ -o event_test
wavetree_test : wavetree_test.o wavetree.o
g++ $^ -g -lspug++ -o wavetree_test
-include $(foreach f,$(SRCS),.deps/$f.d)