[project @ 2005-02-15 08:09:43 by ross]
[ghc-base.git] / cbits / Makefile
index d1c450c..b1bbba6 100644 (file)
@@ -1,20 +1,28 @@
-# $Id: Makefile,v 1.1 2001/06/28 14:15:04 simonmar Exp $
+# $Id: Makefile,v 1.14 2005/02/01 00:52:22 ross Exp $
 
-TOP = ../../..
+TOP = ../..
 include $(TOP)/mk/boilerplate.mk
+-include ../config.mk
 
-HSLIB = core
-IS_CBITS_LIB = YES
+HC = $(GHC_INPLACE)
 
-SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB -I../include -I../../../ghc/includes -I../../../ghc/rts
+UseGhcForCc = YES
 
-ifeq "$(DLLized)" "YES"
-SRC_CC_OPTS += -dynamic
+# 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
 endif
 
-# -----------------------------------------------------------------------------
-# Installation
+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
 
-INSTALL_DATAS += lockFile.h
+LIBRARY = libHSbase_cbits.a
+LIBOBJS = $(C_OBJS)
 
 include $(TOP)/mk/target.mk