1 # -----------------------------------------------------------------------------
3 # ghc project specific make variables
6 # Override default haskell compiler if required
8 HaskellCompilerType = $(WithGhcHcType)
10 # What ways to build the RTS+libs
14 MKDEPENDHSSRC = $(GHC_UTILS_DIR)/mkdependHS
15 UNLIT = $(GHC_UNLIT_DIR)/unlit
16 GHC_UNLIT_DIR = $(GHC_UTILS_DIR)/unlit
18 #-----------------------------------------------------------------------------
21 ifdef UseInstalledUtils
24 HSTAGS = $(HSTAGS_DIR)/hstags
25 HSTAGS_DIR = $(GHC_UTILS_DIR)/hstags
28 #-----------------------------------------------------------------------------
31 ifdef UseInstalledUtils
34 UGEN = $(UGEN_DIR)/ugen
35 UGENSRC = $(GHC_UTILS_DIR)/ugen
38 #-----------------------------------------------------------------------------
39 # Extra things ``only for'' for the ghc project
41 GHC_DRIVER_DIR = $(TOP)/driver
42 GHC_COMPILER_DIR = $(TOP)/compiler
43 GHC_RUNTIME_DIR = $(TOP)/runtime
44 GHC_LIB_DIR = $(TOP)/lib
45 GHC_INCLUDE_DIR = $(TOP)/includes
46 GHC_UTILS_DIR = $(TOP)/utils
48 GHC = $(GHC_DRIVER_DIR)/ghc
49 GHC_HSCPP_DIR = $(GHC_UTILS_DIR)/hscpp
50 GHC_HSCPP = $(GHC_HSCPP_DIR)/hscpp
51 GHC_HSP = $(GHC_HSP_DIR)/hsp
52 GHC_HSP_DIR = $(GHC_HSC_DIR)
53 GHC_HSC = $(GHC_HSC_DIR)/hsc
54 GHC_HSC_DIR = $(GHC_COMPILER_DIR)
55 GHC_SYSMAN = $(GHC_RUNTIME_DIR)/gum/SysMan
56 GHC_SYSMAN_DIR = $(GHC_RUNTIME_DIR)/gum
58 #-----------------------------------------------------------------------------
59 # Stuff for the C-compiling phase in particular...
61 # NON-OPTIMISING C COMPILATION: =================================
63 ifeq ($(HaveGcc), YES)
64 GHC_DEBUG_HILEV_ASM = $(WhatGccIsCalled)
66 GHC_DEBUG_HILEV_ASM = $(CC)
69 # OPTIMISING C COMPILATION (regs, etc): ==========================
71 ifeq ($(HaveGcc), YES)
72 GHC_OPT_HILEV_ASM = $(WhatGccIsCalled)
73 GHC_GCC_IS_AVAILABLE = 1
75 GHC_OPT_HILEV_ASM = $(CC)
76 GHC_GCC_IS_AVAILABLE = 0