1999-08-27 19:37:10 -04:00
|
|
|
# $FreeBSD$
|
1998-03-01 18:41:17 -05:00
|
|
|
|
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
|
|
2002-03-20 18:05:19 -05:00
|
|
|
.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
|
1998-03-01 18:41:17 -05:00
|
|
|
|
2001-10-13 21:31:37 -04:00
|
|
|
PROG= strip
|
|
|
|
|
SRCS= objcopy.c is-strip.c
|
2002-03-13 00:14:31 -05:00
|
|
|
WARNS= 2
|
2001-10-13 21:31:37 -04:00
|
|
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
|
|
|
|
CFLAGS+= -I${SRCDIR}/binutils
|
2003-04-12 10:44:49 -04:00
|
|
|
DPADD= ${RELTOP}/libbinutils/libbinutils.a
|
|
|
|
|
DPADD+= ${RELTOP}/libbfd/libbfd.a
|
|
|
|
|
DPADD+= ${RELTOP}/libiberty/libiberty.a
|
2001-10-13 21:31:37 -04:00
|
|
|
LDADD= ${DPADD}
|
1998-03-05 19:28:04 -05:00
|
|
|
CLEANFILES+= maybe_stripped
|
|
|
|
|
|
|
|
|
|
all: maybe_stripped
|
|
|
|
|
|
|
|
|
|
maybe_stripped: strip
|
|
|
|
|
cp strip maybe_stripped
|
|
|
|
|
.if defined(STRIP)
|
|
|
|
|
.if ${STRIP:M-s} != ""
|
1999-01-08 05:33:12 -05:00
|
|
|
-strip maybe_stripped
|
1998-03-05 19:28:04 -05:00
|
|
|
.endif
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
realinstall:
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1998-03-05 19:28:04 -05:00
|
|
|
maybe_stripped ${DESTDIR}${BINDIR}/strip
|
1998-03-01 18:41:17 -05:00
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|