No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / lib / libsupc++4 / Makefile
blob23bc23fc21ce882a357df352c220f8d6237370dc
1 # $NetBSD: Makefile,v 1.2 2006/11/09 20:07:15 christos Exp $
3 REQUIRETOOLS= yes
4 NOLINT= # defined
5 NOPIC= # defined
6 NOPROFILE= # defined
8 .include <bsd.own.mk>
10 LIB= supc++
12 .if exists(${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no"
13 .include "${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH}/defs.mk"
15 SHLIB_MAJOR= 1
16 SHLIB_MINOR= 0
18 .include "${.CURDIR}/../libsupc++4/Makefile.common"
20 SRCS= ${LIBSUPCXXSRCS} xmalloc.c
21 CXXFLAGS+= ${G_SECTION_FLAGS}
23 COPTS.cp-demangle.c = -Wno-stack-protector
25 .include <bsd.lib.mk>
27 ${SRCS}: unwind.h
28 unwind.h: ${G_UNWIND_H}
29 ${_MKTARGET_CREATE}
30 rm -f ${.TARGET}
31 ln -s ${G_UNWIND_H} ${.TARGET}
32 CLEANFILES+= unwind.h
34 .PATH: ${DIST}/libstdc++-v3/src \
35 ${DIST}/libstdc++-v3/libmath \
36 ${DIST}/libstdc++-v3/libsupc++ \
37 ${DIST}/libiberty \
38 ${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH}
40 ${OBJS}: ${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH}/defs.mk
41 .else
42 .include <bsd.prog.mk> # do nothing
43 .endif
45 .if (${OBJECT_FMT} == "a.out")
46 LDADD= ${DESTDIR}/usr/lib/c++rt0.o
47 DPADD= ${DESTDIR}/usr/lib/c++rt0.o
48 .endif