xref: /dragonfly/gnu/usr.bin/binutils227/Makefile.zhack (revision d81709900216999c9b2507b2faf8f4831419f262)
1.if defined(NO_CROSSTOOLS) && defined(BOOTSTRAPPING)
2
3SCRIPTS=  ${GENTOOLS}
4GENTOOLS= ar.sh as.sh elfedit.sh ld.bfd.sh ld.gold.sh \
5                    nm.sh ranlib.sh objcopy.sh strip.sh
6NOMAN=
7BINDIR?=  ${REALBINUTILS}
8
9REALBINUTILS=       /usr/libexec/binutils227/elf
10
11.for _tool in ${GENTOOLS}
12${_tool}:
13          echo "#!/bin/sh" > ${.TARGET}
14          echo "" >> ${.TARGET}
15          echo "exec ${REALBINUTILS}/${.TARGET:T:R}" '"$$@"' >> ${.TARGET}
16.endfor
17
18.if !defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/"
19.error "refusing to install wrappers to base"
20.endif
21
22CLEANFILES= ${GENTOOLS}
23
24.else
25# dummy
26.endif
27.include <bsd.prog.mk>
28