summaryrefslogtreecommitdiff
path: root/gcc/m2/config-lang.in
blob: 4e6de178b615c891bc7683389820626bc836127f (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Top level configure fragment for GNU Modula-2.
# Copyright (C) 2000-2022 Free Software Foundation, Inc.

# This file is part of GCC.

# GCC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.

# GCC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3.  If not see
# <http://www.gnu.org/licenses/>.

# Configure looks for the existence of this file to auto-config each language.
# We define several parameters used by configure:
#
# language	- name of language as it would appear in $(LANGUAGES)
# compilers	- value to add to $(COMPILERS)
# stagestuff	- files to add to $(STAGESTUFF)

language="m2"

compilers="cc1gm2\$(exeext) gm2l\$(exeext) gm2lcc\$(exeext) \
           gm2lgen\$(exeext) gm2lsub\$(exeext) gm2cc\$(exeext) \
           gm2lorder\$(exeext)"

stagestuff="gm2\$(exeext) cc1gm2\$(exeext) gm2l\$(exeext) \
            gm2lcc\$(exeext) gm2lgen\$(exeext) gm2lsub\$(exeext) cc1gm2-cross\$(exeext)"

target_libs="target-libstdc++-v3 target-libgm2"

# The Modula-2 frontend needs C++ to compile the main, so we need to build the C++
# compiler during stage 1.
lang_requires_boot_languages=c++

# Do not build by default.
build_by_default="no"

gtfiles="\$(srcdir)/m2/gm2-lang.cc \
         \$(srcdir)/m2/gm2-lang.h \
         \$(srcdir)/m2/gm2-gcc/rtegraph.cc \
         \$(srcdir)/m2/gm2-gcc/m2block.cc \
         \$(srcdir)/m2/gm2-gcc/m2builtins.cc \
         \$(srcdir)/m2/gm2-gcc/m2decl.cc \
         \$(srcdir)/m2/gm2-gcc/m2except.cc \
         \$(srcdir)/m2/gm2-gcc/m2expr.cc \
         \$(srcdir)/m2/gm2-gcc/m2statement.cc \
         \$(srcdir)/m2/gm2-gcc/m2type.cc"

outputs=" \
         m2/config-make \
         m2/www/Makefile \
        "

mkdir -p m2/gm2-compiler-boot
mkdir -p m2/gm2-libs-boot
mkdir -p m2/gm2-ppg-boot
mkdir -p m2/gm2-pge-boot
mkdir -p m2/gm2-pg-boot
mkdir -p m2/gm2-ici-boot
mkdir -p m2/gm2-ici
mkdir -p m2/gm2-libiberty
mkdir -p m2/gm2-gcc
mkdir -p m2/gm2-auto
mkdir -p m2/gm2-compiler
mkdir -p m2/gm2-libs
mkdir -p m2/gm2-libs-iso
mkdir -p m2/gm2-compiler-paranoid
mkdir -p m2/gm2-libs-paranoid
mkdir -p m2/gm2-compiler-verify
mkdir -p m2/boot-bin
mkdir -p m2/gm2-libs-pim
mkdir -p m2/gm2-libs-coroutines
mkdir -p m2/gm2-libs-min
mkdir -p m2/mc-boot
mkdir -p m2/mc-boot-ch
mkdir -p m2/mc-boot-gen
mkdir -p plugin
mkdir -p stage1/m2 stage2/m2 stage3/m2 stage4/m2