commit 0375feb614b91bd461a322acd259e217c45b690f from: Benjamin Stürz date: Fri Jul 05 15:49:21 2024 UTC add destruct-0.1 commit - 16107e2ec3ad181f8d1905b71edf72b65487ac34 commit + 0375feb614b91bd461a322acd259e217c45b690f blob - e1164a3ca8c929fc4bcd7264ad638b734d6dc10e blob + 2f0240d26bbf0ac729b0e65831b7205fe3eb7858 --- Makefile +++ Makefile @@ -44,7 +44,6 @@ install: linurv 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 @@ -17,13 +17,14 @@ GMP_VER = 6.3.0 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 @@ -34,8 +35,8 @@ clean: 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 @@ -76,6 +77,10 @@ src/oksh.tgz: 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 @@ -133,6 +138,11 @@ ${STAMPS}/oksh: src/oksh.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 @@ -262,3 +272,13 @@ ${TOP}/rootfs/bin/ksh: ${STAMPS}/oksh-build (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 $@