From b8965224321b4e547f9e9cac1e562c5a047807fe Mon Sep 17 00:00:00 2001 From: gordon Date: Fri, 11 Jul 2003 16:57:43 +0000 Subject: Turn rescue back on, conditional to NORESCUE. We seem to be split on using underscores or not, so I just randomly picked a style. I think I have the logic correct, but if someone wants to give it a once over that would be good. Tim submitted a patch to fix the cross-building issues which I tested with a tinderbox run for sparc64. Submitted by: Tim Kientzle --- rescue/rescue/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'rescue') diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index e039d5f..099b949 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -47,6 +47,8 @@ CRUNCH_BUILDOPTS+= -DRESCUE # Define compile-time RESCUE symbol when compiling components CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS=-DRESCUE +# An experiment that failed: try overriding bsd.lib.mk and bsd.prog.mk +# rather than incorporating rescue-specific logic into standard files. #MAKEFLAGS= -m ${.CURDIR} ${.MAKEFLAGS} # Hackery: 'librescue' exists merely as a tool for appropriately @@ -244,14 +246,20 @@ $(CONF): Makefile $(OUTPUTS): $(CONF) MAKEOBJDIRPREFIX=${CRUNCHOBJS} crunchgen -q -m $(OUTMK) -c $(OUTC) $(CONF) -# -m here forces make to treat the bsd.prog.mk and bsd.lib.mk in -# this directory as overrides for the standard shared ones. $(PROG): $(OUTPUTS) MAKEOBJDIRPREFIX=${CRUNCHOBJS} make -f $(OUTMK) objs: MAKEOBJDIRPREFIX=${CRUNCHOBJS} make -f $(OUTMK) objs +# Someone should replace the bin/csh and bin/sh build-tools with +# shell scripts so we can remove this nonsense. +build-tools: +.for _tool in bin/csh bin/sh + cd ${.CURDIR}/../../${_tool}; \ + MAKEOBJDIRPREFIX=${CRUNCHOBJS} make DIRPRFX=rescue/${_tool} build-tools +.endfor + # Use a separate build tree to hold files compiled for this crunchgen binary # Yes, this does seem to partly duplicate bsd.subdir.mk, but I can't # get that to cooperate with bsd.prog.mk. Besides, many of the standard -- cgit v1.1