-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 810 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 810 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
WL_SCANNER = /usr/local/bin/wayland-scanner
WLR_LAYER_SHELL = protocols/wlr-layer-shell-unstable-v1.xml
XDG_SHELL = /usr/local/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml
CFLAGS += -I/usr/local/include/pixman-1/ -I.
CFLAGS += -I/usr/local/include/wlroots-0.20
CFLAGS += -I/usr/local/include/
CFLAGS += -DWLR_USE_UNSTABLE
LDFLAGS = -L/usr/local/lib -lwayland-server -lwlroots-0.20 -lxkbcommon -lm
HEADERS = xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h
all: ${HEADERS}
cc ${CFLAGS} ${LDFLAGS} stage.c -o stage
dev: ${HEADERS}
cc ${CFLAGS} -DSTAGE_DEV ${LDFLAGS} stage.c -o stage
xdg-shell-protocol.h:
${WL_SCANNER} server-header ${XDG_SHELL} $@
wlr-layer-shell-unstable-v1-protocol.h:
${WL_SCANNER} server-header ${WLR_LAYER_SHELL} $@
clean:
rm -f stage stage.o ${HEADERS}