xref: /dragonfly/gnu/lib/gcc47/libsupc++/Makefile (revision 6e5c5008)
1.include "../Makefile.inc"
2.include "Makefile.src"
3.PATH: ${GCCDIR}/libstdc++-v3/libsupc++
4.PATH: ${GCCDIR}/libgcc
5.PATH: ${GCCDIR}/libiberty
6
7LIB=	supc++
8
9CFLAGS+=	-DIN_GLIBCPP_V3 -DHAVE_CONFIG_H
10CXXFLAGS+=	-fno-implicit-templates
11CXXFLAGS+=	-fdiagnostics-show-location=once
12CXXFLAGS+=	-ffunction-sections -fdata-sections
13CXXFLAGS+=	-I${GCCDIR}/libgcc
14CXXFLAGS+=	-I${GCCDIR}/libstdc++-v3/libsupc++
15CXXFLAGS+=	-I${GCCDIR}/libstdc++-v3/include/c_std
16CXXFLAGS+=	-I.
17
18# SUPCXX comes from Makefile.src
19# libstdc++ includes must be installed first (make installincludes)
20# Almost all of the objects have already been built by libstdc++, reuse
21OBJS+=	${SUPCXX:S/^/..\/libstdc++\//:.cc=.o}
22
23# from libiberty
24SRCS=	cp-demangle.c
25
26# generated
27SRCS+=	unwind.h
28
29unwind.h: unwind-generic.h
30	cp ${.ALLSRC} ${.TARGET}
31
32CLEANFILES+=	unwind.h
33
34.include <bsd.lib.mk>
35