From ed31fd91952e3f5d38857d720d774b09f39b44eb Mon Sep 17 00:00:00 2001 From: sof Date: Tue, 10 Jun 1997 18:47:14 +0000 Subject: [PATCH] [project @ 1997-06-10 18:47:14 by sof] Build nativeGen/ even if GhcWithHscBuiltViaC is set; fixed mkdependHS flags used when GhcWithHscBuiltViaC is set --- ghc/compiler/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 16b2b6b..bc9c79b 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -49,13 +49,7 @@ ifeq ($(GhcWithDeforester),YES) endif ifeq ($(GhcWithNativeCodeGen),YES) - ifeq ($(GhcWithHscBuiltViaC),YES) - # If building via C, we *assume* that it is the distributed C files, - # which do not have a native-code generator in them - SRC_MKDEPENDHS_OPTS += -DOMIT_NATIVE_CODEGEN - else - DIRS += nativeGen - endif +DIRS += nativeGen else SRC_HC_OPTS += -DOMIT_NATIVE_CODEGEN endif @@ -143,9 +137,9 @@ SRC_HC_OPTS += -recomp endif ifeq ($(GhcWithDeforester),NO) -ifeq "$(Ghc2_0)" "NO" + ifeq "$(Ghc2_0)" "NO" SRC_MKDEPENDHS_OPTS += -DOMIT_DEFORESTER -endif + endif SRC_HC_OPTS += -DOMIT_DEFORESTER endif @@ -343,7 +337,11 @@ depend :: $(LOOPS) $(SRCS_UGNHS) rename/ParseIface.hs rename/ParseUnfolding.hs r ifeq "$(GhcWithHscBuiltViaC)" "YES" -SRC_MKDEPENDHS_OPTS += -o .hc +ifeq "$(Ghc2_0)" "NO" +SRC_MKDEPENDHS_OPTS += -o hc +else +SRC_MKDEPENDHS_OPTS += -optdep-o -optdephc +endif # When booting from .hc, (hackily) remove the suffix rule for # .l?hs -> .o, so that the .hc -> .o is used instead. %.$(way_)o : %.lhs -- 1.7.10.4