commit - 16107e2ec3ad181f8d1905b71edf72b65487ac34
commit + 0375feb614b91bd461a322acd259e217c45b690f
blob - e1164a3ca8c929fc4bcd7264ad638b734d6dc10e
blob + 2f0240d26bbf0ac729b0e65831b7205fe3eb7858
--- Makefile
+++ Makefile
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f linurv ${DESTDIR}${PREFIX}/bin/
-
linurv: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
blob - 2cf3cf4f4ddc2d4061ed91a0d8113cdd7e1346cd
blob + 226262e57dac3a0ae3118c23d381c0e7bc3f3adb
--- tools/Makefile
+++ tools/Makefile
MPFR_VER = 4.2.1
MPC_VER = 1.3.1
OKSH_VER = 7.5
+DESTRUCT_VER = 0.1
GMAKE = $U/gmake
SUDO =
all: build
-build: ${STAMPS}/libgcc-install
+build: ${STAMPS}/libgcc-install ${STAMPS}/destruct-install
distclean: clean
rm -rf src
test:
${PREFIX}/bin/${TARGET}-gcc -o /dev/null $U/test.c
-download: src/binutils.tgz src/gcc.tgz src/musl.tgz src/linux.tgz src/gmp.tgz src/mpfr.tgz src/mpc.tgz
-extract: ${STAMPS}/binutils-extract ${STAMPS}/gcc-extract ${STAMPS}/musl-extract ${STAMPS}/linux-extract ${STAMPS}/gmp ${STAMPS}/mpfr ${STAMPS}/mpc
+download: src/binutils.tgz src/gcc.tgz src/musl.tgz src/linux.tgz src/gmp.tgz src/mpfr.tgz src/mpc.tgz src/destruct.tgz
+extract: ${STAMPS}/binutils-extract ${STAMPS}/gcc-extract ${STAMPS}/musl-extract ${STAMPS}/linux-extract ${STAMPS}/gmp ${STAMPS}/mpfr ${STAMPS}/mpc ${STAMPS}/destruct
headers: ${STAMPS}/linux-headers
install-headers: ${STAMPS}/linux-hdrinst
mkdir -p src
$U/download $@ https://github.com/ibara/oksh/releases/download/oksh-${OKSH_VER}/oksh-${OKSH_VER}.tar.gz
+src/destruct.tgz:
+ mkdir -p src
+ $U/download $@ https://got.stuerz.xyz/download/destruct-${DESTRUCT_VER}.tgz
+
# EXTRACT
${STAMPS}/binutils-extract: src/binutils.tgz
mv build/oksh-* build/oksh
touch $@
+${STAMPS}/destruct: src/destruct.tgz
+ mkdir -p ${STAMPS}
+ tar -C build -xzf src/destruct.tgz
+ mv build/destruct-* build/destruct
+ touch $@
# KERNEL HEADERS
(cd ${TOOLS}/build/oksh && ${MAKE} DESTDIR=${TOP}/rootfs install)
oksh: ${TOP}/rootfs/bin/ksh
+
+# DESTRUCT
+
+${STAMPS}/destruct-build: ${STAMPS}/destruct
+ (cd ${TOOLS}/build/destruct && ${MAKE})
+ touch $@
+
+${STAMPS}/destruct-install: ${STAMPS}/destruct-build
+ (cd ${TOOLS}/build/destruct && ${MAKE} PREFIX=${TOOLS} install)
+ touch $@