[project @ 1997-03-14 07:52:06 by simonpj]
[ghc-hetmet.git] / ghc / mk / paths.mk
1 # -----------------------------------------------------------------------------
2 #
3 # ghc project specific make variables
4 #
5
6 # Override default haskell compiler if required
7 #HC                     = $(WithGhcHc)
8 HaskellCompilerType     = $(WithGhcHcType)
9
10 # What ways to build the RTS+libs
11 WAYS=$(GhcLibWays)
12
13
14 MKDEPENDHSSRC           = $(GHC_UTILS_DIR)/mkdependHS
15 UNLIT                   = $(GHC_UNLIT_DIR)/unlit
16 GHC_UNLIT_DIR           = $(GHC_UTILS_DIR)/unlit
17
18 #-----------------------------------------------------------------------------
19 # HsTags
20
21 ifdef UseInstalledUtils
22 HSTAGS                  = hstags
23 else
24 HSTAGS                  = $(HSTAGS_DIR)/hstags
25 HSTAGS_DIR              = $(GHC_UTILS_DIR)/hstags
26 endif
27
28 #-----------------------------------------------------------------------------
29 # Ugen
30
31 ifdef UseInstalledUtils
32 UGEN            =  ugen
33 else
34 UGEN            = $(UGEN_DIR)/ugen
35 UGENSRC         = $(GHC_UTILS_DIR)/ugen
36 endif
37
38 #-----------------------------------------------------------------------------
39 # Extra things ``only for'' for the ghc project
40
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
47
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
57
58 #-----------------------------------------------------------------------------
59 # Stuff for the C-compiling phase in particular...
60
61 # NON-OPTIMISING C COMPILATION: =================================
62
63 ifeq ($(HaveGcc), YES)
64 GHC_DEBUG_HILEV_ASM             = $(WhatGccIsCalled)
65 else
66 GHC_DEBUG_HILEV_ASM             = $(CC)
67 endif
68
69 # OPTIMISING C COMPILATION (regs, etc): ==========================
70
71 ifeq ($(HaveGcc), YES)
72 GHC_OPT_HILEV_ASM               = $(WhatGccIsCalled)
73 GHC_GCC_IS_AVAILABLE            = 1
74 else
75 GHC_OPT_HILEV_ASM               = $(CC)
76 GHC_GCC_IS_AVAILABLE            = 0
77 endif
78