# -----------------------------------------------------------------------------
-# $Id: bootstrap.mk,v 1.3 2001/03/27 09:38:26 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
-include $(FPTOOLS_TOP_ABS)/ghc/mk/version.mk
-include $(FPTOOLS_TOP_ABS)/ghc/mk/paths.mk
+include $(TOP)/mk/version.mk
+include $(TOP)/mk/paths.mk
# Reset TOP
TOP:=$(TOP_SAVED)
-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" \