# $NetBSD: Makefile.gthr,v 1.3 2019/01/22 23:55:54 mrg Exp $ # makefile fragment to setup files selected by configure .if ${MKGCC} != "no" LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/} LIBGCC_DIST=${DIST}/libgcc . include "${DIST}/../lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}/gthr-defs.mk" .if !empty(G_enable_execute_stack) CONFIG_LINKS+= \ ${G_enable_execute_stack} enable-execute-stack.c .endif .if !empty(G_unwind_header) CONFIG_LINKS+= \ ${G_unwind_header} unwind.h .endif .if !empty(G_md_unwind_header) CONFIG_LINKS+= \ ${G_md_unwind_header} md-unwind-support.h .endif .if !empty(G_sfp_machine_header) CONFIG_LINKS+= \ ${G_sfp_machine_header} sfp-machine.h .endif # Demand this one exists. CONFIG_LINKS+= \ ${G_thread_header} gthr-default.h BUILDSYMLINKS+= ${CONFIG_LINKS} . for _src _dst in ${CONFIG_LINKS} DPSRCS+= ${_dst} . endfor .PATH: ${LIBGCC_DIST} ${LIBGCC_DIST}/config .endif