[project @ 1997-08-25 22:40:59 by sof]
[ghc-hetmet.git] / ghc / lib / cbits / Makefile
1 # $Id: Makefile,v 1.5 1997/08/25 22:40:59 sof 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