1 1.2 matt # $NetBSD: Makefile.check_stack,v 1.2 2013/12/11 17:31:55 matt Exp $ 2 1.1 joerg 3 1.1 joerg .include <bsd.own.mk> 4 1.1 joerg 5 1.2 matt .if exists(${.PARSEDIR}/arch/${MACHINE_ARCH}) 6 1.1 joerg CSU_ARCHDIR= ${.PARSEDIR}/arch/${MACHINE_ARCH} 7 1.1 joerg .PATH: ${CSU_ARCHDIR} 8 1.2 matt .elif exists(${.PARSEDIR}/arch/${MACHINE_CPU}) 9 1.2 matt CSU_ARCHDIR= ${.PARSEDIR}/arch/${MACHINE_CPU} 10 1.2 matt .PATH: ${CSU_ARCHDIR} 11 1.2 matt .endif 12 1.1 joerg .if exists(${CSU_ARCHDIR}/h_initfini_align.S) 13 1.1 joerg SRCS_CHECK_STACK= h_initfini_align.S 14 1.1 joerg CPPFLAGS_CHECK_STACK+= -DCHECK_STACK_ALIGNMENT 15 1.1 joerg .endif 16