1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.2 1996/11/21 16:46:26 simonm Exp $
5 include $(TOP)/ghc/mk/ghc.mk
7 line = @echo "------------------------------------------------------------------------------"
11 @echo "Building Libraries"
13 @$(MAKE) -C lib depend all
18 @echo "Building Compiler"
20 @$(MAKE) -C compiler depend all
24 # everything needs utils
25 # includes needs driver (for mkNativeGen.c)
26 # make depend except in {utils,driver} needs includes
27 # RTS and compiler need includes
31 @echo "Building Utils"
33 @$(MAKE) -C utils depend all
36 @echo "Building Driver"
38 @$(MAKE) -C driver all
41 @echo "Building Includes"
43 @$(MAKE) -C includes all
46 @echo "Building Runtime System"
48 @$(MAKE) -C runtime depend all
53 @$(MAKE) -C docs depend all
55 ifeq ($(HaskellCompilerType), HC_USE_HC_FILES)
63 # "CONTRIB" is also a SUBDIR, but there is nothing to build there.
64 SUBDIRS = utils driver includes runtime docs compiler lib
66 # Make the required directories for install.
69 $(MKDIRHIER) $(INSTBINDIR_GHC)
70 $(MKDIRHIER) $(INSTSCRIPTDIR_GHC)
71 $(MKDIRHIER) $(INSTLIBDIR_GHC)
72 $(MKDIRHIER) $(INSTLIBDIR_GHC)/includes
73 $(MKDIRHIER) $(INSTDATADIR_GHC)
74 $(MKDIRHIER) $(INSTDATADIR_GHC)/includes
75 $(MKDIRHIER) $(INSTDATADIR_GHC)/imports
77 install :: install_dirs
79 include $(TOP)/mk/subdir.mk