Return to Makefile CVS log | Up to [cvs.NetBSD.org] / src / rescue |
File: [cvs.NetBSD.org] / src / rescue / Makefile (download)
Revision 1.1, Thu Aug 22 01:23:46 2002 UTC (21 years, 7 months ago) by lukem
Migrate rescue tools from distrib/rescue -> rescue. Purpose of tools: Infrastructure to build a set of "rescue" tools; a crunched-up version of all the statically linked binaries in /bin, /sbin and the few in /usr/bin. |
# $NetBSD: Makefile,v 1.1 2002/08/22 01:23:46 lukem Exp $ .include <bsd.own.mk> .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" WARNS= 1 DBG= -Os CRUNCHBIN= rescue CRUNCHENV= # empty - don't want SMALLPROG defined LISTS= ${.CURDIR}/list TARGETDIR= ${DESTDIR}/rescue PARSELISTENV+= TARGETDIR=${TARGETDIR:Q} .for f in bim edlabel fdisk ldconfig pdisk PROG_${f}!= cd ${NETBSDSRCDIR}/sbin/${f} && ${MAKE} -V PROG .if (${PROG_${f}} != "") LISTS+= ${.CURDIR}/list.${f} .endif .endfor .if (${OBJECT_FMT} == "ELF") PARSELISTENV+= LDD_CMD=ldd_elf .else PARSELISTENV+= LDD_CMD=ldd_aout .endif .include "${DISTRIBDIR}/common/Makefile.crunch" realall: ${CRUNCHBIN} install: ${CRUNCHBIN} ${PARSELIST} -v mode=install ${LISTS} | ${MAKE} -f - install .include <bsd.prog.mk>