[project @ 1996-07-25 20:43:49 by partain]
[ghc-hetmet.git] / ghc / Jmakefile
1 #define IHaveSubdirs
2
3 /* order in SUBDIRS is not supposed to be important but ...
4         "compiler" must be before "lib", because we use
5         the compiler just built to compile pieces of "lib".
6
7         "includes" also needs to be v early, to ensure that
8         GhcConstants.h is made before needed.
9
10         if we're building from .hc files, we do the libraries
11         first, then the compiler; otherwise the other way around
12
13 */
14 #if HaskellCompilerType == HC_USE_HC_FILES
15 #define __compiler_and_lib lib compiler
16 #else
17 #define __compiler_and_lib compiler lib
18 #endif
19
20 SUBDIRS = includes \
21           utils \
22           driver \
23           runtime \
24           docs \
25           __compiler_and_lib
26
27 /*OUT:    parsers */
28
29 #undef __compiler_and_lib
30
31 /* "CONTRIB" is also a SUBDIR, but there is nothing to build there.
32  */
33
34 /* the standard "whoami" target will give the basic info. */
35 /* this target adds to it. */
36 whoami::
37         @echo using a \`$(BUILDPLATFORM)\' host to build a Haskell compiler to run on a
38         @echo \`$(HOSTPLATFORM)\' host that will generate \`C\' target code