paths.mk 1.96 KB
Newer Older
1
2
3
4
5
6
7
8
9
# -----------------------------------------------------------------------------
#
# ghc project specific make variables
#

# Override default haskell compiler if required
#HC			= $(WithGhcHc)
HaskellCompilerType	= $(WithGhcHcType)

10
11
12
GCap=-optc-DGCap
#GC2s=-optc-DGC2s
#GC1s=-optc-DGC1s
13
14
15

MKDEPENDHSSRC 		= $(GHC_UTILS_DIR)/mkdependHS
UNLIT	 		= $(GHC_UNLIT_DIR)/unlit
16
GHC_UNLIT		= $(GHC_UNLIT_DIR)/unlit
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
GHC_UNLIT_DIR 		= $(GHC_UTILS_DIR)/unlit

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

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

#-----------------------------------------------------------------------------
# Ugen

ifdef UseInstalledUtils
33
UGEN		= ugen
34
35
else
UGEN		= $(UGEN_DIR)/ugen
36
UGEN_DIR 	= $(GHC_UTILS_DIR)/ugen
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
endif

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

GHC_DRIVER_DIR	    	= $(TOP)/driver
GHC_COMPILER_DIR  	= $(TOP)/compiler
GHC_RUNTIME_DIR   	= $(TOP)/runtime
GHC_LIB_DIR	 	= $(TOP)/lib
GHC_INCLUDE_DIR   	= $(TOP)/includes
GHC_UTILS_DIR	 	= $(TOP)/utils

GHC 			= $(GHC_DRIVER_DIR)/ghc
GHC_HSCPP_DIR 		= $(GHC_UTILS_DIR)/hscpp
GHC_HSCPP    		= $(GHC_HSCPP_DIR)/hscpp
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

#-----------------------------------------------------------------------------
# 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
68
69
70
71
72
73
74
75
#
# There's no need to compute dependencies when booting from .hc files
#
ifneq "$(GhcWithHscBuiltViaC)" "YES"
MKDEPENDHS_SRCS = $(HS_SRCS)
else
MKDEPENDHS_SRCS =
endif
76
77
78

# temporary until the new RTS is merged in.
MOSTLY_CLEAN_FILES += *.hc