diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-24 16:11:33 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-24 16:11:33 +0100 |
| commit | 3643191bd9405e8210f2f4167303e3c5872f2bf2 (patch) | |
| tree | 4863e13f9e3ee48348ec53a02521f48d8af8a844 /Makefile | |
| parent | 6722a8953243387545a6bab23514b84cffd6a3bf (diff) | |
apply ipc patch and my configuration
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -14,10 +14,11 @@ DWLCFLAGS = `$(PKG_CONFIG) --cflags $(PKGS)` $(DWLCPPFLAGS) $(DWLDEVCFLAGS) $(CF 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 xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h +dwl: dwl.o util.o dwl-bar-ipc-unstable-v1-protocol.o + $(CC) dwl.o util.o dwl-bar-ipc-unstable-v1-protocol.o $(LDLIBS) $(LDFLAGS) $(DWLCFLAGS) -o $@ +dwl.o: dwl.c config.mk config.h client.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h dwl-bar-ipc-unstable-v1-protocol.h util.o: util.c util.h +dwl-bar-ipc-unstable-v1-protocol.o: dwl-bar-ipc-unstable-v1-protocol.c dwl-bar-ipc-unstable-v1-protocol.h # wayland-scanner is a tool which generates C headers and rigging for Wayland # protocols, which are specified in XML. wlroots requires you to rig these up @@ -31,11 +32,17 @@ xdg-shell-protocol.h: wlr-layer-shell-unstable-v1-protocol.h: $(WAYLAND_SCANNER) server-header \ protocols/wlr-layer-shell-unstable-v1.xml $@ +dwl-bar-ipc-unstable-v1-protocol.h: + $(WAYLAND_SCANNER) server-header \ + protocols/dwl-bar-ipc-unstable-v1.xml $@ +dwl-bar-ipc-unstable-v1-protocol.c: + $(WAYLAND_SCANNER) private-code \ + protocols/dwl-bar-ipc-unstable-v1.xml $@ config.h: cp config.def.h $@ clean: - rm -f dwl *.o *-protocol.h + rm -f dwl *.o *-protocol.* dist: clean mkdir -p dwl-$(VERSION) |