summaryrefslogtreecommitdiff
path: root/usr.bin/strip/Makefile
blob: cea2c117ea61637bde9bc245fdaa3889335ac7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#	$OpenBSD: Makefile,v 1.5 1997/02/13 00:12:07 deraadt Exp $

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

realinstall: hoststrip

hoststrip: strip.c
	${HOSTCC} ${.CURDIR}/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>