aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukasz@arcofasiagroup.com>2026-08-20 23:16:01 +0200
committerLukasz Kasprzak <lukasz@arcofasiagroup.com>2026-08-20 23:16:01 +0200
commitc453d5c3ba41af61975a83ea553b41e410d88ae2 (patch)
tree7538f3d4f39cf574526d8a0cb2d7ff023ef3f55a /Makefile
parent2fe328e64067f77070de3ba51f5cff3643afc47f (diff)
downloadcolitur-x-c453d5c3ba41af61975a83ea553b41e410d88ae2.tar.gz
colitur-x-c453d5c3ba41af61975a83ea553b41e410d88ae2.zip
colitur-mu: an editable microui front-end, and its Xlib backend
Same data as colitur-x, but the invocation is editable: year, language, book-name form and numbering tradition are buttons that re-run colitur. No calendar logic is reimplemented; the status line shows the exact command that produced what is on screen. microui (MIT, rxi) is vendored rather than packaged -- a copied-in dependency cannot rot, which is the whole reason to prefer it over a toolkit here. mu_x11.c carries one bug worth recording: microui resets its scissor with an unclipped rect of 0x1000000, and XRectangle's w/h are unsigned short, so it truncated to 0 and turned 'clip nothing' into 'clip everything'. A panel drew its first screenful and the rest vanished.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c74426a..bf4fb21 100644
--- a/Makefile
+++ b/Makefile
@@ -3,3 +3,7 @@ LDLIBS = $(shell pkg-config --libs xft x11)
colitur-x: colitur-x.c config.h
$(CC) $(CFLAGS) -o $@ colitur-x.c $(LDLIBS)
clean:; rm -f colitur-x
+
+CFLAGS_MU = -std=c99 -Os -Wall -Wextra $(shell pkg-config --cflags xft x11)
+colitur-mu: colitur-mu.c mu_x11.c mu_x11.h vendor/microui.c vendor/microui.h config.h
+ $(CC) $(CFLAGS_MU) -o $@ colitur-mu.c mu_x11.c vendor/microui.c $(LDLIBS)