b5cd2489b2
* Rewrite src/tools Make logic to work like the rest of the tree wrt "dependall" and "install". The old "make build" hack is gone. * Remove the MKTOOLS logic. This was linked to the "make build" hack, and was only needed because TOOLDIR originally had no writable default. * Redo the GNU configure/make logic to make it fit reasonably in a BSD make wrapper. Use new ${.ALLTARGETS} variable to scan for targets in $(srcdir), and mark them with .MADE: to prevent rebuilding. * Only build cross tools in src/tools; remove some messy logic in src/usr.* and src/gnu/usr.* that would do target filename rewriting (improves consistency and readability). * Add the ability to build cross gdb at tool build time by setting MKCROSSGDB (default no) to "yes" in mk.conf. * Add src/tools/groff and set up paths to work with this cross groff.
36 lines
806 B
Makefile
36 lines
806 B
Makefile
# $NetBSD: Makefile,v 1.2 2001/11/12 23:16:19 tv Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if defined(USE_NEW_TOOLCHAIN)
|
|
TOP= ${.CURDIR}/../..
|
|
DIST= ${TOP}/dist/toolchain
|
|
|
|
PROG= dbsym
|
|
MAN= dbsym.8
|
|
|
|
CPPFLAGS+= -I${BFDDIR} -I${DIST}/bfd -I${DIST}/binutils -I${DIST}/include \
|
|
-DHAVE_CONFIG_H
|
|
|
|
DPADD+= ${BFDDIR}/libbfd.a
|
|
LDADD+= -L${BFDDIR} -lbfd
|
|
|
|
DPADD+= ${IBERTYDIR}/libiberty.a
|
|
LDADD+= -L${IBERTYDIR} -liberty
|
|
|
|
.ifndef HOSTPROG
|
|
.include "${TOP}/lib/libbfd/arch/${MACHINE_ARCH}/defs.mk"
|
|
|
|
BFDDIR!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
|
|
IBERTYDIR!= cd ${TOP}/lib/libiberty && ${PRINTOBJDIR}
|
|
|
|
CPPFLAGS+= -I${TOP}/lib/libbfd/arch/${MACHINE_ARCH} ${G_INCLUDES}
|
|
LDADD+= -lintl
|
|
DPADD+= ${LIBINTL}
|
|
.endif # HOSTPROG
|
|
.endif # USE_NEW_TOOLCHAIN
|
|
|
|
.ifndef HOSTPROG
|
|
.include <bsd.prog.mk>
|
|
.endif # HOSTPROG
|