1 1.11 christos # $NetBSD: Makefile,v 1.11 2016/04/20 17:18:52 christos Exp $ 2 1.1 mrg 3 1.1 mrg REQUIRETOOLS= yes 4 1.1 mrg NOLINT= # defined 5 1.1 mrg NOPIC= # defined 6 1.1 mrg NOPROFILE= # defined 7 1.1 mrg 8 1.1 mrg CWARNFLAGS.clang+= -Wno-parentheses 9 1.4 joerg UNSUPPORTED_COMPILER.clang= # defined 10 1.1 mrg 11 1.10 mrg .include <bsd.init.mk> 12 1.1 mrg 13 1.5 matt GCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/} 14 1.5 matt 15 1.1 mrg LIB= supc++ 16 1.1 mrg 17 1.5 matt .if exists(${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no" 18 1.5 matt .include "${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk" 19 1.1 mrg 20 1.7 mrg SHLIB_MAJOR= 2 21 1.1 mrg SHLIB_MINOR= 0 22 1.1 mrg 23 1.2 mrg .include "${.CURDIR}/../libsupc++/Makefile.common" 24 1.1 mrg 25 1.1 mrg SRCS= ${LIBSUPCXXSRCS} xmalloc.c 26 1.1 mrg CXXFLAGS+= ${G_SECTION_FLAGS} 27 1.1 mrg 28 1.11 christos COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function 29 1.1 mrg 30 1.8 joerg .if ${HAVE_LIBGCC_EH} == "no" 31 1.8 joerg G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,} 32 1.8 joerg .endif 33 1.8 joerg 34 1.7 mrg .if ${MKGCC} != "no" 35 1.7 mrg .if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS) 36 1.7 mrg BUILDSYMLINKS+= ${G_CONFIGLINKS} 37 1.7 mrg .for _src _dst in ${G_CONFIGLINKS} 38 1.7 mrg DPSRCS+= ${_dst} 39 1.7 mrg .endfor 40 1.7 mrg .endif 41 1.7 mrg .endif 42 1.7 mrg 43 1.1 mrg .include <bsd.lib.mk> 44 1.1 mrg 45 1.1 mrg .PATH: ${DIST}/libstdc++-v3/src \ 46 1.1 mrg ${DIST}/libstdc++-v3/libsupc++ \ 47 1.1 mrg ${DIST}/libiberty \ 48 1.5 matt ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH} 49 1.1 mrg 50 1.5 matt ${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk 51 1.1 mrg .else 52 1.1 mrg .include <bsd.prog.mk> # do nothing 53 1.1 mrg .endif 54