1 # -----------------------------------------------------------------------------
3 # ghc project specific make variables
7 PROJECTVERSION=$(GhcProjectVersion)
8 PROJECTNAME=$(GhcProjectName)
9 PROJECTPATCHLEVEL=$(GhcProjectPatchLevel)
12 # Override default haskell compiler if required
14 HaskellCompilerType = $(WithGhcHcType)
20 MKDEPENDHSSRC = $(GHC_UTILS_DIR)/mkdependHS
21 UNLIT = $(GHC_UNLIT_DIR)/unlit
22 GHC_UNLIT = $(GHC_UNLIT_DIR)/unlit
23 GHC_UNLIT_DIR = $(GHC_UTILS_DIR)/unlit
25 #-----------------------------------------------------------------------------
28 ifdef UseInstalledUtils
31 HSTAGS = $(HSTAGS_DIR)/hstags
32 HSTAGS_DIR = $(GHC_UTILS_DIR)/hstags
35 #-----------------------------------------------------------------------------
38 ifdef UseInstalledUtils
41 UGEN = $(UGEN_DIR)/ugen
42 UGEN_DIR = $(GHC_UTILS_DIR)/ugen
45 #-----------------------------------------------------------------------------
46 # Extra things ``only for'' for the ghc project
48 GHC_DRIVER_DIR = $(TOP)/driver
49 GHC_COMPILER_DIR = $(TOP)/compiler
50 GHC_RUNTIME_DIR = $(TOP)/runtime
51 GHC_LIB_DIR = $(TOP)/lib
52 GHC_INCLUDE_DIR = $(TOP)/includes
53 GHC_UTILS_DIR = $(TOP)/utils
55 GHC = $(GHC_DRIVER_DIR)/ghc
56 GHC_HSCPP_DIR = $(GHC_UTILS_DIR)/hscpp
57 GHC_HSCPP = $(GHC_HSCPP_DIR)/hscpp
58 GHC_HSP = $(GHC_HSP_DIR)/hsp
59 GHC_HSP_DIR = $(GHC_HSC_DIR)
60 GHC_HSC = $(GHC_HSC_DIR)/hsc
61 GHC_HSC_DIR = $(GHC_COMPILER_DIR)
62 GHC_SYSMAN = $(GHC_RUNTIME_DIR)/gum/SysMan
63 GHC_SYSMAN_DIR = $(GHC_RUNTIME_DIR)/gum
65 #-----------------------------------------------------------------------------
66 # Stuff for the C-compiling phase in particular...
68 # NON-OPTIMISING C COMPILATION: =================================
70 ifeq ($(HaveGcc), YES)
71 GHC_DEBUG_HILEV_ASM = $(WhatGccIsCalled)
73 GHC_DEBUG_HILEV_ASM = $(CC)
76 # OPTIMISING C COMPILATION (regs, etc): ==========================
78 ifeq ($(HaveGcc), YES)
79 GHC_OPT_HILEV_ASM = $(WhatGccIsCalled)
80 GHC_GCC_IS_AVAILABLE = 1
82 GHC_OPT_HILEV_ASM = $(CC)
83 GHC_GCC_IS_AVAILABLE = 0