Files
nulsl-libc/autogen.sh
T
huntedbytheirsandSisyphus 228ed097f0 Add autotools build system (static-only, C17)
configure.ac enforces C17 and Linux/x86_64, refuses in-tree configure; Makefile.am builds libc.a plus crt0.o; the driver Makefile dispatches out-of-tree builds into bin/release (-O2) and bin/debug (-O0 -g).

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
2026-08-30 04:09:45 -04:00

20 lines
613 B
Bash
Executable File

#!/bin/sh
# autogen.sh — regenerate all autotools machinery.
#
# Usage: ./autogen.sh (then: make release / make debug / make bench)
#
# Never run ./configure at the repository root — use the driver Makefile
# targets instead, which configure out-of-tree into bin/{release,debug}.
set -e
cd "$(dirname "$0")"
autoreconf -i -f -v
echo
echo "autotools machinery regenerated."
echo "next: make release (bin/release/, CFLAGS='-O2')"
echo " make debug (bin/debug/, CFLAGS='-O0 -g')"
echo " make bench (benchmarks against the release build)"
echo " make check (smoke tests)"