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