[project @ 2002-02-16 18:04:28 by simonmar]
[ghc-base.git] / Makefile
index 2f0d41e..5f81619 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.13 2002/02/11 17:30:57 simonmar Exp $
+# $Id: Makefile,v 1.17 2002/02/14 14:08:25 simonmar Exp $
 
 TOP=..
 include $(TOP)/mk/boilerplate.mk
@@ -37,13 +37,24 @@ ALL_DIRS = \
        Text/Regex \
        Text/Show
 
-PKG = base
+PACKAGE = base
 
 SRC_HC_OPTS += -fglasgow-exts -cpp -Iinclude
 SRC_HSC2HS_OPTS += -Iinclude
 
+# Make sure we can get hold of regex.h
+ifneq "$(HavePosixRegex)" "YES"
+SRC_HC_OPTS     += -Icbits/regex
+SRC_HSC2HS_OPTS += -Icbits/regex
+endif
+
+# -----------------------------------------------------------------------------
+# Per-module flags
+
 # ESSENTIAL, for getting reasonable performance from the I/O library:
-GHC/IOBase_HC_OPTS   = -funbox-strict-fields 
+GHC/IOBase_HC_OPTS             = -funbox-strict-fields 
+
+Data/Array/Storable_HC_OPTS    = -funbox-strict-fields
 
 # -----------------------------------------------------------------------------
 # PrimOpWrappers