TOP = ..
include $(TOP)/mk/boilerplate.mk
+WAYS=$(GhcLibWays)
+
ifeq "$(way)" ""
SUBDIRS = cbits
ifeq ($(IncludeTestDirsInBuild),YES)
#
# Profiling options
-WAY_p_HC_OPTS += -prof -GPrelude
-WAY_mr_HC_OPTS += -prof -GPrelude
+WAY_p_HC_OPTS += -GPrelude
+WAY_mr_HC_OPTS += -GPrelude
#
# Object and interface files have suffixes tagged with their ways
endif
# per-module flags
-
+ghc/ArrBase_HC_OPTS += -monly-2-regs
glaExts/PackedString_HC_OPTS += -monly-3-regs
required/Directory_HC_OPTS += -monly-3-regs
concurrent/Parallel_HC_OPTS += -fglasgow-exts
-required/Time_HC_OPTS += -monly-3-regs -H10m
+required/Time_HC_OPTS += -monly-3-regs -H12m
# Far too much heap is needed to compile PrelNum with -O at the
# moment, but there you go..
#-----------------------------------------------------------------------------
# Rules
-GHC.$(way_)hi : GHC.hi-boot
- cp GHC.hi-boot GHC.$(way_)hi
-
+ghc/GHC.$(way_)hi : ghc/GHC.hi-boot
+ cp $< $@
+boot :: ghc/GHC.hi $(foreach way, $(WAYS), ghc/GHC.$(way)_hi)
#-----------------------------------------------------------------------------
# Installation; need to install .hi files as well as libraries
INSTALL_DATAS += $(HS_IFACES)
include $(TOP)/mk/target.mk
-
-