diff options
author | ken <unknown> | 2001-07-23 22:33:53 +0000 |
---|---|---|
committer | ken <unknown> | 2001-07-23 22:33:53 +0000 |
commit | 27d13cb655147c28eeed0f06cac6fc40c5d778aa (patch) | |
tree | 62066f3a0c5bdfd2d173671f5c7e5dbbaf9feedf /mk/bootstrap.mk | |
parent | 5f6133521c3660f36add0890f0dc4174c5e5af68 (diff) | |
download | haskell-27d13cb655147c28eeed0f06cac6fc40c5d778aa.tar.gz |
[project @ 2001-07-23 22:33:52 by ken]
Added "--enable-hc-boot-unregisterised" option to configure,
for bootstrapping from unregisterised HC files.
Diffstat (limited to 'mk/bootstrap.mk')
-rw-r--r-- | mk/bootstrap.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mk/bootstrap.mk b/mk/bootstrap.mk index e712ed54e3..9b8a79a5af 100644 --- a/mk/bootstrap.mk +++ b/mk/bootstrap.mk @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: bootstrap.mk,v 1.11 2001/05/25 10:53:59 simonmar Exp $ +# $Id: bootstrap.mk,v 1.12 2001/07/23 22:33:53 ken Exp $ # # Makefile rules for booting from .hc files without a driver. # @@ -118,6 +118,17 @@ endif # ----------------------------------------------------------------------------- # suffix rules for building a .o from a .hc file. +ifeq "$(BootingFromUnregisterisedHc)" "YES" + +# without mangling + +%.o : %.hc + $(CC) -x c $< -o $@ -c -O $(HC_BOOT_CC_OPTS) -I. `echo $(patsubst -monly-%-regs, -DSTOLEN_X86_REGS=%, $(filter -monly-%-regs, $($*_HC_OPTS))) | sed 's/^$$/-DSTOLEN_X86_REGS=4/'` + +else + +# with mangling + %.raw_s : %.hc $(CC) -x c $< -o $@ -S -O $(HC_BOOT_CC_OPTS) -I. `echo $(patsubst -monly-%-regs, -DSTOLEN_X86_REGS=%, $(filter -monly-%-regs, $($*_HC_OPTS))) | sed 's/^$$/-DSTOLEN_X86_REGS=4/'` @@ -126,3 +137,5 @@ endif %.o : %.s $(CC) -c -o $@ $< + +endif |