Home | History | Annotate | Line # | Download | only in libsupc++
Makefile revision 1.5.4.2
      1 #	$NetBSD: Makefile,v 1.5.4.2 2020/04/13 08:01:56 martin Exp $
      2 
      3 REQUIRETOOLS=	yes
      4 NOLINT=		# defined
      5 NOPIC=		# defined
      6 NOPROFILE=	# defined
      7 
      8 CWARNFLAGS.clang+=	-Wno-parentheses
      9 UNSUPPORTED_COMPILER.clang=	# defined
     10 
     11 .include <bsd.init.mk>
     12 
     13 GCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
     14 
     15 LIB=		supc++
     16 
     17 .if exists(${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no"
     18 .include "${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk"
     19 
     20 SHLIB_MAJOR=	2
     21 SHLIB_MINOR=	0
     22 
     23 .include "${.CURDIR}/../libsupc++/Makefile.common"
     24 
     25 SRCS=		${LIBSUPCXXSRCS} xmalloc.c
     26 CXXFLAGS+=	${G_SECTION_FLAGS}
     27 
     28 COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function
     29 
     30 .include "../Makefile.gthr"
     31 
     32 .include <bsd.lib.mk>
     33 
     34 .PATH:	${DIST}/libstdc++-v3/src \
     35 	${DIST}/libstdc++-v3/libsupc++ \
     36 	${DIST}/libiberty \
     37 	${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}
     38 
     39 ${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk
     40 .else
     41 .include <bsd.prog.mk> # do nothing
     42 .endif
     43