-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (53 loc) · 934 Bytes
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY : build
build :
gcc src/splay.c -o splay \
-Wall \
-I/usr/include/vlc/plugins \
-lncurses \
-ltinfo \
-lvlc \
-lvlccore \
-pthread
chmod +x splay
.PHONY : build-mpris
build-mpris :
gcc src/splay-mpris.c -o splay \
-Wall\
-I/usr/include/dbus-1.0 \
-I/usr/lib/dbus-1.0/include \
-I/usr/include/vlc/plugins \
-ldbus-1 \
-lncurses \
-ltinfo \
-lvlc \
-lvlccore \
-pthread
chmod +x splay
.PHONY : debug
debug :
gcc -g -O0 -D DEBUG=1 src/splay.c -o splay \
-Wall\
-I/usr/include/vlc/plugins \
-lncurses \
-ltinfo \
-lvlc \
-lvlccore \
-pthread
chmod +x splay
.PHONY : debug-mpris
debug-mpris :
gcc -g -O0 -D DEBUG=1 src/splay-mpris.c -o splay \
-Wall\
-I/usr/include/dbus-1.0 \
-I/usr/lib/dbus-1.0/include \
-I/usr/include/vlc/plugins \
-ldbus-1 \
-lncurses \
-ltinfo \
-lvlc \
-lvlccore \
-pthread
chmod +x splay
.PHONY : clean
clean :
-rm splay