[project @ 2005-02-01 00:52:20 by ross]
[ghc-base.git] / cbits / Makefile
1 # $Id: Makefile,v 1.14 2005/02/01 00:52:22 ross Exp $
2
3 TOP = ../..
4 include $(TOP)/mk/boilerplate.mk
5 -include ../config.mk
6
7 HC = $(GHC_INPLACE)
8
9 UseGhcForCc = YES
10
11 # If there is no system-supplied POSIX regex library, use our own
12 ifneq "$(HavePosixRegex)" "YES"
13 ALL_DIRS      += regex
14 SRC_CC_OPTS   += -Iregex
15 EXCLUDED_SRCS += regex/engine.c
16 endif
17
18 ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
19 EXCLUDED_SRCS += consUtils.c
20 endif
21
22 SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB 
23 SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) -I../include
24
25 LIBRARY = libHSbase_cbits.a
26 LIBOBJS = $(C_OBJS)
27
28 include $(TOP)/mk/target.mk