summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/bugcrt/Makefile.inc
blob: 34c7287512bf71595cdee99b3049afdaa14966fc (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.6 2008/04/02 21:53:17 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_CRT=${BUGCRT_DIR}/stage1crt.o
STAGE2_CRT=${BUGCRT_DIR}/stage2crt.o
NETBOOT_CRT=${BUGCRT_DIR}/netcrt.o

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

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

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

__always_make_bugcrt:	.NOTMAIN