[project @ 1998-12-02 13:17:09 by simonm]
[ghc-hetmet.git] / ghc / Makefile
1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.8 1998/12/02 13:17:13 simonm Exp $
3 #
4
5 TOP=.
6 include $(TOP)/mk/boilerplate.mk
7
8 #
9 # subdir dependencies:
10 #       everything needs utils
11 #       includes/ needs driver (to easily c.pile mkNativeGen.c)
12 #       make depend except in {utils,driver} needs includes     
13 #       RTS and compiler need includes
14 #
15
16 #
17 # Order is important! driver/ has to come before includes/ which
18 # again has to come before the rest.
19 #
20 # If we're booting from .hc files, swap the order
21 # we descend into compiler/ and lib/
22 #
23 ifeq "$(GhcWithHscBuiltViaC)" "NO"
24 SUBDIRS = utils driver includes rts docs compiler lib
25 else
26 SUBDIRS = utils driver includes rts docs lib compiler
27 endif
28
29 # Easier to copy
30 ifeq "$(BIN_DIST)" "1"
31 SUBDIRS := $(filter-out docs,$(SUBDIRS))
32 endif
33
34 include $(TOP)/mk/target.mk