bootstrap.sh (976B)
- #!/bin/sh
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- # Generated using ./bootstrap-regen.sh
- : ${CC:=cc}
- : ${AR:=ar}
- : ${YACC:=yacc}
- : ${CFLAGS:=-Os -Wall}
- set -ex
- $CC -std=c99 $CFLAGS -c -o lib/fs.o lib/fs.c
- $CC -std=c99 $CFLAGS -o cmd/cat cmd/cat.c lib/fs.o $LDFLAGS $LDSTATIC
- $CC -std=c99 $CFLAGS -o cmd/echo cmd/echo.c $LDFLAGS $LDSTATIC
- $CC -std=c99 $CFLAGS -c -o lib/err.o lib/err.c
- $CC -std=c99 $CFLAGS -o cmd/printf cmd/printf.c lib/err.o $LDFLAGS $LDSTATIC
- $CC -std=c99 $CFLAGS -c -o lib/consent.o lib/consent.c
- $CC -std=c99 $CFLAGS -o cmd/rm cmd/rm.c lib/consent.o $LDFLAGS $LDSTATIC
- $CC -std=c99 $CFLAGS -o cmd/test cmd/test.c $LDFLAGS $LDSTATIC
- $CC -std=c99 $CFLAGS -c -o lib/tr_str.o lib/tr_str.c
- $CC -std=c99 $CFLAGS -o cmd/tr cmd/tr.c lib/tr_str.o lib/err.o $LDFLAGS $LDSTATIC
- ./cmd/printf '
- Done, you should now be able to run PATH=cmd/:$PATH ./configure && make clean && make
- '