Home | History | Annotate | Line # | Download | only in libsupc++
Makefile revision 1.5.2.1
      1 #	$NetBSD: Makefile,v 1.5.2.1 2018/11/26 01:52:02 pgoyette 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 .if ${HAVE_LIBGCC_EH} == "no"
     31 G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
     32 .endif
     33 
     34 .if ${MKGCC} != "no"
     35 .if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
     36 BUILDSYMLINKS+=        ${G_CONFIGLINKS}
     37 .for _src _dst in ${G_CONFIGLINKS}
     38 DPSRCS+=       ${_dst}
     39 .endfor
     40 .endif
     41 .endif
     42 
     43 .include <bsd.lib.mk>
     44 
     45 .PATH:	${DIST}/libstdc++-v3/src \
     46 	${DIST}/libstdc++-v3/libsupc++ \
     47 	${DIST}/libiberty \
     48 	${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}
     49 
     50 ${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk
     51 .else
     52 .include <bsd.prog.mk> # do nothing
     53 .endif
     54