[project @ 2000-01-07 17:22:09 by simonmar]
[ghc-hetmet.git] / ghc / mk / paths.mk
1 # -----------------------------------------------------------------------------
2 # $Id: paths.mk,v 1.15 2000/01/07 17:22:09 simonmar Exp $
3 #
4 # ghc project specific make variables
5 #
6
7 #-----------------------------------------------------------------------------
8 # HsTags
9
10 ifdef UseInstalledUtils
11 HSTAGS                  = hstags
12 else
13 HSTAGS                  = $(HSTAGS_DIR)/hstags
14 HSTAGS_DIR              = $(GHC_UTILS_DIR)/hstags
15 endif
16
17 #-----------------------------------------------------------------------------
18 # Extra things ``only for'' for the ghc project
19
20 GHC_DRIVER_DIR          := $(TOP)/driver
21 GHC_COMPILER_DIR        := $(TOP)/compiler
22 GHC_RUNTIME_DIR         := $(TOP)/rts
23 GHC_LIB_DIR             := $(TOP)/lib
24 GHC_INCLUDE_DIR         := $(TOP)/includes
25 GHC_UTILS_DIR           := $(TOP)/utils
26 GHC_INTERPRETER_DIR     := $(TOP)/interpreter
27
28 GHC_INPLACE             := $(GHC_DRIVER_DIR)/ghc-inplace
29 GHC_HSCPP_DIR           := $(GHC_UTILS_DIR)/hscpp
30 GHC_HSCPP               := $(GHC_HSCPP_DIR)/hscpp
31 GHC_MKDEPENDHS_DIR      := $(GHC_UTILS_DIR)/mkdependHS
32 GHC_MKDEPENDHS          := $(GHC_MKDEPENDHS_DIR)/mkdependHS-inplace
33 GHC_HSP                 := $(GHC_HSP_DIR)/hsp
34 GHC_HSP_DIR             := $(GHC_HSC_DIR)
35 GHC_HSC                 := $(GHC_HSC_DIR)/hsc
36 GHC_HSC_DIR             := $(GHC_COMPILER_DIR)
37 GHC_SYSMAN              := $(GHC_RUNTIME_DIR)/gum/SysMan
38 GHC_SYSMAN_DIR          := $(GHC_RUNTIME_DIR)/gum
39
40 UNLIT                   := $(GHC_UNLIT_DIR)/unlit
41 GHC_UNLIT               := $(GHC_UNLIT_DIR)/unlit
42 GHC_UNLIT_DIR           := $(GHC_UTILS_DIR)/unlit
43
44 #-----------------------------------------------------------------------------
45 # Stuff for the C-compiling phase in particular...
46
47 ifeq ($(HaveGcc), YES)
48 GHC_OPT_HILEV_ASM               = $(WhatGccIsCalled)
49 else
50 GHC_OPT_HILEV_ASM               = $(CC)
51 endif
52
53 #
54 # There's no need to compute dependencies when booting from .hc files
55 #
56 ifneq "$(GhcWithHscBuiltViaC)" "YES"
57 MKDEPENDHS_SRCS = $(HS_SRCS)
58 else
59 MKDEPENDHS_SRCS =
60 endif