2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2013/08/22 16:03:31 matt Exp $
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2013-12-06 12:04:52 +01:00
|
|
|
.include <bsd.init.mk>
|
2012-06-06 15:06:52 +02:00
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.include "${.CURDIR}/../../arch/${GCC_MACHINE_ARCH}/defs.mk"
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
.cc: # disable .cc->NULL transform
|
|
|
|
|
|
|
|
DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist
|
|
|
|
CONF= ${DIST}/libstdc++-v3/config
|
|
|
|
|
|
|
|
INCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_thread_host_headers} ${G_host_headers_extra} ${G_host_headers}
|
|
|
|
INCS+= c++config.h
|
|
|
|
INCSDIR= /usr/include/g++/bits
|
|
|
|
|
|
|
|
CLEANFILES+= basic_file.h c++io.h c++locale.h
|
|
|
|
|
|
|
|
basic_file.h: ${CONF}/io/basic_file_stdio.h
|
|
|
|
cp $> ${.TARGET}
|
|
|
|
c++io.h: ${CONF}/io/c_io_stdio.h
|
|
|
|
cp $> ${.TARGET}
|
|
|
|
c++locale.h: ${CONF}/locale/generic/c_locale.h
|
|
|
|
cp $> ${.TARGET}
|
|
|
|
|
|
|
|
# List of places to find cpu files; maybe do this differently from
|
|
|
|
# mknative?
|
|
|
|
BITS_CPUDIR.sparc64=sparc
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
_DIR=${BITS_CPUDIR.${GCC_MACHINE_ARCH}}
|
2012-06-06 15:06:52 +02:00
|
|
|
.if ${_DIR} != ""
|
2013-12-06 12:04:52 +01:00
|
|
|
BITS_CPUDIR=${BITS_CPUDIR.${GCC_MACHINE_ARCH}}
|
2012-06-06 15:06:52 +02:00
|
|
|
.else
|
|
|
|
BITS_CPUDIR=${MACHINE_GNU_ARCH}
|
|
|
|
.endif
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \
|
|
|
|
${DIST}/libstdc++-v3/include/bits \
|
2012-06-06 15:06:52 +02:00
|
|
|
${DIST}/libstdc++-v3/include/c_std \
|
|
|
|
${DIST}/libstdc++-v3/include/precompiled \
|
|
|
|
${CONF}/os/bsd/netbsd \
|
|
|
|
${CONF}/os/generic \
|
|
|
|
${CONF}/io \
|
|
|
|
${CONF}/cpu/${BITS_CPUDIR} \
|
|
|
|
${CONF}/cpu/generic \
|
2013-12-06 12:04:52 +01:00
|
|
|
${CONF}/locale/generic
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
# Get default targets including <bsd.inc.mk>.
|
|
|
|
.include <bsd.prog.mk>
|