Home | History | Annotate | Line # | Download | only in gdb
Makefile revision 1.7
      1  1.7      uwe #	$NetBSD: Makefile,v 1.7 2006/11/24 01:48:57 uwe Exp $
      2  1.1       cl 
      3  1.1       cl .include <bsd.own.mk>
      4  1.1       cl 
      5  1.2  nathanw MODULE=		gdb6
      6  1.1       cl 
      7  1.1       cl FIND_ARGS=	\! \( -type d -name sim -prune \)
      8  1.1       cl 
      9  1.1       cl CONFIGURE_ARGS=	--target=${MACHINE_GNU_PLATFORM} --disable-nls \
     10  1.1       cl 		--program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-,"
     11  1.1       cl 
     12  1.1       cl MAKE_ARGS=	MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q}
     13  1.1       cl 
     14  1.1       cl ALL_TARGET=	all-gdb
     15  1.1       cl INSTALL_TARGET=	install-gdb
     16  1.1       cl 
     17  1.1       cl .include "${.CURDIR}/../Makefile.gnuhost"
     18  1.1       cl 
     19  1.6      uwe CCADDFLAGS=	-isystem ${DESTDIR}/usr/include -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/
     20  1.2  nathanw 
     21  1.2  nathanw NEWCONFIGDIR?=	${.CURDIR}/../..
     22  1.2  nathanw MKNATIVE?=	${.CURDIR}/mknative-gdb
     23  1.2  nathanw 
     24  1.7      uwe # Some configure tests require running a test program, which is not
     25  1.7      uwe # possible when cross-building.  Provide configure with "cached"
     26  1.7      uwe # values in the environment.
     27  1.7      uwe MKNATIVE_CONFIGURE_PRESET= \
     28  1.7      uwe 	ac_cv_prog_cc_cross=yes \
     29  1.7      uwe 	ac_cv_func_fork_works=yes \
     30  1.7      uwe 	ac_cv_func_strcoll_works=yes \
     31  1.7      uwe 	bash_cv_func_ctype_nonascii=yes \
     32  1.7      uwe 	bash_cv_func_sigsetjmp=present \
     33  1.7      uwe 	bash_cv_func_strcoll_broken=no \
     34  1.7      uwe 	bash_cv_must_reinstall_sighandlers=no
     35  1.7      uwe 
     36  1.7      uwe 
     37  1.2  nathanw native-gdb: .native/.configure_done
     38  1.2  nathanw 	@echo 'Extracting GDB configury for a native toolchain.'
     39  1.2  nathanw 	MAKE=${MAKE:Q} ${HOST_SH} ${MKNATIVE} gdb \
     40  1.2  nathanw 		${.OBJDIR}/.native ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM}
     41  1.2  nathanw 
     42  1.2  nathanw .native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile
     43  1.3  nathanw 	mkdir ${.OBJDIR}/.native 2>/dev/null || true
     44  1.2  nathanw 	PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
     45  1.3  nathanw 		(cd ${.OBJDIR}/.native && ${CONFIGURE_ENV:NC*:NLD*} \
     46  1.2  nathanw 			CC_FOR_BUILD=${HOST_CC:Q} \
     47  1.2  nathanw 			CC=${CC:Q}' '${CCADDFLAGS:Q} \
     48  1.2  nathanw 			CXX=${CXX:Q}' '${CCADDFLAGS:Q} \
     49  1.6      uwe 			CPP=${CPP:Q}' '-isystem' '${DESTDIR}/usr/include \
     50  1.2  nathanw 			CFLAGS= CPPFLAGS= CXXFLAGS= LDFLAGS= \
     51  1.2  nathanw 			MSGFMT=${TOOLDIR}/bin/${_TOOL_PREFIX}msgfmt \
     52  1.2  nathanw 			XGETTEXT=${TOOLDIR}/bin/${_TOOL_PREFIX}xgettext \
     53  1.2  nathanw 			LIBS=-lintl \
     54  1.7      uwe 			${MKNATIVE_CONFIGURE_PRESET} \
     55  1.2  nathanw 			${HOST_SH} ${GNUHOSTDIST}/configure \
     56  1.4  nathanw 			--prefix=/usr \
     57  1.5    lukem 			--with-separate-debug-dir=/usr/libdata/debug \
     58  1.2  nathanw 			--build=`${GNUHOSTDIST}/config.guess` \
     59  1.2  nathanw 			--host=${MACHINE_GNU_PLATFORM} \
     60  1.2  nathanw 			--target=${MACHINE_GNU_PLATFORM}) && \
     61  1.7      uwe 		(cd ${.OBJDIR}/.native && \
     62  1.7      uwe 			/usr/bin/env ${MKNATIVE_CONFIGURE_PRESET} \
     63  1.7      uwe 				${MAKE} configure-host) && \
     64  1.3  nathanw 		(cd ${.OBJDIR}/.native/bfd && ${MAKE} bfd.h bfdver.h) && \
     65  1.3  nathanw 		(cd ${.OBJDIR}/.native/gdb && ${MAKE} init.c version.c)
     66  1.2  nathanw 	@touch $@
     67  1.2  nathanw 
     68  1.2  nathanw clean: clean.native
     69  1.2  nathanw clean.native:
     70  1.2  nathanw 	-rm -r -f .native
     71