swap focus
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user