projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3e027a
)
.raw_s and .s live in $(odir), not the source dir
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 10 May 2006 12:15:24 +0000
(12:15 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 10 May 2006 12:15:24 +0000
(12:15 +0000)
mk/suffix.mk
patch
|
blob
|
history
diff --git
a/mk/suffix.mk
b/mk/suffix.mk
index
10926ee
..
55637e3
100644
(file)
--- a/
mk/suffix.mk
+++ b/
mk/suffix.mk
@@
-134,10
+134,10
@@
else
$(odir_)%.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/'`
$(odir_)%.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/'`
-$(odir_)%.s : %.raw_s
+$(odir_)%.s : $(odir_)%.raw_s
$(MANGLER) $< $@ $(patsubst -monly-%-regs, %, $(filter -monly-%-regs, $($*_HC_OPTS)))
$(MANGLER) $< $@ $(patsubst -monly-%-regs, %, $(filter -monly-%-regs, $($*_HC_OPTS)))
-$(odir_)%.o : %.s
+$(odir_)%.o : $(odir_)%.s
$(CC) -c -o $@ $<
endif # not BootingFromUnregisterisedHc
$(CC) -c -o $@ $<
endif # not BootingFromUnregisterisedHc