summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/bugcrt/Makefile.inc
blob: 82bf2374757f2d74de012ff53ab9dc7fb38f18de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#	$OpenBSD: Makefile.inc,v 1.5 2006/05/16 22:51:30 miod Exp $

BUG_CRT_DIR=${S}/arch/mvme88k/stand/bugcrt

BUGCRT_DIR!= cd ${BUG_CRT_DIR}; \
     printf "xxx:\n\techo \$${.OBJDIR}\n" | ${MAKE} -r -s -f - xxx

STAGE1=${BUGCRT_DIR}/stage1crt.o
STAGE2=${BUGCRT_DIR}/stage2crt.o
SINGLE=${BUGCRT_DIR}/singlecrt.o

$(STAGE1):	.NOTMAIN __always_make_bugcrt
	@echo making sure stage1crt.o is up to date...
	@(cd ${BUG_CRT_DIR}; ${MAKE} stage1crt.o)

$(STAGE2):	.NOTMAIN __always_make_bugcrt
	@echo making sure stage2crt.o is up to date...
	@(cd ${BUG_CRT_DIR}; ${MAKE} stage2crt.o)

$(SINGLE):	.NOTMAIN __always_make_bugcrt
	@echo making sure singlecrt.o is up to date...
	@(cd ${BUG_CRT_DIR}; ${MAKE} singlecrt.o)

__always_make_bugcrt:	.NOTMAIN