summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/stand/libsa/Makefile.inc
blob: 5100e4ad20cdb9b4447700eac140b8c7c70e6971 (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.2 1997/01/17 08:33:07 downsj Exp $
#	$NetBSD: Makefile.inc,v 1.1 1995/08/04 07:55:50 thorpej Exp $

#	NOTE: $S must correspond to the top of the 'sys' tree

SA_DIR=	$S/arch/hp300/stand/libsa

.if exists($(SA_DIR)/${__objdir})
SA_LIBDIR=	$(SA_DIR)/${__objdir}
.else
SA_LIBDIR=	$(SA_DIR)
.endif

SA_LIB=	$(SA_LIBDIR)/libsa.a

$(SA_LIB):	.NOTMAIN __always_make_sa_lib
	@echo making sure the stand-alone library is up to date...
	@(cd $(SA_DIR) ; make)

clean::		.NOTMAIN __always_make_sa_lib
	@echo cleaning the stand-alone library objects
	@(cd $(SA_DIR) ; make clean)

__always_make_sa_lib: .NOTMAIN