summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsewardj <unknown>2001-09-04 16:35:02 +0000
committersewardj <unknown>2001-09-04 16:35:02 +0000
commit10bc730f39fc87663e9f5e1449dd6171e32d23b7 (patch)
tree6823572b8973d10bf6641ad1e1baaf4fff9570f1 /mk
parent9c5f23d4e31b06a3d6ec8eca7c82934571c348de (diff)
downloadhaskell-10bc730f39fc87663e9f5e1449dd6171e32d23b7.tar.gz
[project @ 2001-09-04 16:35:02 by sewardj]
Build system hacks to split HSwin32.o into two parts, so that it can be loaded into GHCi. Uses the same gruesome hacks as HSstd.o.
Diffstat (limited to 'mk')
-rw-r--r--mk/target.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/target.mk b/mk/target.mk
index 403b4f157f..448b077fb6 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -515,7 +515,9 @@ CLEAN_FILES += $(GHCI_LIBRARY)
all :: $(GHCI_LIBRARY)
+# How come GNU make doesn't support ands and ors? Duh.
ifneq "$(GHCI_LIBRARY)" "HSstd.o"
+ifneq "$(GHCI_LIBRARY)" "HSwin32.o"
# An annoying gotcha is that the Prelude is a bit special,
# for reasons described in ghc/lib/std/Makefile.
# So we only put in this standard rule for packages other than std
@@ -523,13 +525,15 @@ ifneq "$(GHCI_LIBRARY)" "HSstd.o"
# We check for GHCI_LIBRARY being HSstd.o rather than
# PACKAGE being std, because we want to still use the boilerplate rule
# for cbits.
+# JRS 04 Sept 01: The exact same deal applies to hslibs/HSwin32.o.
$(GHCI_LIBRARY) :: $(LIBOBJS)
ld -r -x -o $@ $(LIBOBJS) $(STUBOBJS)
-endif
+endif # GHCI_LIBRARY != "HSwin32.o"
+endif # GHCI_LIBRARY != "HSstd.o"
endif # GhcWithInterpreter
endif # way
-endif # GHCI_LIBRARY
+endif # GHCI_LIBRARY != ""
#----------------------------------------