paths.mk 1.83 KB
Newer Older
1
2
3
4
5
# -----------------------------------------------------------------------------
#
# ghc project specific make variables
#

sof's avatar
sof committed
6
#
sof's avatar
sof committed
7
PROJECTVERSION=$(GhcProjectVersion)
sof's avatar
sof committed
8
9
10
11
PROJECTNAME=$(GhcProjectName)
PROJECTPATCHLEVEL=$(GhcProjectPatchLevel)


12
13
14
15
# Override default haskell compiler if required
#HC			= $(WithGhcHc)
HaskellCompilerType	= $(WithGhcHcType)

16
17
18
GCap=-optc-DGCap
#GC2s=-optc-DGC2s
#GC1s=-optc-DGC1s
19
20
21

MKDEPENDHSSRC 		= $(GHC_UTILS_DIR)/mkdependHS
UNLIT	 		= $(GHC_UNLIT_DIR)/unlit
22
GHC_UNLIT		= $(GHC_UNLIT_DIR)/unlit
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
39
UGEN		= ugen
40
41
else
UGEN		= $(UGEN_DIR)/ugen
42
UGEN_DIR 	= $(GHC_UTILS_DIR)/ugen
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
68
69
70
71
72
73
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