1 # $NetBSD: Makefile.gthr,v 1.3 2025/09/07 04:11:47 mrg Exp $ 2 3 # makefile fragment to setup files selected by configure 4 5 .if ${MKGCC} != "no" 6 7 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/} 8 LIBGCC_DIST=${DIST}/libgcc 9 10 . include "${DIST}/../lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}/gthr-defs.mk" 11 12 .if !empty(G_enable_execute_stack) 13 CONFIG_LINKS+= \ 14 ${G_enable_execute_stack} enable-execute-stack.c 15 .endif 16 17 .if !empty(G_unwind_header) 18 CONFIG_LINKS+= \ 19 ${G_unwind_header} unwind.h 20 .endif 21 22 .if !empty(G_md_unwind_header) 23 CONFIG_LINKS+= \ 24 ${G_md_unwind_header} md-unwind-support.h 25 .endif 26 27 .if !empty(G_sfp_machine_header) 28 CONFIG_LINKS+= \ 29 ${G_sfp_machine_header} sfp-machine.h 30 .endif 31 32 # Demand this one exists. 33 CONFIG_LINKS+= \ 34 ${G_thread_header} gthr-default.h 35 36 BUILDSYMLINKS+= ${CONFIG_LINKS} 37 . for _src _dst in ${CONFIG_LINKS} 38 DPSRCS+= ${_dst} 39 . endfor 40 41 .PATH: ${LIBGCC_DIST} ${LIBGCC_DIST}/config 42 43 .endif 44