[project @ 1999-10-29 13:55:40 by sof]
authorsof <unknown>
Fri, 29 Oct 1999 13:57:53 +0000 (13:57 +0000)
committersof <unknown>
Fri, 29 Oct 1999 13:57:53 +0000 (13:57 +0000)
attach version info

ghc/lib/concurrent/Makefile
ghc/lib/exts/Makefile
ghc/lib/misc/Makefile
ghc/lib/misc/cbits/Makefile

index 99f5876..4aa7428 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.8 1999/10/05 10:30:27 simonmar Exp $
+# $Id: Makefile,v 1.9 1999/10/29 13:55:40 sof Exp $
 #
 # Makefile for concurrent libraries.
 #
@@ -48,9 +48,13 @@ SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR)
 
 DLL_NAME = HSconc.dll
 DLL_IMPLIB_NAME = libHSconcurrent_imp.a
-SRC_BLD_DLL_OPTS += --export-all --output-def=HSconc.def
+SRC_BLD_DLL_OPTS += --export-all --output-def=HSconc.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
 #
index 1bf2d90..c988665 100644 (file)
@@ -63,9 +63,13 @@ 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 += --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
 #
index 5852b25..0d99904 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.19 1999/10/05 10:30:28 simonmar Exp $
+# $Id: Makefile,v 1.20 1999/10/29 13:57:52 sof Exp $
 #
 # Makefile for miscellaneous libraries.
 #
@@ -83,9 +83,12 @@ SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR)
 
 DLL_NAME = HSmisc.dll
 DLL_IMPLIB_NAME = libHSmisc_imp.a
-SRC_BLD_DLL_OPTS += --export-all --output-def=HSmisc.def
+SRC_BLD_DLL_OPTS += --export-all --output-def=HSmisc.def DllVersionInfo.o
 SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lHScbits_imp -lHSmisc_cbits_imp -lHS_imp -lHSexts_imp -lgmp -L. -L../../rts/gmp -L../../rts -L../std -L../std/cbits -L../exts -Lcbits
 
+ifeq "$(way)" "dll"
+all :: DllVersionInfo.o
+endif
 
 #-----------------------------------------------------------------------------
 #      Installation; need to install .hi files as well as libraries
index 32a15b8..53ba251 100644 (file)
@@ -3,7 +3,12 @@
 #
 TOP=../../..
 include $(TOP)/mk/boilerplate.mk
+
+ifeq "$(filter dll,$(WAYS))" "dll"
+override WAYS=dll
+else
 override WAYS=
+endif
 
 CC:=$(GHC)
 
@@ -25,14 +30,18 @@ endif
 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
 SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_LIB_DIR)/std/cbits
 
-LIBRARY=libHSmisc_cbits.a
+LIBRARY=libHSmisc_cbits$(_way).a
 LIBOBJS=$(C_OBJS)
 INSTALL_LIBS += $(LIBRARY)
 
 DLL_NAME = HSmisc_cbits.dll
-SRC_BLD_DLL_OPTS += --export-all --output-def=HSmisc_cbits.def
+SRC_BLD_DLL_OPTS += --export-all --output-def=HSmisc_cbits.def DllVersionInfo.o
 SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lHScbits_imp -lgmp -L. -L../../../rts/gmp -L../../../rts -L../../std/cbits
 
+ifeq "$(way)" "dll"
+all :: DllVersionInfo.o
+endif
+
 ifeq "$(EnableWin32DLLs)" "YES"
 INSTALL_PROGS  += $(DLL_NAME)
 INSTALL_LIBS += $(patsubst %.a, %_imp.a, $(LIBRARY))