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