# -----------------------------------------------------------------------------
-# $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
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
# 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)