From: sof Date: Sun, 12 Sep 1999 16:27:00 +0000 (+0000) Subject: [project @ 1999-09-12 16:27:00 by sof] X-Git-Tag: Approximately_9120_patches~5825 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4bdb78dfaee6bb8601862ae86f12c19478628a76;p=ghc-hetmet.git [project @ 1999-09-12 16:27:00 by sof] If DLL support enabled, add import libs to INSTALL_LIBS + DLL to INSTALL_PROGS --- diff --git a/ghc/lib/std/cbits/Makefile b/ghc/lib/std/cbits/Makefile index 76ed405..4987493 100644 --- a/ghc/lib/std/cbits/Makefile +++ b/ghc/lib/std/cbits/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.4 1999/05/05 10:33:13 sof Exp $ +# $Id: Makefile,v 1.5 1999/09/12 16:27:00 sof Exp $ TOP = ../../.. include $(TOP)/mk/boilerplate.mk @@ -13,6 +13,7 @@ C_OBJS = $(C_SRCS:.c=.o) LIBOBJS = $(C_OBJS) SRC_CC_OPTS += -O -I$(GHC_INCLUDE_DIR) $(GhcLibCcOpts) + DLL_NAME = HScbits.dll DLL_IMPLIB_NAME = libHScbits_imp.a SRC_BLD_DLL_OPTS += --export-all --output-def=HScbits.def @@ -25,4 +26,9 @@ CC=$(HC) SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) +ifeq "$(EnableWin32DLLs)" "YES" +INSTALL_PROGS += $(DLL_NAME) +INSTALL_LIBS += $(patsubst %.a, %_imp.a, $(LIBRARY)) +endif + include $(TOP)/mk/target.mk