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