commit bea423d967f3d4643713fd863f11abbf637e0646 from: Brett Fisher date: Sat May 9 18:12:57 2026 UTC Initial import bxnotify project. commit - /dev/null commit + bea423d967f3d4643713fd863f11abbf637e0646 blob - /dev/null blob + 0b0ba30b6172eaba4730b9ad43e4f92816041951 (mode 644) --- /dev/null +++ Makefile @@ -0,0 +1,34 @@ +# Makefile for bxnotify +# +# A very basic X notification tool, a.k.a. Brett's X notify. +# See LICENSE.md and README.md for details. + +PREFIX ?= $(HOME)/.local +CC ?= cc +CFLAGS = -std=c99 -Wall -Wextra $(shell pkg-config --cflags x11) +# Enable debug output (uncomment to use): +# CFLAGS += -DDEBUG +LDFLAGS = $(shell pkg-config -libs x11) +LIBS = -lX11 + +bxnotify: bxnotify.o + $(CC) $(LDFLAGS) -o $@ bxnotify.o $(LIBS) + +config.h: + [ -f config.h ] || cp config.def.h config.h + +bxnotify.o: bxnotify.c config.h + $(CC) $(CFLAGS) -c -o $@ $< + +clean: + rm -f bxnotify bxnotify.o + +install: + install -d $(DESTDIR)$(PREFIX)/bin + install -m 755 bxnotify $(DESTDIR)$(PREFIX)/bin/bxnotify + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/bxnotify + +.PHONY: clean install uninstall + blob - /dev/null blob + 53f3edb79771597dfdb180d0192175e23cdbb224 (mode 644) --- /dev/null +++ bxnotify.c @@ -0,0 +1,8 @@ +/* + * bxnotify.c for bxnotify + * + * A very basic X notification tool, a.k.a Brett's X notify. + * See LICENSE.md and README.md for details. +*/ + + blob - /dev/null blob + 3187d44d924587b4fe2873077c8b2b39201050b1 (mode 644) --- /dev/null +++ config.def.h @@ -0,0 +1,8 @@ +/* + * config.def.h for bxnotify + * + * A very basix X notification tool, a.k.a. Brett's X notify. + * See LICENSE.md and README.md for details. + */ + +