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]>
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/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)"
|
||||
Reference in New Issue
Block a user