NetBSD/regress/lib/csu/initfini/Makefile

32 lines
539 B
Makefile

# $NetBSD: Makefile,v 1.5 2001/12/12 01:24:12 tv Exp $
NOMAN= # defined
.include <bsd.own.mk>
.if (${OBJECT_FMT} == "ELF")
.if exists(arch/${MACHINE_CPU}/initfini_asm.S)
PROG= initfini
SRCS= initfini.c initfini_asm.S
WARNS?= 1
CLEANFILES+= output
.PATH: ${.CURDIR}/arch/${MACHINE_CPU}
regress:
@./initfini > output
@if ! cmp -s ${.CURDIR}/expected output; then \
echo "FAILED"; \
else \
echo "PASSED"; \
fi
.else
regress:
@echo "FAILED -- asm stub not written for ${MACHINE_CPU}"
.endif
.endif
.include <bsd.prog.mk>