6 ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
7 ELFCOPYDIR= ${ELFTCDIR}/elfcopy
13 sed -e 's/\.Dt ELFCOPY 1/.Dt OBJCOPY 1/' \
14 -e '/\.Nm elfcopy ,/d' < ${.ALLSRC} > ${.TARGET}
15 CLEANFILES+= objcopy.1
17 SRCS= archive.c ascii.c binary.c main.c pe.c sections.c segments.c symbols.c
21 LIBADD= archive elftc elf pe
23 CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/libpe -I${ELFTCDIR}/common
26 MAN= ${PROG}.1 strip.1
28 LINKS= ${BINDIR}/${PROG} ${BINDIR}/strip
30 # This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile
31 # We need to link against the correct version of these files. One
32 # solution is to include SRCTOP/sys in the include path. This causes
33 # problems when a header file in sys depends on a file in another
34 # part of the tree, e.g. a machine dependent header.
36 SRCS+= sys/elf_common.h
39 sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
40 mkdir -p ${.OBJDIR}/sys
41 ln -sf ${.ALLSRC} ${.TARGET}
43 .include <bsd.prog.mk>