NetBSD/gnu/lib/libsupc++4/Makefile
2006-05-10 22:53:49 +00:00

47 lines
1.0 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2006/05/10 22:53:51 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
NOPIC= # defined
NOPROFILE= # defined
.include <bsd.own.mk>
LIB= supc++
.if exists(${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no"
.include "${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 0
SHLIB_MINOR= 0
.include "${.CURDIR}/../libsupc++4/Makefile.common"
SRCS= ${LIBSUPCXXSRCS} xmalloc.c
CXXFLAGS+= ${G_SECTION_FLAGS}
.include <bsd.lib.mk>
${SRCS}: unwind.h
unwind.h: ${G_UNWIND_H}
${_MKTARGET_CREATE}
rm -f ${.TARGET}
ln -s ${G_UNWIND_H} ${.TARGET}
CLEANFILES+= unwind.h
.PATH: ${DIST}/libstdc++-v3/src \
${DIST}/libstdc++-v3/libmath \
${DIST}/libstdc++-v3/libsupc++ \
${DIST}/libiberty \
${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH}
${OBJS}: ${.CURDIR}/../libstdc++-v3_4/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