# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.194 2001/10/23 16:33:27 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
# ----------------------------------------------------------------------------
echo '#!/bin/sh' >>$@
echo exec $(FPTOOLS_TOP_ABS_UNIX)/ghc/compiler/$(HS_PROG) -B$(FPTOOLS_TOP_ABS) '"$$@"' >>$@
chmod 755 $@
-ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
- @$(RM) $@.bat
- echo "@"$(subst /,\\,$(FPTOOLS_TOP_ABS)/ghc/compiler/$(HS_PROG)) "-B$(FPTOOLS_TOP_ABS) %1 %2 %3 %4 %5 %6 %7 %8 %9" >$@.bat
- chmod 755 $@.bat
-endif
CLEAN_FILES += ghc-inplace
# We don't want ghc treated as an ordinary executable,
# but put it together with the libraries.
-# Also don't want any interface files intstalled
+# Also don't want any interface files installed
ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
INSTALL_LIBEXECS += $(HS_PROG)