#| -*-Scheme-*-
-$Id: compile.scm,v 1.23 2007/06/09 02:37:54 cph Exp $
+$Id: compile.scm,v 1.24 2007/06/09 02:42:29 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(define (native-prepare)
(load-option 'SF)
- (with-working-directory-pathname "compiler"
- (lambda ()
- (load "compiler.so")
- (load "machines/i386/make")))
+ (let ((make-file (compiler-make-file)))
+ (with-working-directory-pathname "compiler"
+ (lambda ()
+ (load "compiler.so")
+ (load make-file))))
(compile-boot-dirs compile-dir)
(sf "microcode/utabmd"))
#| -*-Scheme-*-
-$Id: utilities.scm,v 1.5 2007/06/08 06:04:09 cph Exp $
+$Id: utilities.scm,v 1.6 2007/06/09 02:42:35 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(string=? bundle "sf"))
(cons "make" names))
((string=? bundle "compiler")
- (cons* (string-append
- (or (file-symbolic-link? "compiler/machine")
- (error "Missing compiler/machine link."))
- "/make")
+ (cons* (compiler-make-file)
"base/make"
names))
((string=? bundle "edwin")
names))
(else names)))
string<?))))
+
+(define (compiler-make-file)
+ (string-append
+ (or (file-symbolic-link? "compiler/machine")
+ (error "Missing compiler/machine link."))
+ "/make"))
\f
(define (write-header output)
(write-string "# This file automatically generated at " output)