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