On Having Built Linux for a Small System


Explanation: Config/host-gcc/v2.95.3-2.mak

${EXTTEMP}/gcc-${VERSION}-htc/.configured:
	${MAKE} extract LIST="$(strip ${SOURCES})"
	( cd ${EXTTEMP}/gcc-${VERSION} || exit 1 ;\
		for PF in ../gcc*patch ; do patch -Np1 -i $${PF} ; done \
	) || exit 1
	(	mkdir -p ${EXTTEMP}/gcc-${VERSION}-htc || exit 1 ;\
		cd ${EXTTEMP}/gcc-${VERSION}-htc || exit 1 ;\
		CC=${NATIVE_GCC} \
			../${EXTPATH}/configure -v \
			  --prefix=${HTC_ROOT}/usr \
			  --host=${NATIVE_SPEC} \
			  --target=${NATIVE_SPEC} \
			  --with-local-prefix=${HTC_ROOT}/usr \
			  --enable-languages=c \
			  --disable-nls \
			  --enable-shared \
			  || exit 1 \
	) || exit 1
	touch ${EXTTEMP}/gcc-${VERSION}-htc/.configured

.PHONY: install-htc
install-htc: ${EXTTEMP}/gcc-${VERSION}-htc/.built
	(	cd ${EXTTEMP}/gcc-${VERSION}-htc || exit 1 ;\
		make install-gcc || exit 1 \
	) || exit 1