projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the primitive type Any, and use it for Dynamics
[ghc-hetmet.git]
/
compiler
/
Makefile.ghcbin
diff --git
a/compiler/Makefile.ghcbin
b/compiler/Makefile.ghcbin
index
626ec51
..
7b25fb3
100644
(file)
--- a/
compiler/Makefile.ghcbin
+++ b/
compiler/Makefile.ghcbin
@@
-9,15
+9,29
@@
TOP = ..
include $(TOP)/mk/boilerplate.mk
TOP = ..
include $(TOP)/mk/boilerplate.mk
-stage=2
-
+ifeq "$(stage)" "2"
HC=$(GHC_STAGE1)
HC=$(GHC_STAGE1)
+endif
+
+ifeq "$(stage)" "3"
+HC=$(GHC_STAGE2)
+endif
+
SRC_HC_OPTS += -package ghc
SRC_HC_OPTS += -package ghc
-SRC_HC_OPTS += -DGHCI -DBREAKPOINT
SRC_HC_OPTS += -Istage$(stage)
SRC_HC_OPTS += \
-cpp -fglasgow-exts -fno-generics -Rghc-timing \
-I. -IcodeGen -InativeGen -Iparser
SRC_HC_OPTS += -Istage$(stage)
SRC_HC_OPTS += \
-cpp -fglasgow-exts -fno-generics -Rghc-timing \
-I. -IcodeGen -InativeGen -Iparser
+SRC_HC_OPTS += $(GhcHcOpts) $(GhcStage$(stage)HcOpts)
+ifeq "$(TargetOS_CPP)" "openbsd"
+SRC_HC_OPTS += -optl-Xlinker -optl-E
+endif
+
+ifeq "$(GhcWithInterpreter)" "YES"
+SRC_HC_OPTS += -DGHCI -DBREAKPOINT
+endif
+
+SRC_HC_OPTS += -threaded
odir=stage$(stage)
odir=stage$(stage)
@@
-26,5
+40,3
@@
HS_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(HS_SRCS)))
$(odir)/main/Main.o : libHSghc$(_way).a
include $(TOP)/mk/target.mk
$(odir)/main/Main.o : libHSghc$(_way).a
include $(TOP)/mk/target.mk
-
--include .depend-$(stage)