opnsense-src/gnu/usr.bin/binutils/strip/Makefile

33 lines
661 B
Makefile
Raw Normal View History

1999-08-27 19:37:10 -04:00
# $FreeBSD$
.include "../Makefile.inc0"
2002-03-20 18:05:19 -05:00
.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
2001-10-13 21:31:37 -04:00
PROG= strip
SRCS= objcopy.c is-strip.c
WARNS= 2
2001-10-13 21:31:37 -04:00
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
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}
CLEANFILES+= maybe_stripped
all: maybe_stripped
maybe_stripped: strip
cp strip maybe_stripped
.if defined(STRIP)
.if ${STRIP:M-s} != ""
-strip maybe_stripped
.endif
.endif
realinstall:
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
maybe_stripped ${DESTDIR}${BINDIR}/strip
.include <bsd.prog.mk>