# -----------------------------------------------------------------------------
-# $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
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
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
# 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
# ----------------------------------------------------------------------------