ledit

Text editor (WIP)
git clone git://lumidify.org/ledit.git (fast, but not encrypted)
git clone https://lumidify.org/git/ledit.git (encrypted, but very slow)
git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/ledit.git (over tor)
Log | Files | Refs | README | LICENSE

commit 2b52184a8cc9dee0aca3367e584c601e107138ce
parent 3986381995275eb8d8ab0e402329ab5863097c2b
Author: lumidify <nobody@lumidify.org>
Date:   Wed, 22 Jul 2026 20:36:15 +0200

Rename DEBUG to DEV in Makefile to fix compilation on OpenBSD

Diffstat:
MMakefile | 15++++++++-------
MREADME | 6++++--
2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -11,7 +11,7 @@ MAN1 = ${BIN:=.1} MAN5 = leditrc.5 MISCFILES = Makefile README LICENSE IDEAS NOTES TODO -DEBUG=0 +DEV=0 TEST=0 SANITIZE=0 ENABLE_UTF8PROC=1 @@ -68,19 +68,20 @@ CONFIGHDR = \ theme_config.h \ keys_config.h -EXTRA_CFLAGS_DEBUG0 = ${CFLAGS} -EXTRA_LDFLAGS_DEBUG0 = ${LDFLAGS} -EXTRA_CFLAGS_DEBUG1 = -DLEDIT_DEBUG -g -EXTRA_FLAGS_SANITIZE1 = -fsanitize=address +EXTRA_CFLAGS_DEV0 = +EXTRA_CFLAGS_DEV1 = -DLEDIT_DEBUG -g +EXTRA_FLAGS_SANITIZE0 = +EXTRA_FLAGS_SANITIZE1 = -fsanitize=address,undefined EXTRA_CFLAGS_UTF8PROC0 = -DENABLE_UTF8PROC=0 EXTRA_CFLAGS_UTF8PROC1 = `pkg-config --cflags libutf8proc` -DENABLE_UTF8PROC=1 +EXTRA_LDFLAGS_UTF8PROC0 = EXTRA_LDFLAGS_UTF8PROC1 = `pkg-config --libs libutf8proc` # Xcursor isn't actually needed right now since I'm not using the drag 'n drop functionality # of ctrlsel yet, but since it's moderately likely that I will use that in the future, I # decided to just leave it in. -CFLAGS_LEDIT = -DTEST=${TEST} ${EXTRA_FLAGS_SANITIZE${SANITIZE}} ${EXTRA_CFLAGS_DEBUG${DEBUG}} ${EXTRA_CFLAGS_UTF8PROC${ENABLE_UTF8PROC}} -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L -std=c99 `pkg-config --cflags x11 xkbfile pangoxft xext xcursor` -LDFLAGS_LEDIT = ${EXTRA_FLAGS_SANITIZE${SANITIZE}} ${EXTRA_LDFLAGS_DEBUG${DEBUG}} ${EXTRA_LDFLAGS_UTF8PROC${ENABLE_UTF8PROC}} `pkg-config --libs x11 xkbfile pangoxft xext xcursor` -lm +CFLAGS_LEDIT = ${CFLAGS} -DTEST=${TEST} ${EXTRA_FLAGS_SANITIZE${SANITIZE}} ${EXTRA_CFLAGS_DEV${DEV}} ${EXTRA_CFLAGS_UTF8PROC${ENABLE_UTF8PROC}} -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L -std=c99 `pkg-config --cflags x11 xkbfile pangoxft xext xcursor` +LDFLAGS_LEDIT = ${LDFLAGS} ${EXTRA_FLAGS_SANITIZE${SANITIZE}} ${EXTRA_LDFLAGS_UTF8PROC${ENABLE_UTF8PROC}} `pkg-config --libs x11 xkbfile pangoxft xext xcursor` -lm all: ${BIN} diff --git a/README b/README @@ -24,8 +24,10 @@ libpango1.0-dev, libx11-dev, libxkbfile-dev libxcursor-dev, libutf8proc-dev Installation: Simply run 'make' and 'make install' -To compile with debugging symbols and some debug output, run 'make DEBUG=1' -To compile with fsanitize=address, run 'make SANITIZE=1' +To compile with debugging symbols and some debug output, run 'make DEV=1' +To compile with -fsanitize=address,undefined, run 'make SANITIZE=1' +To disable utf8proc support, run 'make ENABLE_UTF8PROC=0'. Currently, +utf8proc is only required for utf8-aware uppercase and lowercase functions. A sample configuration file can be found in leditrc.example. Copy this to ~/.leditrc in order to use it.