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
17 MKDEPENDHSSRC = $(GHC_UTILS_DIR)/mkdependHS
18 UNLIT = $(GHC_UNLIT_DIR)/unlit
19 GHC_UNLIT = $(GHC_UNLIT_DIR)/unlit
20 GHC_UNLIT_DIR = $(GHC_UTILS_DIR)/unlit
22 #-----------------------------------------------------------------------------
25 ifdef UseInstalledUtils
28 HSTAGS = $(HSTAGS_DIR)/hstags
29 HSTAGS_DIR = $(GHC_UTILS_DIR)/hstags
32 #-----------------------------------------------------------------------------
35 ifdef UseInstalledUtils
38 UGEN = $(UGEN_DIR)/ugen
39 UGEN_DIR = $(GHC_UTILS_DIR)/ugen
42 #-----------------------------------------------------------------------------
43 # Extra things ``only for'' for the ghc project
45 GHC_DRIVER_DIR = $(TOP)/driver
46 GHC_COMPILER_DIR = $(TOP)/compiler
47 GHC_RUNTIME_DIR = $(TOP)/runtime
48 GHC_LIB_DIR = $(TOP)/lib
49 GHC_INCLUDE_DIR = $(TOP)/includes
50 GHC_UTILS_DIR = $(TOP)/utils
52 GHC = $(GHC_DRIVER_DIR)/ghc
53 GHC_HSCPP_DIR = $(GHC_UTILS_DIR)/hscpp
54 GHC_HSCPP = $(GHC_HSCPP_DIR)/hscpp
55 GHC_HSP = $(GHC_HSP_DIR)/hsp
56 GHC_HSP_DIR = $(GHC_HSC_DIR)
57 GHC_HSC = $(GHC_HSC_DIR)/hsc
58 GHC_HSC_DIR = $(GHC_COMPILER_DIR)
59 GHC_SYSMAN = $(GHC_RUNTIME_DIR)/gum/SysMan
60 GHC_SYSMAN_DIR = $(GHC_RUNTIME_DIR)/gum
62 #-----------------------------------------------------------------------------
63 # Stuff for the C-compiling phase in particular...
65 # NON-OPTIMISING C COMPILATION: =================================
67 ifeq ($(HaveGcc), YES)
68 GHC_DEBUG_HILEV_ASM = $(WhatGccIsCalled)
70 GHC_DEBUG_HILEV_ASM = $(CC)
73 # OPTIMISING C COMPILATION (regs, etc): ==========================
75 ifeq ($(HaveGcc), YES)
76 GHC_OPT_HILEV_ASM = $(WhatGccIsCalled)
77 GHC_GCC_IS_AVAILABLE = 1
79 GHC_OPT_HILEV_ASM = $(CC)
80 GHC_GCC_IS_AVAILABLE = 0