blob: f6bae9dd7349b76c4f85ee3c8e97b3c62c227f58 (
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
30
31
32
33
34
35
36
37
38
|
#define IHaveSubdirs
/* order in SUBDIRS is not supposed to be important but ...
"compiler" must be before "lib", because we use
the compiler just built to compile pieces of "lib".
"includes" also needs to be v early, to ensure that
GhcConstants.h is made before needed.
if we're building from .hc files, we do the libraries
first, then the compiler; otherwise the other way around
*/
#if HaskellCompilerType == HC_USE_HC_FILES
#define __compiler_and_lib lib compiler
#else
#define __compiler_and_lib compiler lib
#endif
SUBDIRS = includes \
utils \
driver \
runtime \
docs \
__compiler_and_lib
/*OUT: parsers */
#undef __compiler_and_lib
/* "CONTRIB" is also a SUBDIR, but there is nothing to build there.
*/
/* the standard "whoami" target will give the basic info. */
/* this target adds to it. */
whoami::
@echo using a \`$(BUILDPLATFORM)\' host to build a Haskell compiler to run on a
@echo \`$(HOSTPLATFORM)\' host that will generate \`C\' target code
|