[project @ 1999-10-29 13:55:40 by sof]
[ghc-hetmet.git] / ghc / lib / exts / Makefile
index abc53cf..c988665 100644 (file)
@@ -12,6 +12,8 @@ include $(TOP)/mk/boilerplate.mk
 
 WAYS=$(GhcLibWays)
 
+HC = $(GHC)
+
 #-----------------------------------------------------------------------------
 #      Setting the standard variables
 #
@@ -43,8 +45,6 @@ ifneq "$(way)" ""
 SRC_HC_OPTS += -hisuf $(way_)hi
 endif
 
-# KSW 1998-12: had to increase some of the heap sizes by 2m to 6m for USP
-
 Int_HC_OPTS          += -H20m -fno-prune-tydecls -monly-3-regs
 Word_HC_OPTS         += -H20m -monly-3-regs
 Foreign_HC_OPTS      += -fno-prune-tydecls
@@ -63,8 +63,12 @@ SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR) -optdep--include-prelude -optdep-w $
 
 DLL_NAME = HSexts.dll
 DLL_IMPLIB_NAME = libHSexts_imp.a
-SRC_BLD_DLL_OPTS += --export-all --output-def=HSexts.def
-SRC_BLD_DLL_OPTS += -lwinmm -lHSrts_imp -lHS_cbits_imp -lHS_imp -lgmp -L. -L../../rts/gmp -L../../rts -L../std -L../std/cbits
+SRC_BLD_DLL_OPTS += --export-all --output-def=HSexts.def DllVersionInfo.o
+SRC_BLD_DLL_OPTS += -lwinmm -lHSrts_imp -lHScbits_imp -lHS_imp -lgmp -L. -L../../rts/gmp -L../../rts -L../std -L../std/cbits
+
+ifeq "$(way)" "dll"
+all :: DllVersionInfo.o
+endif
 
 #-----------------------------------------------------------------------------
 #      Installation; need to install .hi files as well as libraries
@@ -83,4 +87,10 @@ override datadir:=$(libdir)/imports/exts
 INSTALL_LIBS  += $(LIBRARY)
 INSTALL_DATAS += $(HS_IFACES)
 
+ifeq "$(EnableWin32DLLs)" "YES"
+INSTALL_PROGS += $(DLL_NAME)
+INSTALL_LIBS  += $(patsubst %.a, %_imp.a, $(LIBRARY)) 
+INSTALL_DATAS += dLL_ifs.hi
+endif
+
 include $(TOP)/mk/target.mk