1 # $Id: Makefile,v 1.16 2000/04/13 14:11:00 simonmar Exp $
4 include $(TOP)/mk/boilerplate.mk
8 ifeq "$(filter dll,$(WAYS))" "dll"
14 LIBRARY=libHS_cbits$(_way).a
16 C_SRCS= $(wildcard *.c)
18 C_OBJS = $(C_SRCS:.c=.$(way_)o)
20 SRC_CC_OPTS += -O -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) $(GhcLibCcOpts) -Wall
23 SRC_CC_OPTS += -static
27 all :: DllVersionInfo.o
29 $(DLL_NAME) : DllVersionInfo.o
32 DLL_NAME = HScbits.dll
33 DLL_IMPLIB_NAME = libHS_cbits_imp.a
34 DLL_DESCRIPTION = "Haskell Prelude helpers"
35 SRC_BLD_DLL_OPTS += --export-all --output-def=HScbits.def DllVersionInfo.o
36 SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lgmp -L. -L../../../rts/gmp -L../../../rts
39 # Compile the files using the Haskell compiler (ghc really).
43 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
45 # -----------------------------------------------------------------------------
48 INSTALL_LIBS+=$(LIBRARY)
50 ifeq "$(EnableWin32DLLs)" "YES"
51 INSTALL_PROGS += $(DLL_NAME)
52 INSTALL_LIBS += $(patsubst %.a, %_imp.a, $(LIBRARY))
55 # install header files for the I/O library. Other code might want to
57 override datadir:=$(libdir)/includes
58 INSTALL_DATAS += $(wildcard *.h)
60 include $(TOP)/mk/target.mk