[project @ 2002-03-04 17:02:43 by simonmar]
[ghc-base.git] / Makefile
index 921a945..054ca7e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.14 2002/02/12 10:52:47 simonmar Exp $
+# $Id: Makefile,v 1.19 2002/03/04 17:02:43 simonmar Exp $
 
 TOP=..
 include $(TOP)/mk/boilerplate.mk
@@ -42,8 +42,17 @@ 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 
+SRC_HC_OPTS += -funbox-strict-fields
 
 # -----------------------------------------------------------------------------
 # PrimOpWrappers
@@ -60,9 +69,10 @@ CLEAN_FILES += GHC/PrimopWrappers.hs
 # GHC/Prim.hi-boot
 
 GHC/Prim.$(way_)hi     : GHC/Prim.hi-boot
-       cp $< $@
+       -$(GHC_INPLACE) --compile-iface $<
 
 ALL_PRIMS = GHC/Prim.hi $(foreach way, $(WAYS), GHC/Prim.$(way)_hi)
+INSTALL_DATAS_WITH_DIRS += GHC/Prim.$(way_)hi
 
 lib  : $(ALL_PRIMS)