summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-03-27 11:37:39 +0000
committersimonmar <unknown>2001-03-27 11:37:39 +0000
commite55fe97cb8fe1a6357301ac9b3f659911f410fb6 (patch)
tree9098561fc3f9ec77a73313f804b3997347c1c815 /mk
parente067f3ea2c9d5667b66efad7227bf4dc4e92571c (diff)
downloadhaskell-e55fe97cb8fe1a6357301ac9b3f659911f410fb6.tar.gz
[project @ 2001-03-27 11:37:39 by simonmar]
non-absolute paths didn't work.
Diffstat (limited to 'mk')
-rw-r--r--mk/bootstrap.mk16
1 files changed, 10 insertions, 6 deletions
diff --git a/mk/bootstrap.mk b/mk/bootstrap.mk
index e2ffba4386..387ae74fb5 100644
--- a/mk/bootstrap.mk
+++ b/mk/bootstrap.mk
@@ -1,8 +1,12 @@
# -----------------------------------------------------------------------------
-# $Id: bootstrap.mk,v 1.4 2001/03/27 09:44:56 simonmar Exp $
+# $Id: bootstrap.mk,v 1.5 2001/03/27 11:37:39 simonmar Exp $
#
# Makefile rules for booting from .hc files without a driver.
#
+# When booting from .hc files without a compiler installed, we don't have
+# the benefit of the GHC driver to add all the magic options required to
+# compile the .hc files, so we have to duplicate that functionality here.
+# The result is unfortunately ugly, but we don't have another choice.
TOP_SAVED := $(TOP)
TOP:=$(TOP)/ghc
@@ -48,15 +52,15 @@ PLATFORM_CC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt)
HC_BOOT_CC_OPTS = $(PLATFORM_HC_BOOT_CC_OPTS) -D__GLASGOW_HASKELL__=411 $(CC_OPTS)
-SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_LIB_DIR)/std/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/lang/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/posix/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/util/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/text/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/hssource/cbits
+SRC_CC_OPTS += -I$(FPTOOLS_TOP_ABS)/ghc/includes -I$(FPTOOLS_TOP_ABS)/ghc/lib/std/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/lang/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/posix/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/util/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/text/cbits -I$(FPTOOLS_TOP_ABS)/hslibs/hssource/cbits
# -----------------------------------------------------------------------------
# Linking: we have to give all the libraries explicitly.
HC_BOOT_LD_OPTS = \
- -L$(GHC_RUNTIME_DIR) \
- -L$(GHC_LIB_DIR)/std \
- -L$(GHC_LIB_DIR)/std/cbits \
+ -L$(FPTOOLS_TOP_ABS)/ghc/rts \
+ -L$(FPTOOLS_TOP_ABS)/ghc/lib/std \
+ -L$(FPTOOLS_TOP_ABS)/ghc/lib/std/cbits \
-L$(FPTOOLS_TOP_ABS)/hslibs/lang \
-L$(FPTOOLS_TOP_ABS)/hslibs/lang/cbits \
-L$(FPTOOLS_TOP_ABS)/hslibs/concurrent \
@@ -65,7 +69,7 @@ HC_BOOT_LD_OPTS = \
-L$(FPTOOLS_TOP_ABS)/hslibs/posix/cbits \
-L$(FPTOOLS_TOP_ABS)/hslibs/util \
-L$(FPTOOLS_TOP_ABS)/hslibs/util/cbits \
- -L$(FPTOOLS_TOP_ABS)/hslibs/text \
+ -L$(FPTOOLS_TOP_ABS) hslibs/text \
-u "PrelBase_Izh_static_info" \
-u "PrelBase_Czh_static_info" \
-u "PrelFloat_Fzh_static_info" \