1a180222e0
because of strip maybe_stripped strip: maybe_stripped: File format not recognized *** Error code 1 in I/usr/src/gnu/usr.bin/binutils/strip
36 lines
791 B
Makefile
36 lines
791 B
Makefile
#
|
|
# $Id: Makefile,v 1.4 1998/06/03 18:01:04 peter Exp $
|
|
#
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
.PATH: ${SRCDIR}/binutils
|
|
|
|
PROG= strip
|
|
SRCS= objcopy.c is-strip.c
|
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
|
CFLAGS+= -I${SRCDIR}/binutils
|
|
LDADD+= -L${RELTOP}/libbinutils -lbinutils
|
|
LDADD+= -L${RELTOP}/libbfd -lbfd
|
|
LDADD+= -L${RELTOP}/libiberty -liberty
|
|
DPADD+= ${RELTOP}/libbinutils/libbinutils.a
|
|
DPADD+= ${RELTOP}/libbfd/libbfd.a
|
|
DPADD+= ${RELTOP}/libiberty/libiberty.a
|
|
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} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
maybe_stripped ${DESTDIR}${BINDIR}/strip
|
|
|
|
.include <bsd.prog.mk>
|