b330b627d5a7f1350697a980d490951cbf0654a4
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
1 # $Id: Makefile,v 1.1 1998/02/02 17:34:22 simonm Exp $
2
3 TOP = ../../..
4 include $(TOP)/mk/boilerplate.mk
5 override WAYS=
6
7 LIBRARY=libHS_cbits.a
8 INSTALL_LIBS+=$(LIBRARY)
9
10 SRCS= $(wildcard *.lc)
11
12 C_SRCS  = $(SRCS:.lc=.c)
13 C_OBJS  = $(C_SRCS:.c=.o)
14 LIBOBJS = $(C_OBJS)
15 SRC_CC_OPTS = -O -I$(GHC_INCLUDE_DIR)
16
17 #
18 # Compile the files using the Haskell compiler (ghc really).
19
20 CC=$(HC)
21
22 #
23 # Remove the intermediate .c files
24 # (the .o's will be removed automatically by default mk setup)
25 #
26 CLEAN_FILES += $(C_SRCS)
27
28 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
29
30 include $(TOP)/mk/target.mk