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