diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-09-29 10:53:41 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-09-29 10:53:41 -0700 |
commit | 88b8c199e3524b7c4e2667db3683c77d70f34a26 (patch) | |
tree | afe6f897edf813e9cf2c9221f3eab3fee935a900 /sys/cmd/wm/rules.mk | |
parent | b9a07a67b85e9192faa0e285b4419bd5ef242a03 (diff) |
feat(wm): working prototype
Diffstat (limited to 'sys/cmd/wm/rules.mk')
-rw-r--r-- | sys/cmd/wm/rules.mk | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/sys/cmd/wm/rules.mk b/sys/cmd/wm/rules.mk index b1ab9c3..8714aec 100644 --- a/sys/cmd/wm/rules.mk +++ b/sys/cmd/wm/rules.mk @@ -3,6 +3,9 @@ include share/push.mk # Local sources SRCS_$(d) := \ + $(d)/xdg-shell-protocol.c \ + $(d)/util.c \ + $(d)/arg.c \ $(d)/input.c \ $(d)/output.c \ $(d)/xdg.c \ @@ -14,15 +17,29 @@ include share/paths.mk # Local rules include share/dynamic.mk + +$(d)/xdg-shell-protocol.h: + @echo "MK xdg-shell-protocol.h";\ + $(WL_SCAN) server-header $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml $@ + +$(d)/xdg-shell-protocol.c: $(d)/xdg-shell-protocol.h + @echo "MK xdg-shell-protocol.c";\ + $(WL_SCAN) private-code $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml $@ + +GENS += $(d)/xdg-shell-protocol.h $(d)/xdg-shell-protocol.c + +$(BINS_$(d)): TCINCS = \ + -I sys/cmd/wm + $(BINS_$(d)): TCFLAGS = \ - `$(PKG) --cflags wlroots ` \ + `$(PKG) --cflags wlroots` \ `$(PKG) --cflags wayland-server` \ `$(PKG) --cflags xkbcommon` $(BINS_$(d)): TCLIBS = \ `$(PKG) --libs wlroots` \ `$(PKG) --libs wayland-server` \ - `$(PKG) --libs xkbcommon` + `$(PKG) --libs xkbcommon` \ $(BINS_$(d)): $(OBJS_$(d)) $(OBJ_DIR)/sys/libn/libn.a $(COMPLINK) |