projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
588ca4b
)
Add a .hc building rules for bootstrapping
author
Ian Lynagh
<igloo@earth.li>
Sun, 3 May 2009 19:05:08 +0000
(19:05 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 3 May 2009 19:05:08 +0000
(19:05 +0000)
rules/hs-suffix-rules-srcdir.mk
patch
|
blob
|
history
diff --git
a/rules/hs-suffix-rules-srcdir.mk
b/rules/hs-suffix-rules-srcdir.mk
index
8c8e381
..
e2b8c39
100644
(file)
--- a/
rules/hs-suffix-rules-srcdir.mk
+++ b/
rules/hs-suffix-rules-srcdir.mk
@@
-16,6
+16,8
@@
define hs-suffix-rules-srcdir
# Preprocessing Haskell source
# Preprocessing Haskell source
+ifneq "$$(BootingFromHc)" "YES"
+
$1/$2/build/%.hs : $1/$4/%.ly $$(MKDIRHIER)
$$(MKDIRHIER) $$(dir $$@)
$$(HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@
$1/$2/build/%.hs : $1/$4/%.ly $$(MKDIRHIER)
$$(MKDIRHIER) $$(dir $$@)
$$(HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@
@@
-47,9
+49,14
@@
$1/$2/build/%.$$($3_hcsuf) : $1/$4/%.hs $$($1_$2_HC_DEP)
$1/$2/build/%.$$($3_hcsuf) : $1/$4/%.lhs $$($1_$2_HC_DEP)
$$($1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -C $$< -o $$@
$1/$2/build/%.$$($3_hcsuf) : $1/$4/%.lhs $$($1_$2_HC_DEP)
$$($1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -C $$< -o $$@
+endif
+
# XXX: for some reason these get used in preference to the direct
# .hs->.o rule, I don't know why --SDM
# XXX: for some reason these get used in preference to the direct
# .hs->.o rule, I don't know why --SDM
+$1/$2/build/%.$$($3_osuf) : $1/$4/%.hc
+ $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -c $$< -o $$@
+
# $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.$$($3_way_)hc
# $$($1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -c $$< -o $$@
#
# $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.$$($3_way_)hc
# $$($1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -c $$< -o $$@
#