From 9e1ae303cd9bc8818c9bff2c1eb169a31786854c Mon Sep 17 00:00:00 2001 From: sof Date: Fri, 29 Oct 1999 13:52:30 +0000 Subject: [PATCH] [project @ 1999-10-29 13:52:30 by sof] cbits/ is now also built in a DLL way, if needs be. --- ghc/lib/std/cbits/Makefile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/ghc/lib/std/cbits/Makefile b/ghc/lib/std/cbits/Makefile index db6f643..f78d30a 100644 --- a/ghc/lib/std/cbits/Makefile +++ b/ghc/lib/std/cbits/Makefile @@ -1,22 +1,37 @@ -# $Id: Makefile,v 1.6 1999/10/11 08:38:25 simonmar Exp $ +# $Id: Makefile,v 1.7 1999/10/29 13:52:30 sof Exp $ TOP = ../../.. include $(TOP)/mk/boilerplate.mk + +ifeq "$(filter dll,$(WAYS))" "dll" +override WAYS=dll +else override WAYS= +endif -LIBRARY=libHS_cbits.a +LIBRARY=libHS_cbits$(_way).a INSTALL_LIBS+=$(LIBRARY) C_SRCS= $(wildcard *.c) -C_OBJS = $(C_SRCS:.c=.o) +C_OBJS = $(C_SRCS:.c=.$(way_)o) LIBOBJS = $(C_OBJS) SRC_CC_OPTS += -O -I$(GHC_INCLUDE_DIR) $(GhcLibCcOpts) +ifneq "$(way)" "dll" +SRC_CC_OPTS += -static +endif + +ifeq "$(way)" "dll" +all :: DllVersionInfo.o + +$(DLL_NAME) : DllVersionInfo.o +endif DLL_NAME = HScbits.dll DLL_IMPLIB_NAME = libHScbits_imp.a -SRC_BLD_DLL_OPTS += --export-all --output-def=HScbits.def +DLL_DESCRIPTION = "Haskell Prelude helpers" +SRC_BLD_DLL_OPTS += --export-all --output-def=HScbits.def DllVersionInfo.o SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lgmp -L. -L../../../rts/gmp -L../../../rts # -- 1.7.10.4