[project @ 2001-07-05 13:01:14 by rrt]
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
index db6f643..6111a9d 100644 (file)
@@ -1,34 +1,20 @@
-# $Id: Makefile,v 1.6 1999/10/11 08:38:25 simonmar Exp $
+# $Id: Makefile,v 1.30 2001/07/05 13:01:16 rrt Exp $
 
 TOP = ../../..
 include $(TOP)/mk/boilerplate.mk
-override WAYS=
 
-LIBRARY=libHS_cbits.a
-INSTALL_LIBS+=$(LIBRARY)
+PACKAGE = std
+IS_CBITS_LIB = YES
 
-C_SRCS= $(wildcard *.c)
+SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB
 
-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).
-# 
-CC=$(GHC)
+ifeq "$(DLLized)" "YES"
+SRC_CC_OPTS += -dynamic
+endif
 
-SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
+# -----------------------------------------------------------------------------
+# Installation
 
-ifeq "$(EnableWin32DLLs)" "YES"
-INSTALL_PROGS  += $(DLL_NAME)
-INSTALL_LIBS += $(patsubst %.a, %_imp.a, $(LIBRARY))
-endif
+INSTALL_DATAS += lockFile.h
 
 include $(TOP)/mk/target.mk