1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.3 1997/03/14 07:53:55 simonpj Exp $
6 include $(TOP)/mk/boilerplate.mk
8 line = @echo "------------------------------------------------------------------------------"
11 # subdir dependencies:
12 # everything needs utils
13 # includes/ needs driver (to easily c.pile mkNativeGen.c)
14 # make depend except in {utils,driver} needs includes
15 # RTS and compiler need includes
22 @$(MAKE) -C utils boot depend
25 @echo "Booting Driver"
27 @$(MAKE) -C driver boot depend
30 @echo "Booting Includes"
32 @$(MAKE) -C includes boot depend
35 @echo "Booting Runtime System"
37 @$(MAKE) -C runtime boot depend
45 @echo "Booting Compiler"
47 @$(MAKE) -C compiler boot
50 @echo "Booting Prelude libraries"
52 @$(MAKE) -C compiler boot
55 # "CONTRIB" is also a SUBDIR, but there is nothing to build there.
57 # leave out docs for the moment -- SOF
59 # Order is important! driver/ has to come before includes/ which
60 # again has to come before the rest.
62 # If we're booting from .hc files, swap the order
63 # we descend into compiler/ and lib/
65 ifeq "$(GhcWithHscBuiltViaC)" "NO"
66 SUBDIRS = utils driver includes runtime compiler lib
68 SUBDIRS = utils driver includes runtime lib compiler
71 include $(TOP)/mk/target.mk