projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-02-01 00:52:20 by ross]
[ghc-base.git]
/
cbits
/
Makefile
diff --git
a/cbits/Makefile
b/cbits/Makefile
index
6593040
..
b1bbba6
100644
(file)
--- a/
cbits/Makefile
+++ b/
cbits/Makefile
@@
-1,23
+1,28
@@
-# $Id: Makefile,v 1.3 2001/08/17 12:50:34 simonmar Exp $
+# $Id: Makefile,v 1.14 2005/02/01 00:52:22 ross Exp $
TOP = ../..
include $(TOP)/mk/boilerplate.mk
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_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR)
+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
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
include $(TOP)/mk/target.mk