# -----------------------------------------------------------------------------
# $Id: Makefile,v 1.15 2002/06/20 16:02:03 simonmar Exp $
#
# (c) The GHC Team 1997-1999
#

TOP=../..
include $(TOP)/mk/boilerplate.mk

# Omit regex.c if this system has it in libc already, but don't build an
# empty library in this case, because some GNU ld versions would have a
# tendency of dumping core then.  :-P
ifeq "$(HaveRegex)" "YES"
EXCLUDED_SRCS = regex.c
else
EXCLUDED_SRCS = Regex__silly_ld.c
endif

SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) \
		-I$(GHC_LIB_DIR)/core/include

LIBRARY = libHStext_cbits.a
LIBOBJS = $(C_OBJS)

includedir = $(libdir)/include
INSTALL_INCLUDES = HsText.h

include $(TOP)/mk/target.mk
