remove empty dir
[ghc-hetmet.git] / ghc / driver / ghci / Makefile
index eb74961..9392249 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.6 2001/06/27 15:26:56 chak Exp $
+# $Id: Makefile,v 1.11 2005/05/05 00:58:38 sof Exp $
 #
 
 TOP=../..
@@ -27,15 +27,29 @@ endif
 INSTALLED_SCRIPT_PROG  = ghci-$(ProjectVersion)
 INPLACE_SCRIPT_PROG    = ghci-inplace
 
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+C_PROG = ghci
+C_OBJS += ghci.res
+else
+C_SRCS=
+endif
+
 SCRIPT_OBJS      = ghci.sh
 INTERP           = $(SHELL)
 SCRIPT_SUBST_VARS = GHCBIN TOPDIROPT
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
 INSTALL_SCRIPTS  += $(SCRIPT_PROG)
+else
+INSTALL_SCRIPTS  += ghcii.sh
+INSTALL_PROGS    += $(C_PROG)
+endif
 TOPDIROPT        = -B$(GHCLIB)
 
 ifeq "$(INSTALLING)" "1"
 SCRIPT_PROG    =  $(INSTALLED_SCRIPT_PROG)
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
 LINK           =  ghci
+endif
 else
 SCRIPT_PROG    =  $(INPLACE_SCRIPT_PROG)
 endif
@@ -47,5 +61,9 @@ all clean distclean maintainer-clean ::
        $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@
 endif
 
-include $(TOP)/mk/target.mk
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+ghci.res : ghci.rc ghci.ico
+       windres -o ghci.res -i ghci.rc -O coff
+endif
 
+include $(TOP)/mk/target.mk