xref: /minix3/tests/lib/csu/Makefile.check_stack (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile.check_stack,v 1.2 2013/12/11 17:31:55 matt Exp $
211be35a1SLionel Sambuc
311be35a1SLionel Sambuc.include <bsd.own.mk>
411be35a1SLionel Sambuc
5*0a6a1f1dSLionel Sambuc.if exists(${.PARSEDIR}/arch/${MACHINE_ARCH})
611be35a1SLionel SambucCSU_ARCHDIR=	${.PARSEDIR}/arch/${MACHINE_ARCH}
711be35a1SLionel Sambuc.PATH: ${CSU_ARCHDIR}
8*0a6a1f1dSLionel Sambuc.elif exists(${.PARSEDIR}/arch/${MACHINE_CPU})
9*0a6a1f1dSLionel SambucCSU_ARCHDIR=	${.PARSEDIR}/arch/${MACHINE_CPU}
10*0a6a1f1dSLionel Sambuc.PATH: ${CSU_ARCHDIR}
11*0a6a1f1dSLionel Sambuc.endif
1211be35a1SLionel Sambuc.if exists(${CSU_ARCHDIR}/h_initfini_align.S)
1311be35a1SLionel SambucSRCS_CHECK_STACK=	h_initfini_align.S
1411be35a1SLionel SambucCPPFLAGS_CHECK_STACK+=	-DCHECK_STACK_ALIGNMENT
1511be35a1SLionel Sambuc.endif
16