-# $Id: Makefile,v 1.6 2002/02/14 14:05:48 simonmar Exp $
+# $Id: Makefile,v 1.13 2004/11/10 11:27:54 simonmar Exp $
TOP = ../..
include $(TOP)/mk/boilerplate.mk
HC = $(GHC_INPLACE)
+UseGhcForCc = YES
+
+# If there is no system-supplied POSIX regex library, use our own
ifneq "$(HavePosixRegex)" "YES"
ALL_DIRS += regex
SRC_CC_OPTS += -Iregex
EXCLUDED_SRCS += regex/engine.c
-INSTALL_DATAS += regex/regex.h
endif
-EXCLUDED_SRCS += ilxstubs.c
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+EXCLUDED_SRCS += consUtils.c
+endif
SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB
SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) -I../include