freebsd-dev/usr.bin/strip/Makefile
Søren Schmidt 77dfb966d9 ELF preparation step 1:
Move our old a.out utils to /usr/libexec/aout.
Enable binutils and put the utils in /usr/libexec/elf
Enable objformat, a little helper program that calls the right
utils based on /etc/objformat and $OBJFORMAT.

This will enable the ELF generating tools.
Remember that this is only step one, the system is still compiled
and run in a.out format ONLY.

Problem left to solve: The BSD manpages wins over the GNU equivalents
as the are installed last. We need to distinguish between the manpages
somehow...
1998-05-25 17:34:42 +00:00

23 lines
424 B
Makefile

# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= strip
BINDIR= /usr/libexec/aout
MAN1= strip.1
CLEANFILES += maybe_stripped
all: maybe_stripped
maybe_stripped: strip
cp -p strip maybe_stripped
.if defined(STRIP)
.if ${STRIP:M-s} != ""
./strip maybe_stripped
.endif
.endif
install: maninstall
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
maybe_stripped ${DESTDIR}${BINDIR}/strip
.include <bsd.prog.mk>