summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/fpsp/Makefile.inc
blob: 6dc170ef1e6508c820532bef3ac32ff776cbe5cd (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
25
26
#	$OpenBSD: Makefile.inc,v 1.5 2001/08/22 18:10:20 miod Exp $
#	$NetBSD: Makefile.inc,v 1.5 1997/05/07 07:15:44 mycroft Exp $
#
#	NOTE: $S must correspond to the top of the `sys' tree

FPSPSRCDIR=	$S/arch/m68k/fpsp

FPSPOBJDIR!=	cd $(FPSPSRCDIR); \
	printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | $(MAKE) -s -f-

FPSPOBJ=	$(FPSPOBJDIR)/fpsp.o

FPSPMAKE= \
	cd ${FPSPSRCDIR} && MAKEOBJDIR=${FPSPOBJDIR} ${MAKE}

$(FPSPOBJ):		.NOTMAIN __always_make_fpsp
	@echo making sure the fpsp is up to date...
	@${FPSPMAKE}

clean::			.NOTMAIN __always_make_fpsp
	@echo cleaning the fpsp objects
	@${FPSPMAKE} clean

FPSP!=	printf "\#ifdef FPSP\n${FPSPOBJ}\n\#endif\n" | ${CPP} -P -undef ${CPPFLAGS:M-DFPSP}

__always_make_fpsp: .NOTMAIN