From 325145d4c6c6eba09cd3326376fb6c5057527af5 Mon Sep 17 00:00:00 2001 From: korei999 Date: Wed, 29 Nov 2023 21:22:42 +0200 Subject: [PATCH] use config.def.h --- Makefile | 4 +--- config.mk | 8 ++++---- dwl.c | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f0ff805..168cfdb 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ LDLIBS = `$(PKG_CONFIG) --libs $(PKGS)` $(LIBS) all: dwl dwl: dwl.o util.o $(CC) dwl.o util.o $(LDLIBS) $(LDFLAGS) $(DWLCFLAGS) -o $@ -dwl.o: dwl.c config.mk config.h client.h cursor-shape-v1-protocol.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h +dwl.o: dwl.c config.mk config.def.h client.h cursor-shape-v1-protocol.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h util.o: util.c util.h # wayland-scanner is a tool which generates C headers and rigging for Wayland @@ -35,8 +35,6 @@ cursor-shape-v1-protocol.h: $(WAYLAND_SCANNER) server-header \ $(WAYLAND_PROTOCOLS)/staging/cursor-shape/cursor-shape-v1.xml $@ -config.h: - cp config.def.h $@ clean: rm -f dwl *.o *-protocol.h diff --git a/config.mk b/config.mk index 906f403..5556d9b 100644 --- a/config.mk +++ b/config.mk @@ -8,8 +8,8 @@ PREFIX = /usr/local MANDIR = $(PREFIX)/share/man DATADIR = $(PREFIX)/share -XWAYLAND = -XLIBS = +# XWAYLAND = +# XLIBS = # Uncomment to build XWayland support -#XWAYLAND = -DXWAYLAND -#XLIBS = xcb xcb-icccm +XWAYLAND = -DXWAYLAND +XLIBS = xcb xcb-icccm diff --git a/dwl.c b/dwl.c index edba265..51e4fac 100644 --- a/dwl.c +++ b/dwl.c @@ -391,7 +391,7 @@ static xcb_atom_t netatom[NetLast]; #endif /* configuration, allows nested code to access above variables */ -#include "config.h" +#include "config.def.h" /* attempt to encapsulate suck into one file */ #include "client.h"