Lower some WARNS in binutils to silence amd64 warnings.
[dragonfly.git] / gnu / usr.bin / binutils217 / strip / Makefile
blobd113e45d4dd124a35279cf68e9fdbee109f70639
1 # $DragonFly: src/gnu/usr.bin/binutils217/strip/Makefile,v 1.1 2007/04/13 12:24:33 corecode Exp $
3 .include "../Makefile.inc0"
5 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
7 PROG= strip
8 SRCS= objcopy.c is-strip.c
9 WARNS= 1
10 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
11 CFLAGS+= -I${SRCDIR}/binutils
12 CFLAGS+= -I${SRCDIR}/bfd -I${.OBJDIR}/../libbfd
13 DPADD= ${RELTOP}/libbinutils/libbinutils.a
14 DPADD+= ${RELTOP}/libbfd/libbfd.a
15 DPADD+= ${RELTOP}/libiberty/libiberty.a
16 LDADD= ${DPADD}
17 CLEANFILES+= maybe_stripped
19 all: maybe_stripped
21 maybe_stripped: strip
22 cp strip maybe_stripped
23 .if defined(STRIP)
24 .if ${STRIP:M-s} != ""
25 -strip maybe_stripped
26 .endif
27 .endif
29 realinstall:
30 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
31 maybe_stripped ${DESTDIR}${BINDIR}/strip
33 .include <bsd.prog.mk>