2012-11-22 00:30:01 +04:00
|
|
|
# $NetBSD: bsd.gcc.mk,v 1.7 2012/11/21 20:30:01 pooka Exp $
|
2003-06-01 00:33:15 +04:00
|
|
|
|
|
|
|
.if !defined(_BSD_GCC_MK_)
|
|
|
|
_BSD_GCC_MK_=1
|
|
|
|
|
|
|
|
.if defined(EXTERNAL_TOOLCHAIN)
|
|
|
|
_GCC_CRTBEGIN!= ${CC} --print-file-name=crtbegin.o
|
2012-11-22 00:30:01 +04:00
|
|
|
.ifndef _GCC_CRTBEGINS
|
2003-06-01 00:33:15 +04:00
|
|
|
_GCC_CRTBEGINS!= ${CC} --print-file-name=crtbeginS.o
|
2012-11-22 00:30:01 +04:00
|
|
|
.endif
|
2003-06-01 00:33:15 +04:00
|
|
|
_GCC_CRTEND!= ${CC} --print-file-name=crtend.o
|
2012-11-22 00:30:01 +04:00
|
|
|
.ifndef _GCC_CRTENDS
|
2003-06-01 00:33:15 +04:00
|
|
|
_GCC_CRTENDS!= ${CC} --print-file-name=crtendS.o
|
2012-11-22 00:30:01 +04:00
|
|
|
.endif
|
2012-07-19 23:42:45 +04:00
|
|
|
_GCC_CRTI!= ${CC} --print-file-name=crti.o
|
|
|
|
_GCC_CRTN!= ${CC} --print-file-name=crtn.o
|
2003-06-27 21:13:27 +04:00
|
|
|
_GCC_CRTDIR!= dirname ${_GCC_CRTBEGIN}
|
2003-06-01 00:33:15 +04:00
|
|
|
_GCC_LIBGCCDIR!= dirname `${CC} --print-libgcc-file-name`
|
|
|
|
.else
|
2008-10-25 23:11:28 +04:00
|
|
|
_GCC_CRTBEGIN?= ${DESTDIR}/usr/lib/crtbegin.o
|
|
|
|
_GCC_CRTBEGINS?= ${DESTDIR}/usr/lib/crtbeginS.o
|
|
|
|
_GCC_CRTEND?= ${DESTDIR}/usr/lib/crtend.o
|
|
|
|
_GCC_CRTENDS?= ${DESTDIR}/usr/lib/crtendS.o
|
2012-07-19 23:42:45 +04:00
|
|
|
_GCC_CRTI?= ${DESTDIR}/usr/lib/crti.o
|
|
|
|
_GCC_CRTN?= ${DESTDIR}/usr/lib/crtn.o
|
2008-10-25 23:11:28 +04:00
|
|
|
_GCC_CRTDIR?= ${DESTDIR}/usr/lib
|
|
|
|
_GCC_LIBGCCDIR?= ${DESTDIR}/usr/lib
|
2003-06-01 00:33:15 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif # ! defined(_BSD_GCC_MK_)
|