[project @ 1998-05-12 16:02:46 by simonm]
[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 GCap=-optc-DGCap
11 #GC2s=-optc-DGC2s
12 #GC1s=-optc-DGC1s
13
14 MKDEPENDHSSRC           = $(GHC_UTILS_DIR)/mkdependHS
15 UNLIT                   = $(GHC_UNLIT_DIR)/unlit
16 GHC_UNLIT               = $(GHC_UNLIT_DIR)/unlit
17 GHC_UNLIT_DIR           = $(GHC_UTILS_DIR)/unlit
18
19 #-----------------------------------------------------------------------------
20 # HsTags
21
22 ifdef UseInstalledUtils
23 HSTAGS                  = hstags
24 else
25 HSTAGS                  = $(HSTAGS_DIR)/hstags
26 HSTAGS_DIR              = $(GHC_UTILS_DIR)/hstags
27 endif
28
29 #-----------------------------------------------------------------------------
30 # Ugen
31
32 ifdef UseInstalledUtils
33 UGEN            = ugen
34 else
35 UGEN            = $(UGEN_DIR)/ugen
36 UGEN_DIR        = $(GHC_UTILS_DIR)/ugen
37 endif
38
39 #-----------------------------------------------------------------------------
40 # Extra things ``only for'' for the ghc project
41
42 GHC_DRIVER_DIR          = $(TOP)/driver
43 GHC_COMPILER_DIR        = $(TOP)/compiler
44 GHC_RUNTIME_DIR         = $(TOP)/runtime
45 GHC_LIB_DIR             = $(TOP)/lib
46 GHC_INCLUDE_DIR         = $(TOP)/includes
47 GHC_UTILS_DIR           = $(TOP)/utils
48
49 GHC                     = $(GHC_DRIVER_DIR)/ghc
50 GHC_HSCPP_DIR           = $(GHC_UTILS_DIR)/hscpp
51 GHC_HSCPP               = $(GHC_HSCPP_DIR)/hscpp
52 GHC_HSP                 = $(GHC_HSP_DIR)/hsp
53 GHC_HSP_DIR             = $(GHC_HSC_DIR)
54 GHC_HSC                 = $(GHC_HSC_DIR)/hsc
55 GHC_HSC_DIR             = $(GHC_COMPILER_DIR)
56 GHC_SYSMAN              = $(GHC_RUNTIME_DIR)/gum/SysMan
57 GHC_SYSMAN_DIR          = $(GHC_RUNTIME_DIR)/gum
58
59 #-----------------------------------------------------------------------------
60 # Stuff for the C-compiling phase in particular...
61
62 ifeq ($(HaveGcc), YES)
63 GHC_OPT_HILEV_ASM               = $(WhatGccIsCalled)
64 else
65 GHC_OPT_HILEV_ASM               = $(CC)
66 endif
67
68 #
69 # There's no need to compute dependencies when booting from .hc files
70 #
71 ifneq "$(GhcWithHscBuiltViaC)" "YES"
72 MKDEPENDHS_SRCS = $(HS_SRCS)
73 else
74 MKDEPENDHS_SRCS =
75 endif
76
77 # temporary until the new RTS is merged in.
78 MOSTLY_CLEAN_FILES += *.hc