[project @ 2001-03-01 12:25:32 by rrt]
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
1 # $Id: Makefile,v 1.25 2001/03/01 12:25:33 rrt Exp $
2
3 TOP = ../../..
4 include $(TOP)/mk/boilerplate.mk
5
6 override WAYS=
7
8 HSLIB = std
9 IS_CBITS_LIB = YES
10
11 C_SRCS= $(wildcard *.c)
12
13 C_OBJS  = $(C_SRCS:.c=.$(way_)o)
14 LIBOBJS = $(C_OBJS)
15 SRC_CC_OPTS += -O $(GhcLibCcOpts) -Wall -optc-DCOMPILING_STDLIB
16 ifeq "$(DLLized)" "YES"
17 SRC_CC_OPTS += -dynamic
18 endif
19
20 #
21 # Compile the files using the Haskell compiler (ghc really).
22
23 CC=$(GHC_INPLACE)
24
25 # -----------------------------------------------------------------------------
26 # Installation
27
28 override datadir:=$(libdir)/includes
29 INSTALL_DATAS += HsStd.h stgio.h stgerror.h fileObject.h
30
31 include $(TOP)/mk/target.mk