aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-12-24 21:56:41 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-12-24 21:56:41 -0500
commit206427537a2abd075157e62da09000f2b5aaf42c (patch)
treef9241b75f64dbc19b8f6f1babf75a059e02ea234 /Makefile
parentcfe78159033968d80a83b7f879f8281267cc2751 (diff)
parent3695ac643fb621f9339137afbc274c82ab46d088 (diff)
Merge updates from guidocella
Thanks so much for helping to keep the project running while life was crazy!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 41d2def..cee8963 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
include config.mk
-CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99 -Werror=declaration-after-statement
+CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99
WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
@@ -33,12 +33,22 @@ wlr-layer-shell-unstable-v1-protocol.c:
wlr-layer-shell-unstable-v1-protocol.o: wlr-layer-shell-unstable-v1-protocol.h
+idle-protocol.h:
+ $(WAYLAND_SCANNER) server-header \
+ protocols/idle.xml $@
+
+idle-protocol.c:
+ $(WAYLAND_SCANNER) private-code \
+ protocols/idle.xml $@
+
+idle-protocol.o: idle-protocol.h
+
config.h: | config.def.h
cp config.def.h $@
-dwl.o: config.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h
+dwl.o: config.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h idle-protocol.h
-dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o
+dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o
clean:
rm -f dwl *.o *-protocol.h *-protocol.c