-# $Id: Makefile,v 1.5 2002/02/06 11:50:31 simonmar Exp $
+# $Id: Makefile,v 1.6 2002/02/14 14:05:48 simonmar Exp $
TOP = ../..
include $(TOP)/mk/boilerplate.mk
HC = $(GHC_INPLACE)
+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
SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB