1 # -----------------------------------------------------------------------------
2 # $Id: paths.mk,v 1.21 2000/06/14 10:10:03 simonmar Exp $
4 # ghc project specific make variables
7 #-----------------------------------------------------------------------------
10 ifdef UseInstalledUtils
13 HSTAGS = $(HSTAGS_DIR)/hstags
14 HSTAGS_DIR = $(GHC_UTILS_DIR)/hstags
17 #-----------------------------------------------------------------------------
18 # Extra things ``only for'' for the ghc project
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
28 GHC_MKDEPENDHS_DIR := $(GHC_UTILS_DIR)/mkdependHS
29 GHC_HSCPP_DIR := $(GHC_UTILS_DIR)/hscpp
30 GHC_HSC_DIR := $(GHC_COMPILER_DIR)
31 GHC_UNLIT_DIR := $(GHC_UTILS_DIR)/unlit
32 GHC_MANGLER_DIR := $(GHC_DRIVER_DIR)/mangler
33 GHC_SPLIT_DIR := $(GHC_DRIVER_DIR)/split
34 GHC_STAT_DIR := $(GHC_DRIVER_DIR)/stats
36 GHC_INPLACE = $(GHC_DRIVER_DIR)/ghc-inplace
37 GHC_HSCPP = $(GHC_HSCPP_DIR)/hscpp
38 GHC_MKDEPENDHS = $(GHC_MKDEPENDHS_DIR)/mkdependHS-inplace
39 GHC_HSC = $(GHC_HSC_DIR)/hsc
40 UNLIT = $(GHC_UNLIT_DIR)/unlit
41 GHC_UNLIT = $(GHC_UNLIT_DIR)/unlit
42 GHC_MANGLER = $(GHC_MANGLER_DIR)/ghc-asm
43 GHC_SPLIT = $(GHC_SPLIT_DIR)/ghc-split
44 GHC_STATS = $(GHC_STAT_DIR)/ghc-stats
46 GHC_SYSMAN = $(GHC_RUNTIME_DIR)/parallel/SysMan
47 GHC_SYSMAN_DIR = $(GHC_RUNTIME_DIR)/parallel
49 #-----------------------------------------------------------------------------
50 # Stuff for the C-compiling phase in particular...
52 ifeq ($(HaveGcc), YES)
53 GHC_OPT_HILEV_ASM = $(WhatGccIsCalled)
55 GHC_OPT_HILEV_ASM = $(CC)
59 # There's no need to compute dependencies when booting from .hc files
61 ifneq "$(GhcWithHscBuiltViaC)" "YES"
62 MKDEPENDHS_SRCS = $(HS_SRCS)