[project @ 2002-02-06 10:40:26 by simonmar]
authorsimonmar <unknown>
Wed, 6 Feb 2002 10:40:26 +0000 (10:40 +0000)
committersimonmar <unknown>
Wed, 6 Feb 2002 10:40:26 +0000 (10:40 +0000)
Building the cbits library is simpler with UseGhcForCC=YES.

cbits/Makefile

index 6593040..5b5979a 100644 (file)
@@ -1,23 +1,17 @@
-# $Id: Makefile,v 1.3 2001/08/17 12:50:34 simonmar Exp $
+# $Id: Makefile,v 1.4 2002/02/06 10:40:26 simonmar Exp $
+
+UseGhcForCc = YES
 
 TOP = ../..
 include $(TOP)/mk/boilerplate.mk
 
-PACKAGE = core
-IS_CBITS_LIB = YES
-
-SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB -I../include -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR)
+HC = $(GHC_INPLACE)
 
-ifeq "$(ILXized)" "YES"
-DLLized = YES
-C_SRCS += $(FPTOOLS_TOP)/ghc/rts/StgPrimFloat.c
-else
-C_SRCS := $(filter-out ilxstubs.c,$(C_SRCS))
-endif
+EXCLUDED_SRCS += ilxstubs.c
 
-# -----------------------------------------------------------------------------
-# Installation
+SRC_CC_OPTS += -Wall -DCOMPILING_STDLIB -I$(GHC_RUNTIME_DIR)
 
-INSTALL_DATAS += lockFile.h
+LIBRARY = libHSbase_cbits.a
+LIBOBJS = $(C_OBJS)
 
 include $(TOP)/mk/target.mk