Makefile 569 Bytes
Newer Older
sof's avatar
sof committed
1
# $Id: Makefile,v 1.4 1997/03/24 04:37:06 sof Exp $
sof's avatar
sof committed
2
3
4

TOP = ../..
include $(TOP)/mk/boilerplate.mk
sof's avatar
sof committed
5
override WAYS=
sof's avatar
sof committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

LIBRARY=libHS_cbits.a
INSTALL_LIBS+=$(LIBRARY)

SRCS= $(wildcard *.lc)

C_SRCS  = $(SRCS:.lc=.c)
C_OBJS  = $(C_SRCS:.c=.o)
LIBOBJS = $(C_OBJS)
SRC_CC_OPTS = -I$(GHC_INCLUDE_DIR)

#
# Compile the files using the Haskell compiler (ghc really).
# 
CC=$(HC)

#
# Remove the intermediate .c files
# (the .o's will be removed automatically by default mk setup)
#
CLEAN_FILES += $(C_SRCS)

SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)

include $(TOP)/mk/target.mk