swap focus

This commit is contained in:
2026-05-13 13:25:46 +07:00
parent 1e32f83883
commit 4e1be605b7
4 changed files with 29 additions and 51 deletions
+4 -6
View File
@@ -8,18 +8,16 @@ OBJ_FILES = $(SRC_FILES:src/%.c=build/%.o)
all: proto $(TARGET)
xdg-shell-protocol.h:
$(WAYLAND_SCANNER) server-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml ${.TARGET}
$(WAYLAND_SCANNER) server-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
wlr-layer-shell-unstable-v1-protocol.h:
$(WAYLAND_SCANNER) server-header ./protocols/wlr-layer-shell-unstable-v1.xml ${.TARGET}
$(WAYLAND_SCANNER) server-header ./protocols/wlr-layer-shell-unstable-v1.xml $@
proto: xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h
.for _src in ${SRC_FILES}
build/${_src:T:R}.o: ${_src}
build/%.o: src/%.c
@mkdir -p build
$(CC) $(CFLAGS) -c ${.ALLSRC} -o ${.TARGET}
.endfor
$(CC) $(CFLAGS) -o $@ -c $<
$(TARGET): $(OBJ_FILES)
$(CC) -o absinthe $(OBJ_FILES) $(LDFLAGS)