1 # -----------------------------------------------------------------------------
3 # ghc project specific make variables
6 # Override default haskell compiler if required
8 HaskellCompilerType = $(WithGhcHcType)
14 MKDEPENDHSSRC = $(GHC_UTILS_DIR)/mkdependHS
15 UNLIT = $(GHC_UNLIT_DIR)/unlit
16 GHC_UNLIT = $(GHC_UNLIT_DIR)/unlit
17 GHC_UNLIT_DIR = $(GHC_UTILS_DIR)/unlit
19 #-----------------------------------------------------------------------------
22 ifdef UseInstalledUtils
25 HSTAGS = $(HSTAGS_DIR)/hstags
26 HSTAGS_DIR = $(GHC_UTILS_DIR)/hstags
29 #-----------------------------------------------------------------------------
32 ifdef UseInstalledUtils
35 UGEN = $(UGEN_DIR)/ugen
36 UGEN_DIR = $(GHC_UTILS_DIR)/ugen
39 #-----------------------------------------------------------------------------
40 # Extra things ``only for'' for the ghc project
42 GHC_DRIVER_DIR = $(TOP)/driver
43 GHC_COMPILER_DIR = $(TOP)/compiler
44 GHC_RUNTIME_DIR = $(TOP)/runtime
45 GHC_LIB_DIR = $(TOP)/lib
46 GHC_INCLUDE_DIR = $(TOP)/includes
47 GHC_UTILS_DIR = $(TOP)/utils
49 GHC = $(GHC_DRIVER_DIR)/ghc
50 GHC_HSCPP_DIR = $(GHC_UTILS_DIR)/hscpp
51 GHC_HSCPP = $(GHC_HSCPP_DIR)/hscpp
52 GHC_HSP = $(GHC_HSP_DIR)/hsp
53 GHC_HSP_DIR = $(GHC_HSC_DIR)
54 GHC_HSC = $(GHC_HSC_DIR)/hsc
55 GHC_HSC_DIR = $(GHC_COMPILER_DIR)
56 GHC_SYSMAN = $(GHC_RUNTIME_DIR)/gum/SysMan
57 GHC_SYSMAN_DIR = $(GHC_RUNTIME_DIR)/gum
59 #-----------------------------------------------------------------------------
60 # Stuff for the C-compiling phase in particular...
62 ifeq ($(HaveGcc), YES)
63 GHC_OPT_HILEV_ASM = $(WhatGccIsCalled)
65 GHC_OPT_HILEV_ASM = $(CC)
69 # There's no need to compute dependencies when booting from .hc files
71 ifneq "$(GhcWithHscBuiltViaC)" "YES"
72 MKDEPENDHS_SRCS = $(HS_SRCS)
77 # temporary until the new RTS is merged in.
78 MOSTLY_CLEAN_FILES += *.hc