kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

commit 0020b5f053b3a35f58311f7b21268d108ad774c4
parent a6426a10c2e6ee9f983cedd3ac1ff386a91d7430
Author: Ryan Sepassi <rsepassi@gmail.com>
Date:   Wed, 27 May 2026 11:57:18 -0700

build: create support/rt symlink alongside bin target

Adds a support/rt → rt symlink in BUILD_DIR whenever `bin` is built,
so the rt headers and libs are reachable at a stable relative path next
to the cfree binary (build/support/rt or build/release/support/rt).

Diffstat:
MMakefile | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -381,9 +381,13 @@ DIST_TARBALL = build/dist/cfree.tar.gz all: lib bin -lib: $(LIB_AR) +bin: $(BIN) $(BUILD_DIR)/support/rt + +$(BUILD_DIR)/support/rt: + @mkdir -p $(dir $@) + ln -sfn $(abspath rt) $@ -bin: $(BIN) +lib: $(LIB_AR) # Replace the archive (`ar rcs` only adds/updates), so removing a .c file # also removes its .o from the archive on the next build.