[project @ 2003-09-24 11:06:54 by simonmar]
[haskell-directory.git] / cbits / Makefile
1 # $Id: Makefile,v 1.8 2002/07/18 22:01:07 sof Exp $
2
3 TOP = ../..
4 include $(TOP)/mk/boilerplate.mk
5
6 HC = $(GHC_INPLACE)
7
8 ifneq "$(HavePosixRegex)" "YES"
9 ALL_DIRS      += regex
10 SRC_CC_OPTS   += -Iregex
11 EXCLUDED_SRCS += regex/engine.c
12 endif
13
14 EXCLUDED_SRCS += ilxstubs.c
15
16 ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
17 EXCLUDED_SRCS += consUtils.c
18 endif
19
20 SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB 
21 SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) -I../include
22
23 LIBRARY = libHSbase_cbits.a
24 LIBOBJS = $(C_OBJS)
25
26 include $(TOP)/mk/target.mk