1 # -----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.12 2002/02/11 17:10:56 simonmar Exp $
5 include $(TOP)/mk/boilerplate.mk
7 # -----------------------------------------------------------------------------
9 SUBDIRS = cbits include
42 SRC_HC_OPTS += -fglasgow-exts -cpp -Iinclude
43 SRC_HSC2HS_OPTS += -Iinclude
45 # ESSENTIAL, for getting reasonable performance from the I/O library:
46 GHC/IOBase_HC_OPTS = -funbox-strict-fields
48 # -----------------------------------------------------------------------------
51 GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt
53 $(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@
55 boot :: GHC/PrimopWrappers.hs
57 CLEAN_FILES += GHC/PrimopWrappers.hs
59 # -----------------------------------------------------------------------------
62 GHC/Prim.$(way_)hi : GHC/Prim.hi-boot
65 ALL_PRIMS = GHC/Prim.hi $(foreach way, $(WAYS), GHC/Prim.$(way)_hi)
71 CLEAN_FILES += $(ALL_PRIMS)
73 SRC_CPP_OPTS += -I$(GHC_INCLUDE_DIR) -traditional
75 # -----------------------------------------------------------------------------
77 include $(TOP)/mk/target.mk