Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.sbin/mdsetimage Add a Makefile for mdsetimage that t...
details: https://anonhg.NetBSD.org/src/rev/1249d0f4228f
branches: trunk
changeset: 516348:1249d0f4228f
user: simonb <simonb%NetBSD.org@localhost>
date: Mon Oct 22 03:23:00 2001 +0000
description:
Add a Makefile for mdsetimage that tries to do the new/old toolchain
dance to get to libbfd. Tested on new and old toolchain, makefile
messiness to be verified before being enabled.
diffstat:
gnu/usr.sbin/mdsetimage/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
diffs (46 lines):
diff -r 332df6cad2ff -r 1249d0f4228f gnu/usr.sbin/mdsetimage/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.sbin/mdsetimage/Makefile Mon Oct 22 03:23:00 2001 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2001/10/22 03:23:00 simonb Exp $
+
+PROG= mdsetimage
+MAN= mdsetimage.8
+
+# XXX in an ideal world...
+# LDADD+= -lbfd
+# DPADD+= ${LIBBFD}
+
+.ifdef USE_NEW_TOOLCHAIN
+.include <bsd.own.mk>
+TOP= ${.CURDIR}/../..
+DIST= ${TOP}/dist/toolchain
+
+.include "${TOP}/lib/libbfd/arch/${MACHINE_ARCH}/defs.mk"
+
+CPPFLAGS+= -I${TOP}/lib/libbfd/arch/${MACHINE_ARCH} \
+ -I${BFDOBJ} ${G_INCLUDES}
+
+BFDOBJ!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
+DPADD+= ${BFDOBJ}/libbfd_pic.a
+LDADD+= -L${BFDOBJ} -lbfd
+
+IBERTYOBJ!= cd ${TOP}/lib/libiberty && ${PRINTOBJDIR}
+LDADD+= -L${IBERTYOBJ} -liberty
+DPADD+= ${IBERTYOBJ}/libiberty.a
+
+LDADD+= -lintl
+DPADD+= ${LIBINTL}
+.else # !USE_NEW_TOOLCHAIN
+.include <bsd.own.mk>
+DIST= ${.CURDIR}/../../dist
+BFDOBJ!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
+
+CPPFLAGS+= -I${BFDOBJ} -I${DIST}/bfd -I${DIST}/binutils -I${DIST}/include \
+ -DHAVE_CONFIG_H
+
+DPADD+= ${BFDOBJ}/libbfd_pic.a
+LDADD+= -L${BFDOBJ} -lbfd
+.endif # !USE_NEW_TOOLCHAIN
+
+.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index