-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
74 lines (55 loc) · 1.83 KB
/
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
CC=gcc
LD=ld
PKGS=wlroots wayland-client wayland-server xkbcommon
CFLAGS+=-DWLR_USE_UNSTABLE
CFLAGS+=-g
CFLAGS+=-Wall -Wextra -std=c11
CFLAGS+=-Iprotocol
CFLAGS+=`pkg-config --cflags $(PKGS)`
CFLAGS+=-fdiagnostics-color=always
CFLAGS+=-Wno-unused-parameter
LDFLAGS+=`pkg-config --libs $(PKGS)`
LDFLAGS+=-lm
XDG_SHELL_XML=/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml
all: venowm test_split
test_split: split.o logmsg.o
backend.o: protocol/xdg-shell-protocol.h \
protocol/xdg-shell-protocol.c
venowm_control.o: protocol/venowm-shell-protocol.h \
protocol/venowm-shell-protocol.c
libvenowm.o: protocol/venowm-shell-client-protocol.h \
protocol/venowm-shell-protocol.c
venowm:split.o \
screen.o \
workspace.o \
window.o \
logmsg.o \
bindings.o \
venowm_control.o \
backend.o \
libvenowm.o
protocol/xdg-shell-protocol.h: $(XDG_SHELL_XML)
mkdir -p protocol
wayland-scanner server-header $< $@
protocol/xdg-shell-client-protocol.h: $(XDG_SHELL_XML)
wayland-scanner client-header $< $@
protocol/xdg-shell-protocol.c: $(XDG_SHELL_XML)
mkdir -p protocol
wayland-scanner private-code $< $@
protocol/venowm-shell-protocol.h: venowm-shell.xml
mkdir -p protocol
wayland-scanner server-header $< $@
protocol/venowm-shell-client-protocol.h: venowm-shell.xml
wayland-scanner client-header $< $@
protocol/venowm-shell-protocol.c: venowm-shell.xml
mkdir -p protocol
wayland-scanner private-code $< $@
.PHONY: protocols
protocols: protocol/xdg-shell-protocol.h \
protocol/xdg-shell-client-protocol.h \
protocol/xdg-shell-protocol.c \
protocol/venowm-shell-protocol.h \
protocol/venowm-shell-client-protocol.h \
protocol/venowm-shell-protocol.c \
clean:
rm -f *.o venowm test_split logmsg -r protocol