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