[project @ 1996-11-21 16:45:53 by simonm]
[ghc-hetmet.git] / ghc / lib / cbits / Makefile
1 # $Id: Makefile,v 1.2 1996/11/21 16:47:46 simonm Exp $
2
3 TOP = ../../..
4 UnlitSuffixRules = YES
5 include $(TOP)/ghc/mk/ghc.mk
6
7 ARCHIVE=libHS_cbits.a
8 DESTDIR=$(INSTLIBDIR_GHC)
9
10 SRCS=\
11 closeFile.lc            createDirectory.lc              \
12 errno.lc                fileEOF.lc                      \
13 fileGetc.lc             fileLookAhead.lc                \
14 filePosn.lc             filePutc.lc                     \
15 fileSize.lc             flushFile.lc                    \
16 getBufferMode.lc        getCurrentDirectory.lc          \
17 getDirectoryContents.lc getLock.lc                      \
18 inputReady.lc           openFile.lc                     \
19 readFile.lc             removeDirectory.lc              \
20 removeFile.lc           renameDirectory.lc              \
21 renameFile.lc           seekFile.lc                     \
22 setBuffering.lc         setCurrentDirectory.lc          \
23 system.lc               writeFile.lc
24
25 LIBOBJS = $(patsubst %.lc, %.o, $(SRCS))
26
27 %.o : %.c
28         @$(RM) $@
29         $(GHC) $(GHCFLAGS) -c $< -o $@
30
31 clean ::
32         $(RM) $(SRCS:.lc=.c)
33
34 C_DEP_SRCS = $(SRCS) 
35 MKDEPENDC_OPTS = -I$(GHC_INCLUDES)
36
37 include $(TOP)/mk/lib.mk