1 # -----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.11 2002/02/11 12:31:30 simonmar Exp $
5 include $(TOP)/mk/boilerplate.mk
7 # -----------------------------------------------------------------------------
9 SUBDIRS = cbits include
42 SRC_HC_OPTS += -fglasgow-exts -cpp -Iinclude
44 # -----------------------------------------------------------------------------
47 GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt
49 $(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@
51 boot :: GHC/PrimopWrappers.hs
53 CLEAN_FILES += GHC/PrimopWrappers.hs
55 # -----------------------------------------------------------------------------
58 GHC/Prim.$(way_)hi : GHC/Prim.hi-boot
61 ALL_PRIMS = GHC/Prim.hi $(foreach way, $(WAYS), GHC/Prim.$(way)_hi)
67 CLEAN_FILES += $(ALL_PRIMS)
69 SRC_CPP_OPTS += -I$(GHC_INCLUDE_DIR) -traditional
71 # -----------------------------------------------------------------------------
73 include $(TOP)/mk/target.mk