morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 085e751b317bbb51f9d1b7ceeb98cade444dc99c
parent 67167b665a10d4efc104919089eae02a664c2146
Author: sin <sin@2f30.org>
Date:   Wed,  5 Mar 2014 14:11:11 +0000

Convert sinit to an inlined build

Diffstat:
Mpkgs/sinit | 21++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/pkgs/sinit b/pkgs/sinit @@ -1,9 +1,24 @@ git="git://git.2f30.org/sinit" build: crossmusl + set -x cd src/sinit - make clean - make -j$nprocs CC=$CC LDFLAGS="$LDFLAGS" - make PREFIX="$root" install + cp config.def.h config.h + for f in util/*.c; do + $CC -c $f -o "${f%%.c}.o" $CFLAGS + done + for f in util/*.o; do + ar -r -c util.a $f + done + ranlib util.a + for f in *.c; do + $CC -c $f $CFLAGS + done + for f in *.o; do + $CC -o "${f%.*}" $f util.a $LDFLAGS + done + for f in *.o; do + cp "${f%.*}" "$root/bin" + done cd "$root/bin" ln -sf sinit init