[project @ 1997-06-10 18:47:14 by sof]
authorsof <unknown>
Tue, 10 Jun 1997 18:47:14 +0000 (18:47 +0000)
committersof <unknown>
Tue, 10 Jun 1997 18:47:14 +0000 (18:47 +0000)
Build nativeGen/ even if GhcWithHscBuiltViaC is set; fixed mkdependHS flags used when GhcWithHscBuiltViaC is set

ghc/compiler/Makefile

index 16b2b6b..bc9c79b 100644 (file)
@@ -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