projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-07-25 15:03:38 by simonpj]
[ghc-base.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
249f6aa
..
7ed06cb
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,5
+1,5
@@
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.41 2003/03/06 09:51:03 simonmar Exp $
+# $Id: Makefile,v 1.46 2003/07/24 13:53:20 simonmar Exp $
TOP=..
include $(TOP)/mk/boilerplate.mk
TOP=..
include $(TOP)/mk/boilerplate.mk
@@
-14,6
+14,7
@@
ALL_DIRS = \
Control/Monad \
Control/Monad/ST \
Data \
Control/Monad \
Control/Monad/ST \
Data \
+ Data/Generics \
Data/Array \
Data/Array/IO \
Data/STRef \
Data/Array \
Data/Array/IO \
Data/STRef \
@@
-57,9
+58,18
@@
SRC_HC_OPTS += -funbox-strict-fields
# -----------------------------------------------------------------------------
# PrimOpWrappers
# -----------------------------------------------------------------------------
# PrimOpWrappers
+# These two lines are required for pre-processing ghc/compiler/prelude/primops.txt
+SRC_CPP_OPTS += -I$(GHC_INCLUDE_DIR)
+SRC_CPP_OPTS += ${GhcCppOpts}
+
+ifeq "$(BootingFromHc)" "YES"
+GHC/PrimopWrappers.hs:
+ touch GHC/PrimopWrappers.hs
+else
GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt
@$(RM) $@
$(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@
GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt
@$(RM) $@
$(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@
+endif
boot :: GHC/PrimopWrappers.hs
boot :: GHC/PrimopWrappers.hs
@@
-98,7
+108,7
@@
endif # OBJECT_FILEFORMAT = PEi
# Doc building with Haddock
EXCLUDED_HADDOCK_SRCS = \
# Doc building with Haddock
EXCLUDED_HADDOCK_SRCS = \
- Data/Generics.hs \
+ GHC/PrimopWrappers.hs \
GHC/PArr.hs
SRC_HADDOCK_OPTS += -t "Haskell Core Libraries (base package)" \
GHC/PArr.hs
SRC_HADDOCK_OPTS += -t "Haskell Core Libraries (base package)" \