[project @ 2001-11-06 11:05:22 by simonmar]
[ghc-hetmet.git] / ghc / compiler / Makefile
index 8cd1ea1..a03cfb6 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.195 2001/10/23 16:47:30 rrt Exp $
+# $Id: Makefile,v 1.197 2001/11/06 11:05:22 simonmar Exp $
 
 TOP = ..
 include $(TOP)/mk/boilerplate.mk
@@ -90,7 +90,7 @@ CLEAN_FILES += $(CONFIG_HS)
 DIRS = \
   utils basicTypes types hsSyn prelude rename typecheck deSugar coreSyn \
   specialise simplCore stranal stgSyn simplStg codeGen absCSyn main \
-  profiling parser usageSP cprAnalysis javaGen compMan
+  profiling parser usageSP cprAnalysis compMan
 
 ifeq ($(GhcWithNativeCodeGen),YES)
 DIRS += nativeGen
@@ -103,6 +103,11 @@ DIRS += ilxGen
 SRC_HC_OPTS += -DILX
 endif
 
+ifeq ($(GhcWithJavaGen),YES)
+DIRS += javaGen
+SRC_HC_OPTS += -DJAVA
+endif
+
 #
 # Canonicalize the GHC version number - assume it is has the form x.yy.[z] or 
 # x.yy[.date] where date = yyyymmdd
@@ -304,7 +309,7 @@ main/SysTools_HC_OPTS               = -fno-cse
 # compiler doesn't realise that the stcall foreign imports are indeed
 # stdcall, and doesn't generate the Foo@8 name for them
 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
-main/SysTools_HC_OPTS          += '-\#include <windows.h>'
+main/SysTools_HC_OPTS          += '-\#include <windows.h>' '-\#include <process.h>'
 endif
 
 # ----------------------------------------------------------------------------