[project @ 2005-02-01 00:52:20 by ross]
[ghc-base.git] / cbits / Makefile
index ba63727..b1bbba6 100644 (file)
@@ -1,23 +1,28 @@
-# $Id: Makefile,v 1.2 2001/07/31 11:51:09 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
 
-PACKAGE = 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 "$(ILXized)" "YES"
-DLLized = YES
-C_SRCS += $(FPTOOLS_TOP)/ghc/rts/StgPrimFloat.c
-else
-C_SRCS := $(filter-out ilxstubs.c,$(C_SRCS))
+# 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