From 05e97f8346521b50fbedcc2e7d0679e297d4d98b Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 20 Mar 2023 15:21:21 +0100 Subject: make first sketch of bar using freetype2 instead of cairo --- Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1616c99 --- /dev/null +++ b/Makefile @@ -0,0 +1,48 @@ +PROTOCOLS = xdg-shell-client-protocol.c wlr-layer-shell-unstable.c xdg-output-unstable-v1-client-protocol.c dwl-bar-ipc-unstable-v1-protocol.c +SRC = ${PROTOCOLS} dbar.c drw.c util.c wayland.c +OBJ = ${SRC:.c=.o} +CFLAGS = -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread +LIBS = -lfreetype -lwayland-client -lrt -lxkbcommon -lm -lgrapheme + +all: dbar + +config.h: + cp config.def.h config.h + +dwl-bar-ipc-unstable-v1-protocol.h: + wayland-scanner client-header < protocols/dwl-bar-ipc-unstable-v1.xml > dwl-bar-ipc-unstable-v1-protocol.h + +dwl-bar-ipc-unstable-v1-protocol.c: dwl-bar-ipc-unstable-v1-protocol.h + wayland-scanner private-code < protocols/dwl-bar-ipc-unstable-v1.xml > dwl-bar-ipc-unstable-v1-protocol.c + +xdg-shell-client-protocol.h: + wayland-scanner client-header < /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml > xdg-shell-client-protocol.h + +xdg-shell-client-protocol.c: xdg-shell-client-protocol.h + wayland-scanner private-code < /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml > xdg-shell-client-protocol.c + +xdg-output-unstable-v1-client-protocol.h: + wayland-scanner client-header < /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml > xdg-output-unstable-v1-client-protocol.h + +xdg-output-unstable-v1-client-protocol.c: xdg-output-unstable-v1-client-protocol.h + wayland-scanner private-code < /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml > xdg-output-unstable-v1-client-protocol.c + +wlr-layer-shell-unstable.c: wlr-layer-shell-unstable.h + wayland-scanner private-code < protocols/wlr-layer-shell-unstable.xml > wlr-layer-shell-unstable.c + +wlr-layer-shell-unstable.h: + wayland-scanner client-header < protocols/wlr-layer-shell-unstable.xml > wlr-layer-shell-unstable.h + +.c.o: + gcc -c $< ${CFLAGS} + +${OBJ}: ${PROTOCOLS} config.h + +dbar: ${OBJ} ${SRC} + gcc ${OBJ} -o dbar ${LIBS} + +run: dbar + ./dbar + +clean: + rm *.o dbar ${PROTOCOLS} ${PROTOCOLS:.c=.h} -- cgit v1.2.3-70-g09d2