[project @ 2001-07-31 14:31:28 by simonmar]
[ghc-hetmet.git] / ghc / mk / paths.mk
index e2ca2b1..0dc8604 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: paths.mk,v 1.16 2000/01/10 11:08:04 simonmar Exp $
+# $Id: paths.mk,v 1.36 2001/07/31 14:31:28 simonmar Exp $
 #
 # ghc project specific make variables
 #
@@ -16,45 +16,49 @@ endif
 
 #-----------------------------------------------------------------------------
 # Extra things ``only for'' for the ghc project
+#      These are all build-time things
 
-GHC_DRIVER_DIR         := $(TOP)/driver
+GHC_INCLUDE_DIR        := $(TOP)/includes
 GHC_COMPILER_DIR       := $(TOP)/compiler
 GHC_RUNTIME_DIR        := $(TOP)/rts
 GHC_LIB_DIR            := $(TOP)/lib
-GHC_INCLUDE_DIR        := $(TOP)/includes
-GHC_UTILS_DIR          := $(TOP)/utils
-GHC_INTERPRETER_DIR    := $(TOP)/interpreter
-
-GHC_INPLACE            := $(GHC_DRIVER_DIR)/ghc-inplace
-GHC_HSCPP_DIR          := $(GHC_UTILS_DIR)/hscpp
-GHC_HSCPP              := $(GHC_HSCPP_DIR)/hscpp
-GHC_MKDEPENDHS_DIR     := $(GHC_UTILS_DIR)/mkdependHS
-GHC_MKDEPENDHS                 := $(GHC_MKDEPENDHS_DIR)/mkdependHS-inplace
-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
-
-GHC_UNLIT_DIR          := $(GHC_UTILS_DIR)/unlit
-UNLIT                  := $(GHC_UNLIT_DIR)/unlit
-GHC_UNLIT              := $(GHC_UNLIT_DIR)/unlit
 
-#-----------------------------------------------------------------------------
-# Stuff for the C-compiling phase in particular...
+# ---------------------------------------------------
+# -- 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 
 
-ifeq ($(HaveGcc), YES)
-GHC_OPT_HILEV_ASM              = $(WhatGccIsCalled)
-else
-GHC_OPT_HILEV_ASM              = $(CC)
-endif
 
-#
-# There's no need to compute dependencies when booting from .hc files
-#
-ifneq "$(GhcWithHscBuiltViaC)" "YES"
-MKDEPENDHS_SRCS = $(HS_SRCS)
+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
+
+GHC_SPLIT_DIR          = $(GHC_DRIVER_DIR)/split
+GHC_SPLIT              = ghc-split
+
+GHC_SYSMAN             = $(GHC_RUNTIME_DIR)/parallel/SysMan
+GHC_SYSMAN_DIR                 = $(GHC_RUNTIME_DIR)/parallel
+
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+
+GHC_CP                 = "xcopy /y"
+GHC_PERL               = perl
+GHC_TOUCHY             = touchy$(EXE_SUFFIX)
+
 else
-MKDEPENDHS_SRCS =
+
+GHC_CP                 = $(CP)
+GHC_PERL               = $(PERL)
+GHC_TOUCHY             = touch
+
 endif
+