[project @ 2000-11-07 10:42:55 by simonmar]
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
1 # $Id: Makefile,v 1.24 2000/11/07 10:42:57 simonmar 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 ifneq "$(DLLized)" "YES"
17 SRC_CC_OPTS += -static
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