From caf359e521041e7aa6290aa04225e974f73befd2 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 17 Apr 1997 20:05:46 +0000 Subject: Wed Apr 16 12:52:25 1997 Thomas Bushnell, n/BSG * Makefile.in (cross-lexxer.o lexxer.o): Add pump-priming dependency on cpu.h. Reported by Marcus G. Daniels (marcus@cathcart.sysc.pdx.edu). * configure.in: Fail if configure target is not for GNU os. * Makefile.in (./cross-mig): New rule. (mkinstalldirs): Add $(libexecdir). * configure.in: Recognize i686. Reported by Marcus G. Daniels (marcus@cathcart.sysc.pdx.edu). --- Makefile.in | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 8326d2d..9be046c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -275,7 +275,7 @@ CPPFLAGS += -nostdinc $(DEFINES) $(INCLUDES) MIGFLAGS += $(CPPFLAGS) -all: kernel cross-migcom +all: kernel cross-migcom cross-mig # @@ -307,7 +307,7 @@ $(installed-sysdep-headers-names): $(includedir)/%: $(sysdep)/include/% mkinstalldirs: mkdir -p $(bootdir) $(includedir) $(includedir)/device \ - $(includedir)/mach $(includedir)/mach/$(systype) + $(includedir)/mach $(includedir)/mach/$(systype) $(libexecdir) # @@ -532,4 +532,15 @@ else $< >$@.tmp && chmod +x $@.tmp && mv -f $@.tmp $@ endif +# Version of MiG to install +cross-mig: $(srcdir)/mig/mig.sh Makefile + sed -e 's,@MIGDIR@,$(libexecdir),g' \ + -e 's,@CPP@,${CC} -x c-header -E,g' \ + $< >$@.tmp && chmod +x $@.tmp && mv -f $@.tmp $@ + + +# The first time through, Make will try and build MiG to get +# dependencies, before it knows about the automatically generated +# files that MiG needs. So tell it about that file here. +cross-lexxer.o lexxer.o: cpu.h -- cgit v1.2.3