Makefile revision 1.3
11.3Snathanw# $NetBSD: Makefile,v 1.3 2006/05/30 04:22:40 nathanw Exp $ 21.1Scl 31.1Scl.include <bsd.own.mk> 41.1Scl 51.2SnathanwMODULE= gdb6 61.1Scl 71.1SclFIND_ARGS= \! \( -type d -name sim -prune \) 81.1Scl 91.1SclCONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} --disable-nls \ 101.1Scl --program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-," 111.1Scl 121.1SclMAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q} 131.1Scl 141.1SclALL_TARGET= all-gdb 151.1SclINSTALL_TARGET= install-gdb 161.1Scl 171.1Scl.include "${.CURDIR}/../Makefile.gnuhost" 181.1Scl 191.2SnathanwCCADDFLAGS= -I${DESTDIR}/usr/include -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ 201.2Snathanw 211.2SnathanwNEWCONFIGDIR?= ${.CURDIR}/../.. 221.2SnathanwMKNATIVE?= ${.CURDIR}/mknative-gdb 231.2Snathanw 241.2Snathanwnative-gdb: .native/.configure_done 251.2Snathanw @echo 'Extracting GDB configury for a native toolchain.' 261.2Snathanw MAKE=${MAKE:Q} ${HOST_SH} ${MKNATIVE} gdb \ 271.2Snathanw ${.OBJDIR}/.native ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM} 281.2Snathanw 291.2Snathanw.native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile 301.3Snathanw mkdir ${.OBJDIR}/.native 2>/dev/null || true 311.2Snathanw PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ 321.3Snathanw (cd ${.OBJDIR}/.native && ${CONFIGURE_ENV:NC*:NLD*} \ 331.2Snathanw CC_FOR_BUILD=${HOST_CC:Q} \ 341.2Snathanw CC=${CC:Q}' '${CCADDFLAGS:Q} \ 351.2Snathanw CXX=${CXX:Q}' '${CCADDFLAGS:Q} \ 361.2Snathanw CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \ 371.2Snathanw CFLAGS= CPPFLAGS= CXXFLAGS= LDFLAGS= \ 381.2Snathanw MSGFMT=${TOOLDIR}/bin/${_TOOL_PREFIX}msgfmt \ 391.2Snathanw XGETTEXT=${TOOLDIR}/bin/${_TOOL_PREFIX}xgettext \ 401.2Snathanw LIBS=-lintl \ 411.2Snathanw ac_cv_prog_cc_cross=yes \ 421.2Snathanw ac_cv_func_strcoll_works=yes \ 431.2Snathanw ${HOST_SH} ${GNUHOSTDIST}/configure \ 441.2Snathanw --build=`${GNUHOSTDIST}/config.guess` \ 451.2Snathanw --host=${MACHINE_GNU_PLATFORM} \ 461.2Snathanw --target=${MACHINE_GNU_PLATFORM}) && \ 471.3Snathanw (cd ${.OBJDIR}/.native && ${MAKE} configure-host) && \ 481.3Snathanw (cd ${.OBJDIR}/.native/bfd && ${MAKE} bfd.h bfdver.h) && \ 491.3Snathanw (cd ${.OBJDIR}/.native/gdb && ${MAKE} init.c version.c) 501.2Snathanw @touch $@ 511.2Snathanw 521.2Snathanwclean: clean.native 531.2Snathanwclean.native: 541.2Snathanw -rm -r -f .native 55