[project @ 2001-06-14 13:29:30 by simonmar]
[ghc-hetmet.git] / ghc / mk / paths.mk
1 # -----------------------------------------------------------------------------
2 # $Id: paths.mk,v 1.33 2001/06/14 13:29:30 simonmar Exp $
3 #
4 # ghc project specific make variables
5 #
6
7 #-----------------------------------------------------------------------------
8 # HsTags
9
10 ifdef UseInstalledUtils
11 HSTAGS                  = hstags
12 else
13 HSTAGS                  = $(HSTAGS_DIR)/hstags
14 HSTAGS_DIR              = $(GHC_UTILS_DIR)/hstags
15 endif
16
17 #-----------------------------------------------------------------------------
18 # Extra things ``only for'' for the ghc project
19 #       These are all build-time things
20
21 GHC_INCLUDE_DIR         := $(TOP)/includes
22 GHC_COMPILER_DIR        := $(TOP)/compiler
23 GHC_RUNTIME_DIR         := $(TOP)/rts
24 GHC_LIB_DIR             := $(TOP)/lib
25 GHC_INTERPRETER_DIR     := $(TOP)/interpreter
26
27 # ---------------------------------------------------
28 # -- These variables are defined primarily so they can 
29 # -- be spat into Config.hs by ghc/compiler/Makefile
30 #
31 # -- See comments in ghc/compiler/main/SysTools.lhs 
32
33
34 PROJECT_DIR             := ghc
35 GHC_DRIVER_DIR          := $(PROJECT_DIR)/driver
36 GHC_UTILS_DIR           := $(PROJECT_DIR)/utils
37
38 GHC_TOUCHY_DIR          = $(GHC_UTILS_DIR)/touchy
39
40 GHC_UNLIT_DIR           = $(GHC_UTILS_DIR)/unlit
41 GHC_UNLIT               = unlit$(EXE_SUFFIX)
42
43 GHC_MANGLER_DIR         = $(GHC_DRIVER_DIR)/mangler
44 GHC_MANGLER             = ghc-asm
45
46 GHC_SPLIT_DIR           = $(GHC_DRIVER_DIR)/split
47 GHC_SPLIT               = ghc-split
48
49 GHC_SYSMAN              = $(GHC_RUNTIME_DIR)/parallel/SysMan
50 GHC_SYSMAN_DIR          = $(GHC_RUNTIME_DIR)/parallel
51
52 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
53
54 GHC_CP                  = "copy /y"
55 GHC_PERL                = perl
56 GHC_TOUCHY              = touchy$(EXE_SUFFIX)
57 GHC_RAWCPP              = $(subst -mwin32,,$(RAWCPP))
58 #       Don't know why we do this...
59
60 else
61
62 GHC_CP                  = $(CP)
63 GHC_PERL                = $(PERL)
64 GHC_TOUCHY              = touch
65 GHC_RAWCPP              = $(RAWCPP)
66
67 endif
68