[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / usr.bin / strip

File: [local] / src / usr.bin / strip / Attic / Makefile (download)

Revision 1.4, Tue Feb 11 17:42:51 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +13 -3 lines

build hoststrip for install purposes; noted by tv@slack.iag.net, pr #88

#	$OpenBSD: Makefile,v 1.4 1997/02/11 17:42:51 deraadt Exp $

PROG=	strip
.if ${HOSTCC} != ${CC}
STRIP=./hoststrip

realinstall:: hoststrip

hoststrip: strip.c
	${HOSTCC} strip.c -o hoststrip
.else
STRIP=./strip
.endif

realinstall:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 600 strip \
	    ${DESTDIR}${BINDIR}
	${STRIP} ${DESTDIR}${BINDIR}/strip
	chmod ${BINMODE} ${DESTDIR}${BINDIR}/strip
	-if [ "${COPY}" = "" ]; then rm -f ${STRIP}; fi

.include <bsd.prog.mk>