summaryrefslogtreecommitdiff
path: root/ghc/Makefile
blob: 422df022c291194f09e44664b54b208b9ef1858a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.5 1997/03/19 20:44:51 simonpj Exp $
#

TOP=.
include $(TOP)/mk/boilerplate.mk

#
# subdir dependencies:
#	everything needs utils
#	includes/ needs driver (to easily c.pile mkNativeGen.c)
#	make depend except in {utils,driver} needs includes	
#	RTS and compiler need includes
#

#
# Order is important! driver/ has to come before includes/ which
# again has to come before the rest.
#
# If we're booting from .hc files, swap the order
# we descend into compiler/ and lib/
#
ifeq "$(GhcWithHscBuiltViaC)" "NO"
SUBDIRS = utils driver includes runtime compiler lib
else
SUBDIRS = utils driver includes runtime lib compiler
endif

include $(TOP)/mk/target.mk