commit 774853ef423f07126d959f0ab5a7f3d599f5a312 parent 085e751b317bbb51f9d1b7ceeb98cade444dc99c Author: sin <sin@2f30.org> Date: Wed, 5 Mar 2014 14:13:04 +0000 Convert smdev to an inlined build Diffstat:
M | pkgs/smdev | | | 21 | ++++++++++++++++++--- |
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/pkgs/smdev b/pkgs/smdev @@ -1,7 +1,22 @@ git="git://git.2f30.org/smdev" build: crossmusl + set -x cd src/smdev - make clean - make 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