40 lines
892 B
Makefile
40 lines
892 B
Makefile
# $NetBSD: Makefile,v 1.1 2003/07/26 14:55:15 mrg Exp $
|
|
|
|
REQUIRETOOLS= yes
|
|
NOLINT= # defined
|
|
NOPIC= # defined
|
|
NOPROFILE= # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= supc++
|
|
|
|
.if exists(${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no"
|
|
.include "${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH}/defs.mk"
|
|
|
|
SHLIB_MAJOR= 0
|
|
SHLIB_MINOR= 0
|
|
|
|
.include "${.CURDIR}/../libsupc++/Makefile.common"
|
|
|
|
SRCS= ${LIBSUPCXXSRCS} xmalloc.c
|
|
CXXFLAGS+= ${G_SECTION_FLAGS}
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.PATH: ${DIST}/libstdc++-v3/src \
|
|
${DIST}/libstdc++-v3/libmath \
|
|
${DIST}/libstdc++-v3/libsupc++ \
|
|
${DIST}/libiberty \
|
|
${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH}
|
|
|
|
${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH}/defs.mk
|
|
.else
|
|
.include <bsd.prog.mk> # do nothing
|
|
.endif
|
|
|
|
.if (${OBJECT_FMT} == "a.out")
|
|
LDADD= ${DESTDIR}/usr/lib/c++rt0.o
|
|
DPADD= ${DESTDIR}/usr/lib/c++rt0.o
|
|
.endif
|