#
# $FreeBSD: src/Makefile.inc1,v 1.141.2.62 2003/04/06 19:54:00 dwmalone Exp $
-# $DragonFly: src/Makefile.inc1,v 1.77 2005/08/28 07:06:42 dillon Exp $
+# $DragonFly: src/Makefile.inc1,v 1.78 2005/09/05 15:36:34 corecode Exp $
#
# Make command line options:
# -DMAKE_KERBEROS5 to build Kerberos5
_gcc34_cross= gnu/usr.bin/cc34
_gcc34_tools= gnu/usr.bin/cc34/cc_prep gnu/usr.bin/cc34/cc_tools
+.if defined(WANT_GCC40)
+_gcc40_cross= gnu/usr.bin/cc40
+_gcc40_tools= gnu/usr.bin/cc40/cc_prep gnu/usr.bin/cc40/cc_tools
+.endif
_binutils= gnu/usr.bin/binutils215
.if !defined(NO_FORTRAN)
.endif
build-tools:
-.for _tool in ${_gcc34_tools} ${_fortran} ${_libkrb5} ${_share} ${_sysinstall}
+.for _tool in ${_gcc34_tools} ${_gcc40_tools} ${_fortran} ${_libkrb5} ${_share}
${ECHODIR} "===> ${_tool} (build-tools)"; \
cd ${.CURDIR}/${_tool}; \
${MAKE} DIRPRFX=${_tool}/ obj; \
cross-tools:
.for _tool in ${_btxld} ${_binutils} \
usr.bin/objformat usr.sbin/crunch/crunchide \
- ${_gcc34_cross}
+ ${_gcc34_cross} ${_gcc40_cross}
${ECHODIR} "===> ${_tool} (cross-tools)"; \
cd ${.CURDIR}/${_tool}; \
${MAKE} DIRPRFX=${_tool}/ obj; \
libraries:
cd ${.CURDIR}; \
HOST_CCVER=${HOST_CCVER} CCVER=gcc34 \
- ${MAKE} -f Makefile.inc1 _startup_libs34; \
+ ${MAKE} -f Makefile.inc1 _startup_libs34;
+.if defined(WANT_GCC40)
+ cd ${.CURDIR}; \
+ HOST_CCVER=${HOST_CCVER} CCVER=gcc40 \
+ ${MAKE} -f Makefile.inc1 _startup_libs40;
+.endif
+ cd ${.CURDIR}; \
${MAKE} -f Makefile.inc1 _startup_libs; \
${MAKE} -f Makefile.inc1 _prebuild_libs; \
${MAKE} -f Makefile.inc1 _generic_libs;
#
# gnu/lib/${CCVER}/libgcc and lib/csu must be built before all
# shared libraries for ELF. The target for _startup_libs34 is
-# specifically built using gcc34.
+# specifically built using gcc34. Same goes for _startup_libs40.
#
_startup_libs34= gnu/lib/gcc34/libgcc
+_startup_libs40= gnu/lib/gcc40/libgcc
_startup_libs= lib/csu/${MACHINE_ARCH}
_startup_libs+= lib/csu/common lib/libc lib/libc_rtld
_generic_libs+= usr.bin/lex/lib
-.for _lib in ${_startup_libs2} ${_startup_libs3} ${_startup_libs34} \
+.for _lib in ${_startup_libs34} ${_startup_libs40} \
${_startup_libs} ${_prebuild_libs} ${_generic_libs}
${_lib}__L: .PHONY
.if exists(${.CURDIR}/${_lib})
_startup_libs: ${_startup_libs:S/$/__L/}
_startup_libs34: ${_startup_libs34:S/$/__L/}
+_startup_libs40: ${_startup_libs40:S/$/__L/}
_prebuild_libs: ${_prebuild_libs:S/$/__L/}
_generic_libs: ${_generic_libs:S/$/__L/}
# races (e.g. generation of tconfig.h)
#
.ORDER: ${_startup_libs34:S/$/__L/}
+.ORDER: ${_startup_libs40:S/$/__L/}
.ORDER: ${_startup_libs:S/$/__L/}
.ORDER: ${_prebuild_libs:S/$/__L/}
.ORDER: ${_generic_libs:S/$/__L/}
# $FreeBSD: src/etc/defaults/make.conf,v 1.97.2.80 2003/02/15 16:34:56 trhodes Exp $
-# $DragonFly: src/etc/defaults/make.conf,v 1.13 2005/06/11 21:09:51 asmodai Exp $
+# $DragonFly: src/etc/defaults/make.conf,v 1.14 2005/09/05 15:36:34 corecode Exp $
#
# NOTE: Please would any committer updating this file also update the
# make.conf(5) manual page, if necessary, which is located in
# be set in /etc/make.conf and that gcc 3.4 not yet be used to build the boot
# blocks, boot loader, or the kernel.
#
-# CCVER?=gcc2 # (use GCC 2.95.x, default)
-# CCVER?=gcc34 # (use GCC 3.4, experimental)
+# CCVER?=gcc34 # (use GCC 3.4, default)
+# CCVER?=gcc40 # (use GCC 4.0, experimental, only available
+# # if WANT_GCC40 set)
+#
+#
+# Build gcc40 with world. This won't make gcc40 the default compiler
+#
+#WANT_GCC40=yes
#
#
# CFLAGS controls the compiler settings used when compiling C code.