stb image in its own compilation unit

This commit is contained in:
Rakarake 2026-03-13 11:21:10 +01:00
parent 7c0f56f497
commit a091a542f3
3 changed files with 5 additions and 4 deletions

View file

@ -5,10 +5,11 @@ LDLIBS+=$(shell pkg-config --libs $(LIBS)) -lwayland-cursor
WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
glonkers: wlr-layer-shell-unstable-v1-protocol.o xdg-shell-protocol.o renderer.o wayland.o
glonkers: wlr-layer-shell-unstable-v1-protocol.o xdg-shell-protocol.o renderer.o wayland.o stb_image.o
glonkers.o: wlr-layer-shell-unstable-v1-protocol.h xdg-shell-protocol.h renderer.h wayland.h
renderer.o: renderer.h
wayland.o: wayland.h
stb_image.o: stb_image.h
xdg-shell-protocol.h:
$(WAYLAND_SCANNER) client-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@