summaryrefslogtreecommitdiff
path: root/Makefile
blob: d56dc56ef80555565810bb625a147e75e6eb16c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
all: build/phonelock

build/phonelock: build main.c wayland-client.h wayland-protocol.c
	gcc -Wall -o build/phonelock main.c -lwayland-client

build:
	mkdir -p build

wayland-client.h:
	wayland-scanner client-header < /usr/share/wayland/wayland.xml > $@

wayland-protocol.c:
	wayland-scanner private-code < /usr/share/wayland/wayland.xml > $@

clean:
	rm -rf build wayland-client.h wayland-protocol.c