Commit 57c3ca26 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-05-09 09:55:41 by simonmar]

Use -hcsuf to avoid clobbering .hc files when building several ways,
and clean up the -osuf usage (put all the suffix-changing options in
one place).
parent bd6633a9
......@@ -37,12 +37,12 @@ ifneq "$(BootingFromHc)" "YES"
%.$(way_)o : %.hs
$(HC_PRE_OPTS)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HC) $(HC_OPTS) -c $< -o $@
$(HC_POST_OPTS)
%.$(way_)o : %.lhs
$(HC_PRE_OPTS)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HC) $(HC_OPTS) -c $< -o $@
$(HC_POST_OPTS)
%.$(way_)hc : %.lhs
......@@ -55,17 +55,17 @@ ifneq "$(BootingFromHc)" "YES"
%.$(way_)o : %.$(way_)hc
$(HC_PRE_OPTS)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HC) $(HC_OPTS) -c $< -o $@
$(HC_POST_OPTS)
%.$(way_)o : %.hc
$(HC_PRE_OPTS)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HC) $(HC_OPTS) -c $< -o $@
$(HC_POST_OPTS)
%.$(way_)s : %.$(way_)hc
$(HC_PRE_OPTS)
$(HC) $(HC_OPTS) -S $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HC) $(HC_OPTS) -S $< -o $@
$(HC_POST_OPTS)
%.$(way_)hc : %.lhc
......
......@@ -305,7 +305,7 @@ endif
# Object and interface files have suffixes tagged with their ways
ifneq "$(way)" ""
SRC_HC_OPTS += -hisuf $(way_)hi
SRC_HC_OPTS += -hisuf $(way_)hi -hcsuf $(way_)hc -osuf $(way_)o
endif
#----------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment