[project @ 1998-01-27 17:01:29 by simonm]
[ghc-hetmet.git] / ghc / mk / paths.mk
1 # -----------------------------------------------------------------------------
2 #
3 # ghc project specific make variables
4 #
5
6 #
7 PROJECTVERSION=$(GhcProjectVersion)
8 PROJECTNAME=$(GhcProjectName)
9 PROJECTPATCHLEVEL=$(GhcProjectPatchLevel)
10
11
12 # Override default haskell compiler if required
13 #HC                     = $(WithGhcHc)
14 HaskellCompilerType     = $(WithGhcHcType)
15
16 GCap=-optc-DGCap
17 #GC2s=-optc-DGC2s
18 #GC1s=-optc-DGC1s
19
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
24
25 #-----------------------------------------------------------------------------
26 # HsTags
27
28 ifdef UseInstalledUtils
29 HSTAGS                  = hstags
30 else
31 HSTAGS                  = $(HSTAGS_DIR)/hstags
32 HSTAGS_DIR              = $(GHC_UTILS_DIR)/hstags
33 endif
34
35 #-----------------------------------------------------------------------------
36 # Ugen
37
38 ifdef UseInstalledUtils
39 UGEN            = ugen
40 else
41 UGEN            = $(UGEN_DIR)/ugen
42 UGEN_DIR        = $(GHC_UTILS_DIR)/ugen
43 endif
44
45 #-----------------------------------------------------------------------------
46 # Extra things ``only for'' for the ghc project
47
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
54
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
64
65 #-----------------------------------------------------------------------------
66 # Stuff for the C-compiling phase in particular...
67
68 ifeq ($(HaveGcc), YES)
69 GHC_OPT_HILEV_ASM               = $(WhatGccIsCalled)
70 else
71 GHC_OPT_HILEV_ASM               = $(CC)
72 endif
73