1.include "../../Makefile.inc1"
2.include "../Makefile.gld"
3
4PROG_CXX=	incremental-dump
5OBJS=		incremental-dump.o
6COMMOBJS=	${GOLD_COMMON:S|^|${.OBJDIR:H}/gold-linker/|:.cc=.o}
7CFLAGS+=	-I${.CURDIR}/../../block2/libgold
8LDADD=		${STD_LDADD}
9NOMAN=
10
11# The <bsd.obj.mk> prevents searching for object files in other
12# directory's work area.  In order to avoid building the COMMONOBJS
13# twice, a custom target has to be applied, and the sources have to
14# defined as OBJS, not SRCS for this to work.
15
16incremental-dump: ${OBJS} ${COMMOBJS}
17	${CXX_LINK} ${CXXFLAGS} ${LDFLAGS} -o ${.TARGET} \
18		${OBJS} ${COMMOBJS} ${LDADD}
19
20.include <bsd.prog.mk>
21