[project @ 1999-12-07 15:49:52 by simonmar]
[ghc-hetmet.git] / ghc / mk / paths.mk
1 # -----------------------------------------------------------------------------
2 #
3 # ghc project specific make variables
4 #
5
6 GCap=-optc-DGCap
7 #GC2s=-optc-DGC2s
8 #GC1s=-optc-DGC1s
9
10 MKDEPENDHSSRC           = $(GHC_UTILS_DIR)/mkdependHS
11 UNLIT                   = $(GHC_UNLIT_DIR)/unlit
12 GHC_UNLIT               = $(GHC_UNLIT_DIR)/unlit
13 GHC_UNLIT_DIR           = $(GHC_UTILS_DIR)/unlit
14
15 #-----------------------------------------------------------------------------
16 # HsTags
17
18 ifdef UseInstalledUtils
19 HSTAGS                  = hstags
20 else
21 HSTAGS                  = $(HSTAGS_DIR)/hstags
22 HSTAGS_DIR              = $(GHC_UTILS_DIR)/hstags
23 endif
24
25 #-----------------------------------------------------------------------------
26 # Ugen
27
28 ifdef UseInstalledUtils
29 UGEN            = ugen
30 else
31 UGEN            = $(UGEN_DIR)/ugen
32 UGEN_DIR        = $(GHC_UTILS_DIR)/ugen
33 endif
34
35 #-----------------------------------------------------------------------------
36 # Extra things ``only for'' for the ghc project
37
38 GHC_DRIVER_DIR          = $(TOP)/driver
39 GHC_COMPILER_DIR        = $(TOP)/compiler
40 GHC_RUNTIME_DIR         = $(TOP)/rts
41 GHC_LIB_DIR             = $(TOP)/lib
42 GHC_INCLUDE_DIR         = $(TOP)/includes
43 GHC_UTILS_DIR           = $(TOP)/utils
44 GHC_INTERPRETER_DIR     = $(TOP)/interpreter
45
46 GHC_INPLACE             = $(GHC_DRIVER_DIR)/ghc-inplace
47 GHC_HSCPP_DIR           = $(GHC_UTILS_DIR)/hscpp
48 GHC_HSCPP               = $(GHC_HSCPP_DIR)/hscpp
49 GHC_MKDEPENDHS_DIR      = $(GHC_UTILS_DIR)/mkdependHS
50 GHC_MKDEPENDHS          = $(GHC_MKDEPENDHS_DIR)/mkdependHS-inplace
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 ifeq ($(HaveGcc), YES)
62 GHC_OPT_HILEV_ASM               = $(WhatGccIsCalled)
63 else
64 GHC_OPT_HILEV_ASM               = $(CC)
65 endif
66
67 #
68 # There's no need to compute dependencies when booting from .hc files
69 #
70 ifneq "$(GhcWithHscBuiltViaC)" "YES"
71 MKDEPENDHS_SRCS = $(HS_SRCS)
72 else
73 MKDEPENDHS_SRCS =
74 endif