diff --git a/Makefile b/Makefile index 6e6d4c6..cefbf2c 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ diff --git a/glonkers.c b/glonkers.c index 4c22ac5..903514d 100644 --- a/glonkers.c +++ b/glonkers.c @@ -11,9 +11,6 @@ #include "wayland.h" #include -#define STB_IMAGE_IMPLEMENTATION -#include "stb_image.h" - void print_help(FILE *channel, char *bin_path) { fprintf(channel, "Usage: %s [OPTION]... [PATH]\n", bin_path); } diff --git a/stb_image.c b/stb_image.c new file mode 100644 index 0000000..6e5aa1c --- /dev/null +++ b/stb_image.c @@ -0,0 +1,3 @@ +#define STB_IMAGE_IMPLEMENTATION +#include "stb_image.h" +