paths.mk 1.67 KB
Newer Older
1
# -----------------------------------------------------------------------------
2
# $Id: paths.mk,v 1.33 2001/06/14 13:29:30 simonmar Exp $
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# 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
19
# 	These are all build-time things
20

21
GHC_INCLUDE_DIR   	:= $(TOP)/includes
22
23
24
25
26
GHC_COMPILER_DIR  	:= $(TOP)/compiler
GHC_RUNTIME_DIR   	:= $(TOP)/rts
GHC_LIB_DIR	 	:= $(TOP)/lib
GHC_INTERPRETER_DIR 	:= $(TOP)/interpreter

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ---------------------------------------------------
# -- These variables are defined primarily so they can 
# -- be spat into Config.hs by ghc/compiler/Makefile
#
# -- See comments in ghc/compiler/main/SysTools.lhs 


PROJECT_DIR		:= ghc
GHC_DRIVER_DIR	    	:= $(PROJECT_DIR)/driver
GHC_UTILS_DIR	 	:= $(PROJECT_DIR)/utils

GHC_TOUCHY_DIR 		= $(GHC_UTILS_DIR)/touchy

GHC_UNLIT_DIR 		= $(GHC_UTILS_DIR)/unlit
GHC_UNLIT		= unlit$(EXE_SUFFIX)

GHC_MANGLER_DIR 	= $(GHC_DRIVER_DIR)/mangler
GHC_MANGLER		= ghc-asm
45

46
47
GHC_SPLIT_DIR	 	= $(GHC_DRIVER_DIR)/split
GHC_SPLIT		= ghc-split
48

49
50
GHC_SYSMAN    		= $(GHC_RUNTIME_DIR)/parallel/SysMan
GHC_SYSMAN_DIR 		= $(GHC_RUNTIME_DIR)/parallel
51
52
53
54
55
56

ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"

GHC_CP			= "copy /y"
GHC_PERL		= perl
GHC_TOUCHY		= touchy$(EXE_SUFFIX)
57
GHC_RAWCPP		= $(subst -mwin32,,$(RAWCPP))
58
59
60
61
62
63
64
65
66
67
68
#	Don't know why we do this...

else

GHC_CP			= $(CP)
GHC_PERL		= $(PERL)
GHC_TOUCHY		= touch
GHC_RAWCPP		= $(RAWCPP)

endif