From 14fef21dcaa7169ea4272f4729ad33f647d62fa3 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 8 Nov 1999 14:45:52 +0000 Subject: [PATCH] [project @ 1999-11-08 14:45:52 by simonmar] Undo previous misguided commit by me --- ghc/driver/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index a92ce63..819b29c 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.25 1999/10/27 09:43:25 simonmar Exp $ +# $Id: Makefile,v 1.26 1999/11/08 14:45:52 simonmar Exp $ # We create two driver scripts: # - one to run in-place in the build tree for building libraries @@ -36,6 +36,15 @@ SCRIPT_OBJS = ghc.prl INTERP=perl +# +# The driver needs to know the options and names for +# all possible ways, so we magically generate the +# the make variable names for them here. +# + +USER_WAY_NAMES = $(foreach way,$(USER_WAYS),WAY_$(way)_NAME) +USER_WAY_OPTS = $(foreach way,$(USER_WAYS),WAY_$(way)_REAL_OPTS) + SCRIPT_SUBST_VARS := \ INSTALLING \ ProjectName ProjectVersion ProjectVersionInt \ @@ -44,7 +53,8 @@ SCRIPT_SUBST_VARS := \ GHC_LIB_DIR GHC_RUNTIME_DIR GHC_INCLUDE_DIR \ GHC_OPT_HILEV_ASM GhcWithNativeCodeGen LeadingUnderscore\ GHC_UNLIT GHC_HSCPP GHC_MKDEPENDHS GHC_HSC GHC_SYSMAN EnableWin32DLLs \ - CP RM CONTEXT_DIFF LibGmp GhcWithRegisterised + CP RM CONTEXT_DIFF LibGmp GhcWithRegisterised \ + USER_WAY_NAMES USER_WAY_OPTS # # When creating a binary distribution, we prefix the driver script -- 1.7.10.4