9001b8948be43a2151cc3471d96e28291dc214c5
[ghc-base.git] / cbits / Makefile
1 # $Id: Makefile,v 1.13 2004/11/10 11:27:54 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 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