[project @ 2000-08-07 23:37:19 by qrczak]
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
index fee12b2..4e43033 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.17 2000/04/13 18:49:21 panne Exp $
+# $Id: Makefile,v 1.23 2000/08/07 16:09:03 rrt Exp $
 
 TOP = ../../..
 include $(TOP)/mk/boilerplate.mk
@@ -29,19 +29,18 @@ all :: DllVersionInfo.o
 $(DLL_NAME) : DllVersionInfo.o
 endif
 
-DLL_NAME = HSstdcbits.dll
+DLL_NAME = HSstd_cbits.dll
 DLL_IMPLIB_NAME = libHSstd_cbits_imp.a
 DLL_DESCRIPTION = "Haskell Prelude helpers"
 SRC_BLD_DLL_OPTS += --export-all --output-def=HSstdcbits.def DllVersionInfo.o
 SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lgmp -L. -L../../../rts/gmp -L../../../rts
+SRC_CC_OPTS += -optc-DCOMPILING_STDLIB
 
 #
 # Compile the files using the Haskell compiler (ghc really).
 # 
 CC=$(GHC_INPLACE)
 
-SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
-
 # -----------------------------------------------------------------------------
 # Installation
 
@@ -49,12 +48,12 @@ INSTALL_LIBS+=$(LIBRARY)
 
 ifeq "$(EnableWin32DLLs)" "YES"
 INSTALL_PROGS  += $(DLL_NAME)
+ifneq "$(way)" "dll"
 INSTALL_LIBS += $(patsubst %.a, %_imp.a, $(LIBRARY))
 endif
+endif
 
-# install header files for the I/O library.  Other code might want to
-# plug 
 override datadir:=$(libdir)/includes
-INSTALL_DATAS += $(wildcard *.h)
+INSTALL_DATAS += HsStd.h stgio.h stgerror.h fileObject.h
 
 include $(TOP)/mk/target.mk