[project @ 1999-09-20 08:36:35 by panne]
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
index f963344..4987493 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.2 1998/12/02 13:27:12 simonm Exp $
+# $Id: Makefile,v 1.5 1999/09/12 16:27:00 sof Exp $
 
 TOP = ../../..
 include $(TOP)/mk/boilerplate.mk
@@ -13,6 +13,12 @@ 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
+SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lgmp -L. -L../../../rts/gmp -L../../../rts
+
 #
 # Compile the files using the Haskell compiler (ghc really).
 # 
@@ -20,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