[project @ 1997-03-17 20:34:25 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 GCap=-optc-DGCap
14 #GC2s=-optc-DGC2s
15 #GC1s=-optc-DGC1s
16
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
21
22 #-----------------------------------------------------------------------------
23 # HsTags
24
25 ifdef UseInstalledUtils
26 HSTAGS                  = hstags
27 else
28 HSTAGS                  = $(HSTAGS_DIR)/hstags
29 HSTAGS_DIR              = $(GHC_UTILS_DIR)/hstags
30 endif
31
32 #-----------------------------------------------------------------------------
33 # Ugen
34
35 ifdef UseInstalledUtils
36 UGEN            = ugen
37 else
38 UGEN            = $(UGEN_DIR)/ugen
39 UGEN_DIR        = $(GHC_UTILS_DIR)/ugen
40 endif
41
42 #-----------------------------------------------------------------------------
43 # Extra things ``only for'' for the ghc project
44
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
51
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
61
62 #-----------------------------------------------------------------------------
63 # Stuff for the C-compiling phase in particular...
64
65 # NON-OPTIMISING C COMPILATION: =================================
66
67 ifeq ($(HaveGcc), YES)
68 GHC_DEBUG_HILEV_ASM             = $(WhatGccIsCalled)
69 else
70 GHC_DEBUG_HILEV_ASM             = $(CC)
71 endif
72
73 # OPTIMISING C COMPILATION (regs, etc): ==========================
74
75 ifeq ($(HaveGcc), YES)
76 GHC_OPT_HILEV_ASM               = $(WhatGccIsCalled)
77 GHC_GCC_IS_AVAILABLE            = 1
78 else
79 GHC_OPT_HILEV_ASM               = $(CC)
80 GHC_GCC_IS_AVAILABLE            = 0
81 endif
82