Home | History | Annotate | Line # | Download | only in mdsetimage
Makefile revision 1.1.1.2
      1  1.1.1.2  christos #	$NetBSD: Makefile,v 1.1.1.2 2016/10/26 17:03:45 christos Exp $
      2      1.1  christos 
      3  1.1.1.2  christos .include <bsd.init.mk>
      4  1.1.1.2  christos 
      5  1.1.1.2  christos MDSETIMAGE=${NETBSDSRCDIR}/usr.sbin/mdsetimage
      6  1.1.1.2  christos .PATH: ${MDSETIMAGE}
      7      1.1  christos 
      8      1.1  christos .if (defined(HOSTPROG) && \
      9      1.1  christos      (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN))) || \
     10      1.1  christos     ${MKBINUTILS} != "no"
     11      1.1  christos BFDSUBDIR=	lib
     12      1.1  christos 
     13      1.1  christos PROG=		mdsetimage
     14  1.1.1.2  christos SRCS=		mdsetimage.c bin_bfd.c
     15      1.1  christos MAN=		mdsetimage.8
     16      1.1  christos 
     17  1.1.1.2  christos CPPFLAGS+=	-I${DIST}/bfd -I${DIST}/binutils -I${DIST}/include -I${MDSETIMAGE}
     18      1.1  christos 
     19      1.1  christos .if !defined(HOSTPROG)
     20      1.1  christos PROGDPLIBS+=	bfd	${TOP}/${BFDSUBDIR}/libbfd
     21      1.1  christos PROGDPLIBS+=	iberty	${TOP}/${BFDSUBDIR}/libiberty
     22      1.1  christos .else
     23      1.1  christos DPADD+=		${BFDDIR}/libbfd.a
     24      1.1  christos LDADD+=		-L${BFDDIR} -lbfd
     25      1.1  christos DPADD+=		${IBERTYDIR}/libiberty.a
     26      1.1  christos LDADD+=		-L${IBERTYDIR} -liberty
     27      1.1  christos CPPFLAGS+=	-I${BFDDIR}
     28      1.1  christos .endif
     29      1.1  christos 
     30      1.1  christos .include <bsd.prog.mk>
     31      1.1  christos 
     32      1.1  christos .ifndef HOSTPROG
     33      1.1  christos .include	"${TOP}/${BFDSUBDIR}/libbfd/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
     34      1.1  christos 
     35      1.1  christos CPPFLAGS+=	-I${TOP}/${BFDSUBDIR}/libbfd/arch/${BINUTILS_MACHINE_ARCH} ${G_INCLUDES}
     36      1.1  christos LDADD+=		-lintl
     37      1.1  christos DPADD+=		${LIBINTL}
     38      1.1  christos DPADD+=		${LIBZ}
     39      1.1  christos .endif # HOSTPROG
     40      1.1  christos 
     41      1.1  christos LDADD+=		-lz
     42      1.1  christos # No DPADD because we don't know the format and we didn't build it.
     43      1.1  christos 
     44      1.1  christos .endif # MKBINUTILS != no
     45