1998-03-01 23:41:17 +00:00
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-01 23:41:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
|
|
|
|
.PATH: ${SRCDIR}/binutils
|
|
|
|
|
|
|
|
PROG= strip
|
|
|
|
SRCS= objcopy.c is-strip.c
|
1998-03-12 02:55:43 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
1998-03-01 23:41:17 +00:00
|
|
|
CFLAGS+= -I${SRCDIR}/binutils
|
|
|
|
LDADD+= -L${RELTOP}/libbinutils -lbinutils
|
|
|
|
LDADD+= -L${RELTOP}/libbfd -lbfd
|
|
|
|
LDADD+= -L${RELTOP}/libiberty -liberty
|
1998-06-03 18:01:04 +00:00
|
|
|
DPADD+= ${RELTOP}/libbinutils/libbinutils.a
|
|
|
|
DPADD+= ${RELTOP}/libbfd/libbfd.a
|
|
|
|
DPADD+= ${RELTOP}/libiberty/libiberty.a
|
1998-03-06 00:28:04 +00:00
|
|
|
CLEANFILES+= maybe_stripped
|
|
|
|
|
|
|
|
all: maybe_stripped
|
|
|
|
|
|
|
|
maybe_stripped: strip
|
|
|
|
cp strip maybe_stripped
|
|
|
|
.if defined(STRIP)
|
|
|
|
.if ${STRIP:M-s} != ""
|
1999-01-08 10:33:12 +00:00
|
|
|
-strip maybe_stripped
|
1998-03-06 00:28:04 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
realinstall:
|
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
|
|
maybe_stripped ${DESTDIR}${BINDIR}/strip
|
1998-03-01 23:41:17 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|