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