[project @ 1999-05-05 10:33:13 by sof]
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
1 # $Id: Makefile,v 1.4 1999/05/05 10:33:13 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 C_SRCS= $(wildcard *.c)
11
12 C_OBJS  = $(C_SRCS:.c=.o)
13 LIBOBJS = $(C_OBJS)
14 SRC_CC_OPTS += -O -I$(GHC_INCLUDE_DIR) $(GhcLibCcOpts)
15
16 DLL_NAME = HScbits.dll
17 DLL_IMPLIB_NAME = libHScbits_imp.a
18 SRC_BLD_DLL_OPTS += --export-all --output-def=HScbits.def
19 SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lgmp -L. -L../../../rts/gmp -L../../../rts
20
21 #
22 # Compile the files using the Haskell compiler (ghc really).
23
24 CC=$(HC)
25
26 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
27
28 include $(TOP)/mk/target.mk