logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

bootstrap.sh (976B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. # Generated using ./bootstrap-regen.sh
  5. : ${CC:=cc}
  6. : ${AR:=ar}
  7. : ${YACC:=yacc}
  8. : ${CFLAGS:=-Os -Wall}
  9. set -ex
  10. $CC -std=c99 $CFLAGS -c -o lib/fs.o lib/fs.c
  11. $CC -std=c99 $CFLAGS -o cmd/cat cmd/cat.c lib/fs.o $LDFLAGS $LDSTATIC
  12. $CC -std=c99 $CFLAGS -o cmd/echo cmd/echo.c $LDFLAGS $LDSTATIC
  13. $CC -std=c99 $CFLAGS -c -o lib/err.o lib/err.c
  14. $CC -std=c99 $CFLAGS -o cmd/printf cmd/printf.c lib/err.o $LDFLAGS $LDSTATIC
  15. $CC -std=c99 $CFLAGS -c -o lib/consent.o lib/consent.c
  16. $CC -std=c99 $CFLAGS -o cmd/rm cmd/rm.c lib/consent.o $LDFLAGS $LDSTATIC
  17. $CC -std=c99 $CFLAGS -o cmd/test cmd/test.c $LDFLAGS $LDSTATIC
  18. $CC -std=c99 $CFLAGS -c -o lib/tr_str.o lib/tr_str.c
  19. $CC -std=c99 $CFLAGS -o cmd/tr cmd/tr.c lib/tr_str.o lib/err.o $LDFLAGS $LDSTATIC
  20. ./cmd/printf '
  21. Done, you should now be able to run PATH=cmd/:$PATH ./configure && make clean && make
  22. '