paths.mk 1.72 KB
Newer Older
1
# -----------------------------------------------------------------------------
2
# $Id: paths.mk,v 1.15 2000/01/07 17:22:09 simonmar Exp $
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# ghc project specific make variables
#

#-----------------------------------------------------------------------------
# HsTags

ifdef UseInstalledUtils
HSTAGS	 		= hstags
else
HSTAGS	 		= $(HSTAGS_DIR)/hstags
HSTAGS_DIR 		= $(GHC_UTILS_DIR)/hstags
endif

#-----------------------------------------------------------------------------
# Extra things ``only for'' for the ghc project

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
GHC_DRIVER_DIR	    	:= $(TOP)/driver
GHC_COMPILER_DIR  	:= $(TOP)/compiler
GHC_RUNTIME_DIR   	:= $(TOP)/rts
GHC_LIB_DIR	 	:= $(TOP)/lib
GHC_INCLUDE_DIR   	:= $(TOP)/includes
GHC_UTILS_DIR	 	:= $(TOP)/utils
GHC_INTERPRETER_DIR 	:= $(TOP)/interpreter

GHC_INPLACE		:= $(GHC_DRIVER_DIR)/ghc-inplace
GHC_HSCPP_DIR 		:= $(GHC_UTILS_DIR)/hscpp
GHC_HSCPP    		:= $(GHC_HSCPP_DIR)/hscpp
GHC_MKDEPENDHS_DIR	:= $(GHC_UTILS_DIR)/mkdependHS
GHC_MKDEPENDHS 		:= $(GHC_MKDEPENDHS_DIR)/mkdependHS-inplace
GHC_HSP    		:= $(GHC_HSP_DIR)/hsp
GHC_HSP_DIR 		:= $(GHC_HSC_DIR)
GHC_HSC    		:= $(GHC_HSC_DIR)/hsc
GHC_HSC_DIR 		:= $(GHC_COMPILER_DIR)
GHC_SYSMAN    		:= $(GHC_RUNTIME_DIR)/gum/SysMan
GHC_SYSMAN_DIR 		:= $(GHC_RUNTIME_DIR)/gum

UNLIT	 		:= $(GHC_UNLIT_DIR)/unlit
GHC_UNLIT		:= $(GHC_UNLIT_DIR)/unlit
GHC_UNLIT_DIR 		:= $(GHC_UTILS_DIR)/unlit
43
44
45
46
47
48
49
50
51
52

#-----------------------------------------------------------------------------
# Stuff for the C-compiling phase in particular...

ifeq ($(HaveGcc), YES)
GHC_OPT_HILEV_ASM 		= $(WhatGccIsCalled)
else
GHC_OPT_HILEV_ASM 		= $(CC)
endif

sof's avatar
sof committed
53
54
55
56
57
58
59
60
#
# There's no need to compute dependencies when booting from .hc files
#
ifneq "$(GhcWithHscBuiltViaC)" "YES"
MKDEPENDHS_SRCS = $(HS_SRCS)
else
MKDEPENDHS_SRCS =
endif