[project @ 2001-07-05 13:01:14 by rrt]
[ghc-hetmet.git] / ghc / lib / std / cbits / Makefile
index b330b62..6111a9d 100644 (file)
@@ -1,30 +1,20 @@
-# $Id: Makefile,v 1.1 1998/02/02 17:34:22 simonm 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
 
-SRCS= $(wildcard *.lc)
+SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB
 
-C_SRCS  = $(SRCS:.lc=.c)
-C_OBJS  = $(C_SRCS:.c=.o)
-LIBOBJS = $(C_OBJS)
-SRC_CC_OPTS = -O -I$(GHC_INCLUDE_DIR)
+ifeq "$(DLLized)" "YES"
+SRC_CC_OPTS += -dynamic
+endif
 
-#
-# Compile the files using the Haskell compiler (ghc really).
-# 
-CC=$(HC)
+# -----------------------------------------------------------------------------
+# Installation
 
-#
-# Remove the intermediate .c files
-# (the .o's will be removed automatically by default mk setup)
-#
-CLEAN_FILES += $(C_SRCS)
-
-SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
+INSTALL_DATAS += lockFile.h
 
 include $(TOP)/mk/target.mk