#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.9 2001/10/12 14:28:08 rrt Exp $
+# $Id: Makefile,v 1.11 2005/05/05 00:58:38 sof Exp $
#
TOP=../..
ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
C_PROG = ghci
+C_OBJS += ghci.res
else
C_SRCS=
endif
ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
INSTALL_SCRIPTS += $(SCRIPT_PROG)
else
+INSTALL_SCRIPTS += ghcii.sh
INSTALL_PROGS += $(C_PROG)
endif
TOPDIROPT = -B$(GHCLIB)
$(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@
endif
+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