Makefile revision 298107
1# $FreeBSD: head/usr.bin/elfcopy/Makefile 295582 2016-02-12 21:15:31Z emaste $ 2 3.include <src.opts.mk> 4 5ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain 6ELFCOPYDIR= ${ELFTCDIR}/elfcopy 7 8.PATH: ${ELFCOPYDIR} 9 10.if ${MK_ELFCOPY_AS_OBJCOPY} != "no" 11PROG= objcopy 12objcopy.1: elfcopy.1 13 sed -e 's/\.Dt ELFCOPY 1/.Dt OBJCOPY 1/' \ 14 -e 's/\.Nm elfcopy/.Nm objcopy/' < ${.ALLSRC} > ${.TARGET} 15CLEANFILES+= objcopy.1 16.else 17PROG= elfcopy 18.endif 19 20SRCS= archive.c ascii.c binary.c main.c pe.c sections.c segments.c symbols.c 21 22WARNS?= 5 23 24LIBADD= archive elftc elf pe 25 26CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/libpe -I${ELFTCDIR}/common 27CFLAGS+=-DWITH_PE=1 28 29MAN= ${PROG}.1 strip.1 30 31LINKS= ${BINDIR}/${PROG} ${BINDIR}/strip 32 33.include <bsd.prog.mk> 34