| 1 |
# Make-maintainer.in subsidiary -*- makefile -*- build support for GNU M2 tools. |
| 2 |
|
| 3 |
# Copyright (C) 2022-2025 Free Software Foundation, Inc. |
| 4 |
|
| 5 |
#This file is part of GCC. |
| 6 |
|
| 7 |
#GCC is free software; you can redistribute it and/or modify |
| 8 |
#it under the terms of the GNU General Public License as published by |
| 9 |
#the Free Software Foundation; either version 3, or (at your option) |
| 10 |
#any later version. |
| 11 |
|
| 12 |
#GCC is distributed in the hope that it will be useful, |
| 13 |
#but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
#GNU General Public License for more details. |
| 16 |
|
| 17 |
#You should have received a copy of the GNU General Public License |
| 18 |
#along with GCC; see the file COPYING3. If not see |
| 19 |
#<http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
# QUIAT=@ |
| 22 |
XGCC = ./xgcc -B./ |
| 23 |
GM2_2 = ./gm2 -B./m2/m2obj2 -g -fm2-g |
| 24 |
|
| 25 |
# m2/ppg$(exeext) is the recursive descent parser generator. |
| 26 |
|
| 27 |
PPG-INTERFACE-C = libc.c mcrts.c Selective.c termios.c \ |
| 28 |
SysExceptions.c wrapc.c \ |
| 29 |
SYSTEM.c errno.c |
| 30 |
|
| 31 |
PPG-INTERFACE-CC = UnixArgs.cc ldtoa.cc dtoa.cc |
| 32 |
|
| 33 |
# Implementation modules found in the gm2-compiler directory. |
| 34 |
|
| 35 |
PPG-MODS = SymbolKey.mod NameKey.mod Lists.mod bnflex.mod Output.mod |
| 36 |
|
| 37 |
PPG-DEFS = SymbolKey.def NameKey.def Lists.def bnflex.def Output.def |
| 38 |
|
| 39 |
# Core library definition modules used by ppg found in the gm2-libs directory. |
| 40 |
|
| 41 |
PPG-LIB-DEFS = Args.def Assertion.def ASCII.def Debug.def \ |
| 42 |
DynamicStrings.def FIO.def Indexing.def IO.def \ |
| 43 |
NumberIO.def PushBackInput.def \ |
| 44 |
M2Dependent.def \ |
| 45 |
M2EXCEPTION.def M2RTS.def \ |
| 46 |
RTExceptions.def \ |
| 47 |
StdIO.def SFIO.def StrIO.def StrLib.def \ |
| 48 |
Storage.def StrCase.def SysStorage.def |
| 49 |
|
| 50 |
# Core library implementation modules used by ppg found in the gm2-libs directory. |
| 51 |
|
| 52 |
PPG-LIB-MODS = ASCII.mod \ |
| 53 |
Args.mod \ |
| 54 |
Assertion.mod \ |
| 55 |
Debug.mod \ |
| 56 |
DynamicStrings.mod \ |
| 57 |
FIO.mod \ |
| 58 |
IO.mod \ |
| 59 |
Indexing.mod \ |
| 60 |
M2Dependent.mod \ |
| 61 |
M2EXCEPTION.mod \ |
| 62 |
M2RTS.mod \ |
| 63 |
NumberIO.mod \ |
| 64 |
PushBackInput.mod \ |
| 65 |
RTExceptions.mod \ |
| 66 |
SFIO.mod \ |
| 67 |
StdIO.mod \ |
| 68 |
Storage.mod \ |
| 69 |
StrCase.mod \ |
| 70 |
StrIO.mod \ |
| 71 |
StrLib.mod \ |
| 72 |
SysStorage.mod |
| 73 |
|
| 74 |
# Program module ppg.mod from which pge.mod is created. ppg.mod is |
| 75 |
# where changes should be made and then you should run pge-maintainer |
| 76 |
# to recreate the C++ version of pge. |
| 77 |
|
| 78 |
PPG-SRC = ppg.mod |
| 79 |
|
| 80 |
# m2/pg$(exext) is the 2nd generation parser generator built from the |
| 81 |
# ebnf src without error recovery |
| 82 |
|
| 83 |
PG-SRC = pg.mod |
| 84 |
PGE-DEF = ASCII.def \ |
| 85 |
Args.def \ |
| 86 |
Assertion.def \ |
| 87 |
bnflex.def \ |
| 88 |
Break.def \ |
| 89 |
COROUTINES.def \ |
| 90 |
CmdArgs.def \ |
| 91 |
Debug.def \ |
| 92 |
DynamicStrings.def \ |
| 93 |
Environment.def \ |
| 94 |
FIO.def \ |
| 95 |
FormatStrings.def \ |
| 96 |
FpuIO.def \ |
| 97 |
IO.def \ |
| 98 |
M2Dependent.def \ |
| 99 |
M2EXCEPTION.def \ |
| 100 |
M2RTS.def \ |
| 101 |
MemUtils.def \ |
| 102 |
NumberIO.def \ |
| 103 |
Output.def \ |
| 104 |
PushBackInput.def \ |
| 105 |
RTExceptions.def \ |
| 106 |
RTco.def \ |
| 107 |
RTentity.def \ |
| 108 |
RTint.def \ |
| 109 |
SArgs.def \ |
| 110 |
SFIO.def \ |
| 111 |
SYSTEM.def \ |
| 112 |
Selective.def \ |
| 113 |
StdIO.def \ |
| 114 |
Storage.def \ |
| 115 |
StrCase.def \ |
| 116 |
StrIO.def \ |
| 117 |
StrLib.def \ |
| 118 |
StringConvert.def \ |
| 119 |
SymbolKey.def \ |
| 120 |
SysExceptions.def \ |
| 121 |
SysStorage.def \ |
| 122 |
TimeString.def \ |
| 123 |
UnixArgs.def \ |
| 124 |
dtoa.def \ |
| 125 |
errno.def \ |
| 126 |
ldtoa.def \ |
| 127 |
libc.def \ |
| 128 |
libm.def \ |
| 129 |
termios.def \ |
| 130 |
wrapc.def \ |
| 131 |
|
| 132 |
PGE-DEPS = Gabort.cc \ |
| 133 |
GArgs.cc \ |
| 134 |
GArgs.h \ |
| 135 |
GASCII.cc \ |
| 136 |
GASCII.h \ |
| 137 |
GAssertion.cc \ |
| 138 |
GAssertion.h \ |
| 139 |
Gbnflex.cc \ |
| 140 |
Gbnflex.h \ |
| 141 |
GBreak.h \ |
| 142 |
GBuiltins.cc \ |
| 143 |
Gcbuiltin.cc \ |
| 144 |
GCmdArgs.h \ |
| 145 |
GDebug.cc \ |
| 146 |
GDebug.h \ |
| 147 |
Gdtoa.cc \ |
| 148 |
Gdtoa.h \ |
| 149 |
GDynamicStrings.cc \ |
| 150 |
GDynamicStrings.h \ |
| 151 |
GEnvironment.h \ |
| 152 |
Gerrno.cc \ |
| 153 |
Gerrno.h \ |
| 154 |
GFIO.cc \ |
| 155 |
GFIO.h \ |
| 156 |
GFormatStrings.h \ |
| 157 |
GFpuIO.h \ |
| 158 |
GIndexing.cc \ |
| 159 |
GIndexing.h \ |
| 160 |
GIO.cc \ |
| 161 |
GIO.h \ |
| 162 |
Gldtoa.cc \ |
| 163 |
Gldtoa.h \ |
| 164 |
Glibc.cc \ |
| 165 |
Glibc.h \ |
| 166 |
Glibm.cc \ |
| 167 |
Glibm.h \ |
| 168 |
GLists.cc \ |
| 169 |
GLists.h \ |
| 170 |
GM2Dependent.cc \ |
| 171 |
GM2Dependent.h \ |
| 172 |
GM2EXCEPTION.cc \ |
| 173 |
GM2EXCEPTION.h \ |
| 174 |
GM2RTS.cc \ |
| 175 |
GM2RTS.h \ |
| 176 |
Gmcrts.cc \ |
| 177 |
Gmcrts.h \ |
| 178 |
GNameKey.cc \ |
| 179 |
GNameKey.h \ |
| 180 |
Gnetwork.h \ |
| 181 |
GNumberIO.cc \ |
| 182 |
GNumberIO.h \ |
| 183 |
GOutput.cc \ |
| 184 |
GOutput.h \ |
| 185 |
Gpge.cc \ |
| 186 |
GPushBackInput.cc \ |
| 187 |
GPushBackInput.h \ |
| 188 |
GRTco.cc \ |
| 189 |
GRTco.h \ |
| 190 |
GRTentity.cc \ |
| 191 |
GRTentity.h \ |
| 192 |
GRTExceptions.cc \ |
| 193 |
GRTExceptions.h \ |
| 194 |
GSArgs.h \ |
| 195 |
GScan.h \ |
| 196 |
GSelective.cc \ |
| 197 |
GSEnvironment.h \ |
| 198 |
GSFIO.cc \ |
| 199 |
GSFIO.h \ |
| 200 |
GStdIO.cc \ |
| 201 |
GStdIO.h \ |
| 202 |
GStorage.cc \ |
| 203 |
GStorage.h \ |
| 204 |
GStrCase.cc \ |
| 205 |
GStrCase.h \ |
| 206 |
GStringConvert.h \ |
| 207 |
GStrIO.cc \ |
| 208 |
GStrIO.h \ |
| 209 |
GStrLib.cc \ |
| 210 |
GStrLib.h \ |
| 211 |
GSymbolKey.cc \ |
| 212 |
GSymbolKey.h \ |
| 213 |
GSysExceptions.cc \ |
| 214 |
GSysExceptions.h \ |
| 215 |
GSysStorage.cc \ |
| 216 |
GSysStorage.h \ |
| 217 |
GSYSTEM.cc \ |
| 218 |
GSYSTEM.h \ |
| 219 |
Gtermios.cc \ |
| 220 |
Gtermios.h \ |
| 221 |
GTimeString.h \ |
| 222 |
GUnixArgs.cc \ |
| 223 |
GUnixArgs.h \ |
| 224 |
Gwrapc.cc \ |
| 225 |
Gwrapc.h |
| 226 |
|
| 227 |
BUILD-PPG-O = $(PPG-INTERFACE-C:%.c=m2/gm2-ppg-boot/$(SRC_PREFIX)%.o) \ |
| 228 |
$(PPG-INTERFACE-CC:%.cc=m2/gm2-ppg-boot/$(SRC_PREFIX)%.o) \ |
| 229 |
$(PPG-MODS:%.mod=m2/gm2-ppg-boot/$(SRC_PREFIX)%.o) \ |
| 230 |
$(PPG-LIB-MODS:%.mod=m2/gm2-ppg-boot/$(SRC_PREFIX)%.o) \ |
| 231 |
$(PPG-SRC:%.mod=m2/gm2-ppg-boot/$(SRC_PREFIX)%.o) |
| 232 |
|
| 233 |
MCC_ARGS= --olang=c++ \ |
| 234 |
--quiet \ |
| 235 |
--h-file-prefix=$(SRC_PREFIX) \ |
| 236 |
-I$(srcdir)/m2/gm2-libs \ |
| 237 |
-I$(srcdir)/m2/gm2-compiler \ |
| 238 |
-I$(srcdir)/m2/gm2-libiberty \ |
| 239 |
-I$(srcdir)/m2/gm2-gcc |
| 240 |
|
| 241 |
MCC=m2/boot-bin/mc$(exeext) $(MCC_ARGS) |
| 242 |
|
| 243 |
BUILD-PPG-LIBS-H = $(PPG-LIB-DEFS:%.def=m2/gm2-ppg-boot/$(SRC_PREFIX)%.h) |
| 244 |
|
| 245 |
BUILD-PPG-H = m2/boot-bin/mc$(exeext) $(BUILD-PPG-LIBS-H) |
| 246 |
|
| 247 |
BUILD-BOOT-PPG-H = $(BUILD-BOOT-H) \ |
| 248 |
m2/gm2-ppg-boot/$(SRC_PREFIX)M2RTS.h \ |
| 249 |
m2/gm2-ppg-boot/$(SRC_PREFIX)M2Dependent.h \ |
| 250 |
$(PGE-DEF:%.def=m2/gm2-ppg-boot/$(SRC_PREFIX)%.h) \ |
| 251 |
$(PPG-DEFS:%.def=m2/gm2-ppg-boot/$(SRC_PREFIX)%.h) \ |
| 252 |
$(PPG-LIB-DEFS:%.def=m2/gm2-ppg-boot/$(SRC_PREFIX)%.h) |
| 253 |
|
| 254 |
# BUILD-BOOT-PPG-H = $(BUILD-BOOT-H) $(PGE-DEF:%.def=m2/gm2-ppg-boot/$(SRC_PREFIX)%.h) |
| 255 |
|
| 256 |
m2/gm2-ppg-boot/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-libs/%.def $(MCDEPS) |
| 257 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 258 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-libs/$*.def |
| 259 |
|
| 260 |
m2/gm2-ppg-boot/$(SRC_PREFIX)libc.o: $(srcdir)/m2/mc-boot-ch/Glibc.c m2/gm2-libs/gm2-libs-host.h |
| 261 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 262 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs -g -c $< -o $@ |
| 263 |
|
| 264 |
m2/gm2-ppg-boot/$(SRC_PREFIX)mcrts.o: $(srcdir)/m2/mc-boot-ch/Gmcrts.c m2/gm2-libs/gm2-libs-host.h |
| 265 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 266 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs -g -c $< -o $@ |
| 267 |
|
| 268 |
m2/gm2-ppg-boot/$(SRC_PREFIX)UnixArgs.o: $(srcdir)/m2/mc-boot-ch/GUnixArgs.cc |
| 269 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 270 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c $< -o $@ |
| 271 |
|
| 272 |
m2/gm2-ppg-boot/$(SRC_PREFIX)Selective.o: $(srcdir)/m2/mc-boot-ch/GSelective.c m2/gm2-libs/gm2-libs-host.h |
| 273 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 274 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -Im2/gm2-libs -g -c $< -o $@ |
| 275 |
|
| 276 |
m2/gm2-ppg-boot/$(SRC_PREFIX)termios.o: $(srcdir)/m2/mc-boot-ch/Gtermios.cc m2/gm2-libs/gm2-libs-host.h |
| 277 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 278 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 279 |
|
| 280 |
m2/gm2-ppg-boot/$(SRC_PREFIX)SysExceptions.o: $(srcdir)/m2/mc-boot-ch/GSysExceptions.c m2/gm2-libs/gm2-libs-host.h |
| 281 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 282 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 283 |
|
| 284 |
m2/gm2-ppg-boot/$(SRC_PREFIX)ldtoa.o: $(srcdir)/m2/mc-boot-ch/Gldtoa.cc m2/gm2-libs/gm2-libs-host.h |
| 285 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 286 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 287 |
|
| 288 |
m2/gm2-ppg-boot/$(SRC_PREFIX)dtoa.o: $(srcdir)/m2/mc-boot-ch/Gdtoa.cc m2/gm2-libs/gm2-libs-host.h |
| 289 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 290 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 291 |
|
| 292 |
m2/gm2-ppg-boot/$(SRC_PREFIX)wrapc.o: $(srcdir)/m2/mc-boot-ch/Gwrapc.c m2/gm2-libs/gm2-libs-host.h |
| 293 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 294 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 295 |
|
| 296 |
m2/gm2-ppg-boot/$(SRC_PREFIX)SYSTEM.o: $(srcdir)/m2/mc-boot-ch/GSYSTEM.c $(BUILD-BOOT-PPG-H) |
| 297 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 298 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c $< -o $@ |
| 299 |
|
| 300 |
m2/gm2-ppg-boot/$(SRC_PREFIX)errno.o: $(srcdir)/m2/mc-boot-ch/Gerrno.cc |
| 301 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 302 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c $< -o $@ |
| 303 |
|
| 304 |
m2/gm2-ppg-boot/$(SRC_PREFIX)M2RTS.o: $(srcdir)/m2/gm2-libs/M2RTS.mod $(MCDEPS) $(BUILD-BOOT-PPG-H) |
| 305 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 306 |
$(MCC) --suppress-noreturn -o=m2/gm2-ppg-boot/$(SRC_PREFIX)M2RTS.cc $(srcdir)/m2/gm2-libs/M2RTS.mod |
| 307 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 308 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 309 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)M2RTS.cc -o $@ |
| 310 |
|
| 311 |
m2/gm2-ppg-boot/$(SRC_PREFIX)SymbolKey.h: $(srcdir)/m2/gm2-compiler/SymbolKey.def $(MCDEPS) |
| 312 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 313 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/SymbolKey.def |
| 314 |
|
| 315 |
m2/gm2-ppg-boot/$(SRC_PREFIX)SymbolKey.o: $(srcdir)/m2/gm2-compiler/SymbolKey.mod \ |
| 316 |
$(MCDEPS) $(BUILD-BOOT-PPG-H) \ |
| 317 |
m2/gm2-ppg-boot/$(SRC_PREFIX)SymbolKey.h |
| 318 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 319 |
$(MCC) --suppress-noreturn -o=m2/gm2-ppg-boot/$(SRC_PREFIX)SymbolKey.cc $(srcdir)/m2/gm2-compiler/SymbolKey.mod |
| 320 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 321 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 322 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)SymbolKey.cc -o $@ |
| 323 |
|
| 324 |
m2/gm2-ppg-boot/$(SRC_PREFIX)NameKey.h: $(srcdir)/m2/gm2-compiler/NameKey.def $(MCDEPS) |
| 325 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 326 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/NameKey.def |
| 327 |
|
| 328 |
m2/gm2-ppg-boot/$(SRC_PREFIX)NameKey.o: $(srcdir)/m2/gm2-compiler/NameKey.mod \ |
| 329 |
$(MCDEPS) $(BUILD-BOOT-PPG-H) \ |
| 330 |
m2/gm2-ppg-boot/$(SRC_PREFIX)NameKey.h |
| 331 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 332 |
$(MCC) --suppress-noreturn -o=m2/gm2-ppg-boot/$(SRC_PREFIX)NameKey.cc $(srcdir)/m2/gm2-compiler/NameKey.mod |
| 333 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 334 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 335 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)NameKey.cc -o $@ |
| 336 |
|
| 337 |
m2/gm2-ppg-boot/$(SRC_PREFIX)Lists.h: $(srcdir)/m2/gm2-compiler/Lists.def $(MCDEPS) |
| 338 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 339 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/Lists.def |
| 340 |
|
| 341 |
m2/gm2-ppg-boot/$(SRC_PREFIX)Lists.o: $(srcdir)/m2/gm2-compiler/Lists.mod \ |
| 342 |
$(MCDEPS) $(BUILD-BOOT-PPG-H) \ |
| 343 |
m2/gm2-ppg-boot/$(SRC_PREFIX)Lists.h |
| 344 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 345 |
$(MCC) --suppress-noreturn -o=m2/gm2-ppg-boot/$(SRC_PREFIX)Lists.cc $(srcdir)/m2/gm2-compiler/Lists.mod |
| 346 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 347 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 348 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)Lists.cc -o $@ |
| 349 |
|
| 350 |
m2/gm2-ppg-boot/$(SRC_PREFIX)Output.h: $(srcdir)/m2/gm2-compiler/Output.def $(MCDEPS) |
| 351 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 352 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/Output.def |
| 353 |
|
| 354 |
m2/gm2-ppg-boot/$(SRC_PREFIX)Output.o: $(srcdir)/m2/gm2-compiler/Output.mod \ |
| 355 |
$(MCDEPS) $(BUILD-BOOT-PPG-H) \ |
| 356 |
m2/gm2-ppg-boot/$(SRC_PREFIX)Output.h |
| 357 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 358 |
$(MCC) --suppress-noreturn -o=m2/gm2-ppg-boot/$(SRC_PREFIX)Output.cc $(srcdir)/m2/gm2-compiler/Output.mod |
| 359 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 360 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 361 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)Output.cc -o $@ |
| 362 |
|
| 363 |
m2/gm2-ppg-boot/$(SRC_PREFIX)bnflex.h: $(srcdir)/m2/gm2-compiler/bnflex.def $(MCDEPS) |
| 364 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 365 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/bnflex.def |
| 366 |
|
| 367 |
m2/gm2-ppg-boot/$(SRC_PREFIX)bnflex.o: $(srcdir)/m2/gm2-compiler/bnflex.mod \ |
| 368 |
$(MCDEPS) $(BUILD-BOOT-PPG-H) \ |
| 369 |
m2/gm2-ppg-boot/$(SRC_PREFIX)bnflex.h |
| 370 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 371 |
$(MCC) --suppress-noreturn -o=m2/gm2-ppg-boot/$(SRC_PREFIX)bnflex.cc $(srcdir)/m2/gm2-compiler/bnflex.mod |
| 372 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 373 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 374 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)bnflex.cc -o $@ |
| 375 |
|
| 376 |
m2/gm2-ppg-boot/$(SRC_PREFIX)RTco.h: $(srcdir)/m2/gm2-libs-iso/RTco.def $(MCDEPS) |
| 377 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 378 |
$(MCC) -o=$@ -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-libs $(srcdir)/m2/gm2-libs-iso/RTco.def |
| 379 |
|
| 380 |
m2/gm2-ppg-boot/$(SRC_PREFIX)RTentity.h: $(srcdir)/m2/gm2-libs-iso/RTentity.def $(MCDEPS) |
| 381 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 382 |
$(MCC) -o=$@ -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-libs $(srcdir)/m2/gm2-libs-iso/RTentity.def |
| 383 |
|
| 384 |
m2/gm2-ppg-boot/$(SRC_PREFIX)RTco.o: $(srcdir)/m2/gm2-libs-iso/RTcodummy.c |
| 385 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 386 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 387 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 388 |
$(INCLUDES) -g -c $< -o $@ |
| 389 |
|
| 390 |
m2/gm2-ppg-boot/$(SRC_PREFIX)RTentity.o: $(srcdir)/m2/gm2-libs-iso/RTentity.mod \ |
| 391 |
$(MCDEPS) $(BUILD-BOOT-PPG-H) \ |
| 392 |
m2/gm2-ppg-boot/$(SRC_PREFIX)RTentity.h |
| 393 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 394 |
$(MCC) --suppress-noreturn -o=m2/gm2-ppg-boot/$(SRC_PREFIX)RTentity.cc $(srcdir)/m2/gm2-libs-iso/RTentity.mod |
| 395 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 396 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 397 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)RTentity.cc -o $@ |
| 398 |
|
| 399 |
m2/gm2-ppg-boot/$(SRC_PREFIX)%.o: $(srcdir)/m2/gm2-libs/%.mod $(MCDEPS) $(BUILD-BOOT-PPG-H) |
| 400 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 401 |
$(MCC) -o=m2/gm2-ppg-boot/$(SRC_PREFIX)$*.cc $(srcdir)/m2/gm2-libs/$*.mod |
| 402 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-ppg-boot -I$(srcdir)/m2/mc-boot \ |
| 403 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 404 |
$(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)$*.cc -o $@ |
| 405 |
|
| 406 |
m2/gm2-ppg-boot/$(SRC_PREFIX)%.o: $(srcdir)/m2/gm2-compiler/%.mod $(MCDEPS) $(BUILD-BOOT-PPG-H) |
| 407 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 408 |
$(MCC) -o=m2/gm2-ppg-boot/$(SRC_PREFIX)$*.cc $(srcdir)/m2/gm2-compiler/$*.mod |
| 409 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot -Im2/gm2-compiler-boot \ |
| 410 |
-Im2/gm2-libs-boot -Im2/gm2-ppg-boot \ |
| 411 |
-I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c m2/gm2-ppg-boot/$(SRC_PREFIX)$*.cc -o $@ |
| 412 |
|
| 413 |
m2/ppg$(exeext): m2/boot-bin/mc $(BUILD-PPG-O) $(BUILD-MC-INTERFACE-O) m2/gm2-ppg-boot/main.o \ |
| 414 |
m2/gm2-libs-boot/RTcodummy.o m2/mc-boot-ch/$(SRC_PREFIX)abort.o |
| 415 |
-test -d m2 || $(mkinstalldirs) m2 |
| 416 |
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(BUILD-PPG-O) m2/gm2-ppg-boot/main.o \ |
| 417 |
m2/gm2-libs-boot/RTcodummy.o m2/mc-boot-ch/$(SRC_PREFIX)abort.o -lm |
| 418 |
|
| 419 |
m2/gm2-ppg-boot/main.o: $(M2LINK) $(srcdir)/m2/init/mcinit |
| 420 |
-test -d m2/gm2-ppg-boot || $(mkinstalldirs) m2/gm2-ppg-boot |
| 421 |
unset CC ; $(M2LINK) -s --langc++ --exit --name mainppginit.cc $(srcdir)/m2/init/ppginit |
| 422 |
mv mainppginit.cc m2/gm2-ppg-boot/main.cc |
| 423 |
$(CXX) $(INCLUDES) -g -c -o $@ m2/gm2-ppg-boot/main.cc |
| 424 |
|
| 425 |
m2/gm2-auto: |
| 426 |
-test -d $@ || $(mkinstalldirs) $@ |
| 427 |
|
| 428 |
c-family/m2pp.o : $(srcdir)/m2/m2pp.cc $(GCC_HEADER_DEPENDENCIES_FOR_M2) |
| 429 |
$(COMPILER) -c -g $(ALL_COMPILERFLAGS) \ |
| 430 |
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) |
| 431 |
|
| 432 |
|
| 433 |
BUILD-PG-O = $(PPG-INTERFACE-C:%.c=m2/gm2-pg-boot/$(SRC_PREFIX)%.o) \ |
| 434 |
$(PPG-INTERFACE-CC:%.cc=m2/gm2-pg-boot/$(SRC_PREFIX)%.o) \ |
| 435 |
$(PPG-MODS:%.mod=m2/gm2-pg-boot/$(SRC_PREFIX)%.o) \ |
| 436 |
$(PPG-LIB-MODS:%.mod=m2/gm2-pg-boot/$(SRC_PREFIX)%.o) \ |
| 437 |
$(PG-SRC:%.mod=m2/gm2-pg-boot/$(SRC_PREFIX)%.o) |
| 438 |
|
| 439 |
BUILD-BOOT-PG-H = $(BUILD-BOOT-H) \ |
| 440 |
m2/gm2-pg-boot/$(SRC_PREFIX)M2RTS.h \ |
| 441 |
m2/gm2-pg-boot/$(SRC_PREFIX)M2Dependent.h \ |
| 442 |
$(PGE-DEF:%.def=m2/gm2-pg-boot/$(SRC_PREFIX)%.h) \ |
| 443 |
$(PPG-DEFS:%.def=m2/gm2-pg-boot/$(SRC_PREFIX)%.h) \ |
| 444 |
$(PPG-LIB-DEFS:%.def=m2/gm2-pg-boot/$(SRC_PREFIX)%.h) |
| 445 |
|
| 446 |
m2/gm2-pg-boot/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-libs/%.def $(MCDEPS) |
| 447 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 448 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-libs/$*.def $< |
| 449 |
|
| 450 |
m2/gm2-pg-boot/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-compiler/%.def $(MCDEPS) |
| 451 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 452 |
$(MCC) -o=$@ -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-compiler $< |
| 453 |
|
| 454 |
m2/gm2-pg-boot/$(SRC_PREFIX)SymbolKey.h: $(srcdir)/m2/gm2-compiler/SymbolKey.def $(MCDEPS) |
| 455 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 456 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/SymbolKey.def |
| 457 |
|
| 458 |
m2/gm2-pg-boot/$(SRC_PREFIX)SymbolKey.o: $(srcdir)/m2/gm2-compiler/SymbolKey.mod \ |
| 459 |
$(MCDEPS) $(BUILD-BOOT-PG-H) \ |
| 460 |
m2/gm2-pg-boot/$(SRC_PREFIX)SymbolKey.h |
| 461 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 462 |
$(MCC) --suppress-noreturn -o=m2/gm2-pg-boot/$(SRC_PREFIX)SymbolKey.cc $(srcdir)/m2/gm2-compiler/SymbolKey.mod |
| 463 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 464 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 465 |
$(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)SymbolKey.cc -o $@ |
| 466 |
|
| 467 |
m2/gm2-pg-boot/$(SRC_PREFIX)NameKey.h: $(srcdir)/m2/gm2-compiler/NameKey.def $(MCDEPS) |
| 468 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 469 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/NameKey.def |
| 470 |
|
| 471 |
m2/gm2-pg-boot/$(SRC_PREFIX)NameKey.o: $(srcdir)/m2/gm2-compiler/NameKey.mod \ |
| 472 |
$(MCDEPS) $(BUILD-BOOT-PG-H) \ |
| 473 |
m2/gm2-pg-boot/$(SRC_PREFIX)NameKey.h |
| 474 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 475 |
$(MCC) --suppress-noreturn -o=m2/gm2-pg-boot/$(SRC_PREFIX)NameKey.cc $(srcdir)/m2/gm2-compiler/NameKey.mod |
| 476 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 477 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 478 |
$(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)NameKey.cc -o $@ |
| 479 |
|
| 480 |
m2/gm2-pg-boot/$(SRC_PREFIX)Lists.h: $(srcdir)/m2/gm2-compiler/Lists.def $(MCDEPS) |
| 481 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 482 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/Lists.def |
| 483 |
|
| 484 |
m2/gm2-pg-boot/$(SRC_PREFIX)Lists.o: $(srcdir)/m2/gm2-compiler/Lists.mod \ |
| 485 |
$(MCDEPS) $(BUILD-BOOT-PG-H) \ |
| 486 |
m2/gm2-pg-boot/$(SRC_PREFIX)Lists.h |
| 487 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 488 |
$(MCC) --suppress-noreturn -o=m2/gm2-pg-boot/$(SRC_PREFIX)Lists.cc $(srcdir)/m2/gm2-compiler/Lists.mod |
| 489 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 490 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 491 |
$(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)Lists.cc -o $@ |
| 492 |
|
| 493 |
m2/gm2-pg-boot/$(SRC_PREFIX)Output.h: $(srcdir)/m2/gm2-compiler/Output.def $(MCDEPS) |
| 494 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 495 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/Output.def |
| 496 |
|
| 497 |
m2/gm2-pg-boot/$(SRC_PREFIX)Output.o: $(srcdir)/m2/gm2-compiler/Output.mod \ |
| 498 |
$(MCDEPS) $(BUILD-BOOT-PG-H) \ |
| 499 |
m2/gm2-pg-boot/$(SRC_PREFIX)Output.h |
| 500 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 501 |
$(MCC) --suppress-noreturn -o=m2/gm2-pg-boot/$(SRC_PREFIX)Output.cc $(srcdir)/m2/gm2-compiler/Output.mod |
| 502 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 503 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 504 |
$(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)Output.cc -o $@ |
| 505 |
|
| 506 |
m2/gm2-pg-boot/$(SRC_PREFIX)bnflex.h: $(srcdir)/m2/gm2-compiler/bnflex.def $(MCDEPS) |
| 507 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 508 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/bnflex.def |
| 509 |
|
| 510 |
m2/gm2-pg-boot/$(SRC_PREFIX)bnflex.o: $(srcdir)/m2/gm2-compiler/bnflex.mod \ |
| 511 |
$(MCDEPS) $(BUILD-BOOT-PG-H) \ |
| 512 |
m2/gm2-pg-boot/$(SRC_PREFIX)bnflex.h |
| 513 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 514 |
$(MCC) --suppress-noreturn -o=m2/gm2-pg-boot/$(SRC_PREFIX)bnflex.cc $(srcdir)/m2/gm2-compiler/bnflex.mod |
| 515 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 516 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 517 |
$(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)bnflex.cc -o $@ |
| 518 |
|
| 519 |
m2/gm2-pg-boot/$(SRC_PREFIX)RTco.h: $(srcdir)/m2/gm2-libs-iso/RTco.def $(MCDEPS) |
| 520 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 521 |
$(MCC) -o=$@ -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-libs $(srcdir)/m2/gm2-libs-iso/RTco.def |
| 522 |
|
| 523 |
m2/gm2-pg-boot/$(SRC_PREFIX)RTentity.h: $(srcdir)/m2/gm2-libs-iso/RTentity.def $(MCDEPS) |
| 524 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 525 |
$(MCC) -o=$@ -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-libs $(srcdir)/m2/gm2-libs-iso/RTentity.def |
| 526 |
|
| 527 |
m2/gm2-pg-boot/$(SRC_PREFIX)RTco.o: $(srcdir)/m2/gm2-libs-iso/RTcodummy.c |
| 528 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 529 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 530 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 531 |
$(INCLUDES) -g -c $< -o $@ |
| 532 |
|
| 533 |
m2/gm2-pg-boot/$(SRC_PREFIX)RTentity.o: $(srcdir)/m2/gm2-libs-iso/RTentity.mod \ |
| 534 |
$(MCDEPS) $(BUILD-BOOT-PG-H) \ |
| 535 |
m2/gm2-pg-boot/$(SRC_PREFIX)RTentity.h |
| 536 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 537 |
$(MCC) --suppress-noreturn -o=m2/gm2-pg-boot/$(SRC_PREFIX)RTentity.cc $(srcdir)/m2/gm2-libs-iso/RTentity.mod |
| 538 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 539 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 540 |
$(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)RTentity.cc -o $@ |
| 541 |
|
| 542 |
m2/gm2-pg-boot/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.c m2/gm2-libs/gm2-libs-host.h $(BUILD-BOOT-PG-H) |
| 543 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 544 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 545 |
|
| 546 |
m2/gm2-pg-boot/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.cc m2/gm2-libs/gm2-libs-host.h $(BUILD-BOOT-PG-H) |
| 547 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 548 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 549 |
|
| 550 |
m2/gm2-pg-boot/$(SRC_PREFIX)M2RTS.o: $(srcdir)/m2/gm2-libs/M2RTS.mod $(MCDEPS) $(BUILD-BOOT-PG-H) |
| 551 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 552 |
$(MCC) --suppress-noreturn -o=m2/gm2-pg-boot/$(SRC_PREFIX)M2RTS.cc $(srcdir)/m2/gm2-libs/M2RTS.mod |
| 553 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 554 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 555 |
$(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)M2RTS.cc -o $@ |
| 556 |
|
| 557 |
m2/gm2-pg-boot/$(SRC_PREFIX)%.o: $(srcdir)/m2/gm2-libs/%.mod $(MCDEPS) $(BUILD-BOOT-PG-H) |
| 558 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 559 |
$(MCC) -o=m2/gm2-pg-boot/$(SRC_PREFIX)$*.c $(srcdir)/m2/gm2-libs/$*.mod |
| 560 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -Im2/gm2-pg-boot -I$(srcdir)/m2/mc-boot \ |
| 561 |
-I$(srcdir)/m2/mc-boot-ch \ |
| 562 |
-Im2/gm2-libs-boot $(INCLUDES) \ |
| 563 |
-g -c m2/gm2-pg-boot/$(SRC_PREFIX)$*.c -o $@ |
| 564 |
|
| 565 |
m2/gm2-pg-boot/$(SRC_PREFIX)%.o: $(srcdir)/m2/gm2-compiler/%.mod $(MCDEPS) $(BUILD-BOOT-PG-H) |
| 566 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 567 |
$(MCC) -o=m2/gm2-pg-boot/$(SRC_PREFIX)$*.c $(srcdir)/m2/gm2-compiler/$*.mod |
| 568 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot -Im2/gm2-compiler-boot -Im2/gm2-libs-boot \ |
| 569 |
-I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)$*.c -o $@ |
| 570 |
|
| 571 |
m2/gm2-pg-boot/$(SRC_PREFIX)pg.o: m2/gm2-auto/pg.mod $(MCDEPS) $(BUILD-BOOT-PG-H) |
| 572 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 573 |
$(MCC) -o=m2/gm2-pg-boot/$(SRC_PREFIX)pg.c m2/gm2-auto/pg.mod |
| 574 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot -Im2/gm2-compiler-boot -Im2/gm2-libs-boot \ |
| 575 |
-I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c m2/gm2-pg-boot/$(SRC_PREFIX)pg.c -o $@ |
| 576 |
|
| 577 |
m2/pg$(exeext): m2/boot-bin/mc \ |
| 578 |
$(BUILD-PG-O) $(GM2-PPG-MODS:%.mod=m2/gm2-pg-boot/%.o) \ |
| 579 |
$(BUILD-MC-INTERFACE-O) m2/gm2-pg-boot/main.o m2/gm2-libs-boot/RTcodummy.o \ |
| 580 |
m2/mc-boot-ch/$(SRC_PREFIX)abort.o |
| 581 |
-test -d m2 || $(mkinstalldirs) m2 |
| 582 |
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(BUILD-PG-O) \ |
| 583 |
m2/gm2-pg-boot/main.o m2/gm2-libs-boot/RTcodummy.o \ |
| 584 |
m2/mc-boot-ch/$(SRC_PREFIX)abort.o -lm |
| 585 |
|
| 586 |
m2/gm2-auto/pginit: |
| 587 |
-test -d m2/gm2-auto || $(mkinstalldirs) m2/gm2-auto |
| 588 |
sed -e 's/ppg/pg/' < $(srcdir)/m2/init/ppginit > $@ |
| 589 |
|
| 590 |
m2/gm2-pg-boot/main.o: m2/gm2-auto/pginit $(M2LINK) |
| 591 |
-test -d m2/gm2-pg-boot || $(mkinstalldirs) m2/gm2-pg-boot |
| 592 |
unset CC ; $(M2LINK) -s --langc++ --exit --name mainpginit.cc m2/gm2-auto/pginit |
| 593 |
mv mainpginit.cc m2/gm2-pg-boot/main.cc |
| 594 |
$(CXX) $(INCLUDES) -g -c -o $@ m2/gm2-pg-boot/main.cc |
| 595 |
|
| 596 |
m2/pg-e$(exeext): m2/pg$(exeext) |
| 597 |
-test -d m2 || $(mkinstalldirs) m2 |
| 598 |
$(CP) m2/pg$(exeext) m2/pg-e$(exeext) |
| 599 |
$(SHELL) $(srcdir)/m2/tools-src/buildpg $(srcdir)/m2/gm2-compiler/ppg.mod pg -e > m2/gm2-auto/t.bnf |
| 600 |
./m2/pg-e$(exeext) -e -l m2/gm2-auto/t.bnf | sed -e 's/t\.bnf/pg\.bnf/' > m2/gm2-auto/t.mod |
| 601 |
$(QUIAT)if ! diff m2/gm2-auto/t.mod m2/gm2-auto/pg.mod > /dev/null ; then \ |
| 602 |
echo "pg failed during self build" ; \ |
| 603 |
exit 1 ; \ |
| 604 |
fi |
| 605 |
$(RM) m2/gm2-auto/t.bnf m2/gm2-auto/t.mod |
| 606 |
|
| 607 |
m2/gm2-auto/pg.mod: m2/ppg$(exeext) |
| 608 |
-test -d m2/gm2-auto || $(mkinstalldirs) m2/gm2-auto |
| 609 |
$(SHELL) $(srcdir)/m2/tools-src/buildpg $(srcdir)/m2/gm2-compiler/ppg.mod pg -e > m2/gm2-auto/pg.bnf |
| 610 |
./m2/ppg$(exeext) -e -l m2/gm2-auto/pg.bnf > m2/gm2-auto/pg.mod |
| 611 |
|
| 612 |
# pge is the recursive descent parser with first/followset error recovery. |
| 613 |
|
| 614 |
PGE-SRC = pge.mod |
| 615 |
|
| 616 |
BUILD-PGE-O = $(PPG-INTERFACE-C:%.c=m2/gm2-pge-boot/$(SRC_PREFIX)%.o) \ |
| 617 |
$(PPG-INTERFACE-CC:%.cc=m2/gm2-pge-boot/$(SRC_PREFIX)%.o) \ |
| 618 |
$(PPG-MODS:%.mod=m2/gm2-pge-boot/$(SRC_PREFIX)%.o) \ |
| 619 |
$(PPG-LIB-MODS:%.mod=m2/gm2-pge-boot/$(SRC_PREFIX)%.o) \ |
| 620 |
$(PGE-SRC:%.mod=m2/gm2-pge-boot/$(SRC_PREFIX)%.o) |
| 621 |
|
| 622 |
BUILD-BOOT-PGE-H = $(BUILD-BOOT-H) $(PGE-DEF:%.def=m2/gm2-pge-boot/$(SRC_PREFIX)%.h) |
| 623 |
PGE-MC-OPTIONS = --gcc-config-system |
| 624 |
|
| 625 |
m2/gm2-auto/pge.mod: m2/pg$(exeext) |
| 626 |
-test -d m2/gm2-auto || $(mkinstalldirs) m2/gm2-auto |
| 627 |
$(SHELL) $(srcdir)/m2/tools-src/buildpg $(srcdir)/m2/gm2-compiler/ppg.mod pge > m2/gm2-auto/pge.bnf |
| 628 |
./m2/pg$(exeext) -l m2/gm2-auto/pge.bnf -o m2/gm2-auto/pge.mod |
| 629 |
|
| 630 |
m2/gm2-pge-boot/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-libs/%.def $(MCDEPS) |
| 631 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 632 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-libs/$*.def |
| 633 |
|
| 634 |
m2/gm2-pge-boot/$(SRC_PREFIX)libc.o: $(srcdir)/m2/mc-boot-ch/Glibc.c m2/gm2-libs/gm2-libs-host.h |
| 635 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 636 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs -g -c $< -o $@ |
| 637 |
|
| 638 |
m2/gm2-pge-boot/$(SRC_PREFIX)mcrts.o: $(srcdir)/m2/mc-boot-ch/Gmcrts.c m2/gm2-libs/gm2-libs-host.h |
| 639 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 640 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs -g -c $< -o $@ |
| 641 |
|
| 642 |
m2/gm2-pge-boot/$(SRC_PREFIX)UnixArgs.o: $(srcdir)/m2/mc-boot-ch/GUnixArgs.cc |
| 643 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 644 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c $< -o $@ |
| 645 |
|
| 646 |
m2/gm2-pge-boot/$(SRC_PREFIX)Selective.o: $(srcdir)/m2/mc-boot-ch/GSelective.c m2/gm2-libs/gm2-libs-host.h |
| 647 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 648 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -Im2/gm2-libs -g -c $< -o $@ |
| 649 |
|
| 650 |
m2/gm2-pge-boot/$(SRC_PREFIX)termios.o: $(srcdir)/m2/mc-boot-ch/Gtermios.cc m2/gm2-libs/gm2-libs-host.h |
| 651 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 652 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 653 |
|
| 654 |
m2/gm2-pge-boot/$(SRC_PREFIX)SysExceptions.o: $(srcdir)/m2/mc-boot-ch/GSysExceptions.c m2/gm2-libs/gm2-libs-host.h |
| 655 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 656 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 657 |
|
| 658 |
m2/gm2-pge-boot/$(SRC_PREFIX)ldtoa.o: $(srcdir)/m2/mc-boot-ch/Gldtoa.cc m2/gm2-libs/gm2-libs-host.h |
| 659 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 660 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 661 |
|
| 662 |
m2/gm2-pge-boot/$(SRC_PREFIX)dtoa.o: $(srcdir)/m2/mc-boot-ch/Gdtoa.cc m2/gm2-libs/gm2-libs-host.h |
| 663 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 664 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 665 |
|
| 666 |
m2/gm2-pge-boot/$(SRC_PREFIX)wrapc.o: $(srcdir)/m2/mc-boot-ch/Gwrapc.c m2/gm2-libs/gm2-libs-host.h |
| 667 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 668 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs $(INCLUDES) -g -c $< -o $@ |
| 669 |
|
| 670 |
m2/gm2-pge-boot/$(SRC_PREFIX)SYSTEM.o: $(srcdir)/m2/mc-boot-ch/GSYSTEM.c $(BUILD-BOOT-PGE-H) |
| 671 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 672 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c $< -o $@ |
| 673 |
|
| 674 |
m2/gm2-pge-boot/$(SRC_PREFIX)errno.o: $(srcdir)/m2/mc-boot-ch/Gerrno.cc |
| 675 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 676 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c $< -o $@ |
| 677 |
|
| 678 |
m2/gm2-pge-boot/$(SRC_PREFIX)M2RTS.o: $(srcdir)/m2/gm2-libs/M2RTS.mod $(MCDEPS) $(BUILD-BOOT-PGE-H) |
| 679 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 680 |
$(MCC) $(PGE-MC-OPTIONS) --suppress-noreturn -o=m2/gm2-pge-boot/$(SRC_PREFIX)M2RTS.cc $(srcdir)/m2/gm2-libs/M2RTS.mod |
| 681 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 682 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 683 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)M2RTS.cc -o $@ |
| 684 |
|
| 685 |
m2/gm2-pge-boot/$(SRC_PREFIX)SymbolKey.h: $(srcdir)/m2/gm2-compiler/SymbolKey.def $(MCDEPS) |
| 686 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 687 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/SymbolKey.def |
| 688 |
|
| 689 |
m2/gm2-pge-boot/$(SRC_PREFIX)SymbolKey.o: $(srcdir)/m2/gm2-compiler/SymbolKey.mod \ |
| 690 |
$(MCDEPS) $(BUILD-BOOT-PGE-H) \ |
| 691 |
m2/gm2-pge-boot/$(SRC_PREFIX)SymbolKey.h |
| 692 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 693 |
$(MCC) $(PGE-MC-OPTIONS) --suppress-noreturn -o=m2/gm2-pge-boot/$(SRC_PREFIX)SymbolKey.cc $(srcdir)/m2/gm2-compiler/SymbolKey.mod |
| 694 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 695 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 696 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)SymbolKey.cc -o $@ |
| 697 |
|
| 698 |
m2/gm2-pge-boot/$(SRC_PREFIX)NameKey.h: $(srcdir)/m2/gm2-compiler/NameKey.def $(MCDEPS) |
| 699 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 700 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/NameKey.def |
| 701 |
|
| 702 |
m2/gm2-pge-boot/$(SRC_PREFIX)NameKey.o: $(srcdir)/m2/gm2-compiler/NameKey.mod \ |
| 703 |
$(MCDEPS) $(BUILD-BOOT-PGE-H) \ |
| 704 |
m2/gm2-pge-boot/$(SRC_PREFIX)NameKey.h |
| 705 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 706 |
$(MCC) $(PGE-MC-OPTIONS) --suppress-noreturn -o=m2/gm2-pge-boot/$(SRC_PREFIX)NameKey.cc $(srcdir)/m2/gm2-compiler/NameKey.mod |
| 707 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 708 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 709 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)NameKey.cc -o $@ |
| 710 |
|
| 711 |
m2/gm2-pge-boot/$(SRC_PREFIX)Lists.h: $(srcdir)/m2/gm2-compiler/Lists.def $(MCDEPS) |
| 712 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 713 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/Lists.def |
| 714 |
|
| 715 |
m2/gm2-pge-boot/$(SRC_PREFIX)Lists.o: $(srcdir)/m2/gm2-compiler/Lists.mod \ |
| 716 |
$(MCDEPS) $(BUILD-BOOT-PGE-H) \ |
| 717 |
m2/gm2-pge-boot/$(SRC_PREFIX)Lists.h |
| 718 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 719 |
$(MCC) $(PGE-MC-OPTIONS) --suppress-noreturn -o=m2/gm2-pge-boot/$(SRC_PREFIX)Lists.cc $(srcdir)/m2/gm2-compiler/Lists.mod |
| 720 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 721 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 722 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)Lists.cc -o $@ |
| 723 |
|
| 724 |
m2/gm2-pge-boot/$(SRC_PREFIX)Output.h: $(srcdir)/m2/gm2-compiler/Output.def $(MCDEPS) |
| 725 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 726 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/Output.def |
| 727 |
|
| 728 |
m2/gm2-pge-boot/$(SRC_PREFIX)Output.o: $(srcdir)/m2/gm2-compiler/Output.mod \ |
| 729 |
$(MCDEPS) $(BUILD-BOOT-PGE-H) \ |
| 730 |
m2/gm2-pge-boot/$(SRC_PREFIX)Output.h |
| 731 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 732 |
$(MCC) $(PGE-MC-OPTIONS) --suppress-noreturn -o=m2/gm2-pge-boot/$(SRC_PREFIX)Output.cc $(srcdir)/m2/gm2-compiler/Output.mod |
| 733 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 734 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 735 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)Output.cc -o $@ |
| 736 |
|
| 737 |
m2/gm2-pge-boot/$(SRC_PREFIX)bnflex.h: $(srcdir)/m2/gm2-compiler/bnflex.def $(MCDEPS) |
| 738 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 739 |
$(MCC) -o=$@ $(srcdir)/m2/gm2-compiler/bnflex.def |
| 740 |
|
| 741 |
m2/gm2-pge-boot/$(SRC_PREFIX)bnflex.o: $(srcdir)/m2/gm2-compiler/bnflex.mod \ |
| 742 |
$(MCDEPS) $(BUILD-BOOT-PGE-H) \ |
| 743 |
m2/gm2-pge-boot/$(SRC_PREFIX)bnflex.h |
| 744 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 745 |
$(MCC) $(PGE-MC-OPTIONS) --suppress-noreturn -o=m2/gm2-pge-boot/$(SRC_PREFIX)bnflex.cc $(srcdir)/m2/gm2-compiler/bnflex.mod |
| 746 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 747 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 748 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)bnflex.cc -o $@ |
| 749 |
|
| 750 |
m2/gm2-pge-boot/$(SRC_PREFIX)RTco.h: $(srcdir)/m2/gm2-libs-iso/RTco.def $(MCDEPS) |
| 751 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 752 |
$(MCC) -o=$@ -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-libs $(srcdir)/m2/gm2-libs-iso/RTco.def |
| 753 |
|
| 754 |
m2/gm2-pge-boot/$(SRC_PREFIX)RTentity.h: $(srcdir)/m2/gm2-libs-iso/RTentity.def $(MCDEPS) |
| 755 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 756 |
$(MCC) -o=$@ -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-libs $(srcdir)/m2/gm2-libs-iso/RTentity.def |
| 757 |
|
| 758 |
m2/gm2-pge-boot/$(SRC_PREFIX)RTco.o: $(srcdir)/m2/gm2-libs-iso/RTcodummy.c |
| 759 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 760 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 761 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 762 |
$(INCLUDES) -g -c $< -o $@ |
| 763 |
|
| 764 |
m2/gm2-pge-boot/$(SRC_PREFIX)RTentity.o: $(srcdir)/m2/gm2-libs-iso/RTentity.mod \ |
| 765 |
$(MCDEPS) $(BUILD-BOOT-PGE-H) \ |
| 766 |
m2/gm2-pge-boot/$(SRC_PREFIX)RTentity.h |
| 767 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 768 |
$(MCC) $(PGE-MC-OPTIONS) --suppress-noreturn -o=m2/gm2-pge-boot/$(SRC_PREFIX)RTentity.cc $(srcdir)/m2/gm2-libs-iso/RTentity.mod |
| 769 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 770 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 771 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)RTentity.cc -o $@ |
| 772 |
|
| 773 |
m2/gm2-pge-boot/$(SRC_PREFIX)%.o: $(srcdir)/m2/gm2-libs/%.mod $(MCDEPS) $(BUILD-BOOT-PGE-H) |
| 774 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 775 |
$(MCC) $(PGE-MC-OPTIONS) -o=m2/gm2-pge-boot/$(SRC_PREFIX)$*.cc $(srcdir)/m2/gm2-libs/$*.mod |
| 776 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/pge-boot -I$(srcdir)/m2/mc-boot \ |
| 777 |
-I$(srcdir)/m2/mc-boot-ch -Im2/gm2-libs-boot \ |
| 778 |
$(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)$*.cc -o $@ |
| 779 |
|
| 780 |
m2/gm2-pge-boot/$(SRC_PREFIX)%.o: $(srcdir)/m2/gm2-compiler/%.mod $(MCDEPS) $(BUILD-BOOT-PGE-H) |
| 781 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 782 |
$(MCC) $(PGE-MC-OPTIONS) -o=m2/gm2-pge-boot/$(SRC_PREFIX)$*.cc $(srcdir)/m2/gm2-compiler/$*.mod |
| 783 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot -Im2/gm2-compiler-boot \ |
| 784 |
-Im2/gm2-libs-boot -Im2/gm2-pge-boot \ |
| 785 |
-I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)$*.cc -o $@ |
| 786 |
|
| 787 |
m2/gm2-pge-boot/$(SRC_PREFIX)pge.o: m2/gm2-auto/pge.mod $(MCDEPS) $(BUILD-BOOT-PGE-H) |
| 788 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 789 |
$(MCC) $(PGE-MC-OPTIONS) -o=m2/gm2-pge-boot/$(SRC_PREFIX)pge.cc m2/gm2-auto/pge.mod |
| 790 |
$(CXX) -I. -I$(srcdir)/../include -I$(srcdir) \ |
| 791 |
-I$(srcdir)/m2/mc-boot -Im2/gm2-compiler-boot -Im2/gm2-libs-boot \ |
| 792 |
-I$(srcdir)/m2/mc-boot-ch $(INCLUDES) -g -c m2/gm2-pge-boot/$(SRC_PREFIX)pge.cc -o $@ |
| 793 |
|
| 794 |
m2/pge$(exeext): m2/boot-bin/mc \ |
| 795 |
$(BUILD-PGE-O) $(GM2-PPG-MODS:%.mod=m2/gm2-pge-boot/%.o) \ |
| 796 |
$(BUILD-MC-INTERFACE-O) m2/gm2-pge-boot/main.o m2/gm2-libs-boot/RTcodummy.o \ |
| 797 |
m2/mc-boot-ch/$(SRC_PREFIX)abort.o |
| 798 |
-test -d m2 || $(mkinstalldirs) m2 |
| 799 |
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(BUILD-PGE-O) \ |
| 800 |
m2/gm2-pge-boot/main.o m2/gm2-libs-boot/RTcodummy.o \ |
| 801 |
m2/mc-boot-ch/$(SRC_PREFIX)abort.o -lm |
| 802 |
$(SHELL) $(srcdir)/m2/tools-src/buildpg $(srcdir)/m2/gm2-compiler/ppg.mod t > m2/gm2-auto/t.bnf |
| 803 |
./m2/pge$(exeext) m2/gm2-auto/t.bnf -o m2/gm2-auto/t1.mod |
| 804 |
./m2/pg$(exeext) m2/gm2-auto/t.bnf -o m2/gm2-auto/t2.mod |
| 805 |
$(QUIAT)if ! diff m2/gm2-auto/t1.mod m2/gm2-auto/t2.mod > /dev/null ; then \ |
| 806 |
echo "failure: pg (with error recovery) failed" ; \ |
| 807 |
$(RM) m2/pge$(exeext) ; \ |
| 808 |
exit 1 ; \ |
| 809 |
fi |
| 810 |
$(RM) m2/gm2-auto/t.mod m2/gm2-auto/t1.mod m2/gm2-auto/t2.mod |
| 811 |
|
| 812 |
m2/gm2-auto/pgeinit: |
| 813 |
-test -d m2/gm2-auto || $(mkinstalldirs) m2/gm2-auto |
| 814 |
sed -e 's/ppg/pge/' < $(srcdir)/m2/init/ppginit > $@ |
| 815 |
|
| 816 |
m2/gm2-pge-boot/main.o: m2/gm2-auto/pgeinit $(M2LINK) |
| 817 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 818 |
unset CC ; $(M2LINK) -s --langc++ --exit --name mainpgeinit.cc m2/gm2-auto/pgeinit |
| 819 |
mv mainpgeinit.cc m2/gm2-pge-boot/main.cc |
| 820 |
$(CXX) $(INCLUDES) -g -c -o $@ m2/gm2-pge-boot/main.cc |
| 821 |
|
| 822 |
$(objdir)/m2/gm2-ppg-boot: |
| 823 |
-test -d $@ || $(mkinstalldirs) $@ |
| 824 |
|
| 825 |
$(objdir)/m2/gm2-pg-boot: |
| 826 |
-test -d $@ || $(mkinstalldirs) $@ |
| 827 |
|
| 828 |
$(objdir)/m2/gm2-pge-boot: |
| 829 |
-test -d $@ || $(mkinstalldirs) $@ |
| 830 |
|
| 831 |
m2/gm2-auto/pg.o: m2/gm2-auto/pg.mod $(MCDEPS) |
| 832 |
-test -d m2/gm2-pge-boot || $(mkinstalldirs) m2/gm2-pge-boot |
| 833 |
$(MC) $(PGE-MC-OPTIONS) --quiet -o=m2/gm2-auto/pg.c m2/gm2-auto/pg.mod |
| 834 |
$(COMPILER) -c $(CFLAGS) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2 -Im2/gm2-libs-boot -Im2/gm2-compiler-boot -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) m2/gm2-auto/pg.c -o $@ |
| 835 |
|
| 836 |
m2/gm2-auto/pge.o: m2/gm2-auto/pge.mod $(MCDEPS) |
| 837 |
-test -d m2/gm2-auto || $(mkinstalldirs) m2/gm2-auto |
| 838 |
$(MC) $(PGE-MC-OPTIONS) --quiet -o=m2/gm2-auto/pge.c m2/gm2-auto/pge.mod |
| 839 |
$(COMPILER) -c $(CFLAGS) -I. -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2 -Im2/gm2-libs-boot -Im2/gm2-compiler-boot -I$(srcdir)/m2/mc-boot-ch $(INCLUDES) m2/gm2-auto/pge.c -o $@ |
| 840 |
|
| 841 |
pge-help: force |
| 842 |
@echo "The pge maintainer commands are:" |
| 843 |
@echo " " |
| 844 |
@echo " make pge-maintainer" |
| 845 |
@echo " make pge-verify" |
| 846 |
@echo " make pge-push # copy pge C++ sources (app and libs) into srcdir/m2/pge-boot" |
| 847 |
@echo " make pge-libs-push # copy C++ libraries which pge uses into srcdir/m2/pge-boot" |
| 848 |
@echo " make pge-app-push # copy pge C++ application modules into srcdir/m2/pge-boot" |
| 849 |
@echo " make pge-clean" |
| 850 |
|
| 851 |
# pge-maintainer: $(PGE) |
| 852 |
pge-maintainer: pge-clean $(PGE) pge-verify pge-push |
| 853 |
|
| 854 |
# Copy the C++ sources for ppe.mod into $(srcdir)/pge-boot. |
| 855 |
|
| 856 |
pge-push: pge-libs-push pge-app-push |
| 857 |
|
| 858 |
pge-libs-push: force |
| 859 |
for i in ${PGE-DEPS} ; do \ |
| 860 |
if [ -f ${srcdir}/m2/gm2-libs-ch/$${i} ] ; then \ |
| 861 |
echo cp ${srcdir}/m2/gm2-libs-ch/$${i} ${srcdir}/m2/pge-boot ; \ |
| 862 |
cp ${srcdir}/m2/gm2-libs-ch/$${i} ${srcdir}/m2/pge-boot ; \ |
| 863 |
elif [ -f m2/gm2-pge-boot/$${i} ] ; then \ |
| 864 |
echo cp m2/gm2-pge-boot/$${i} ${srcdir}/m2/pge-boot ; \ |
| 865 |
cp m2/gm2-pge-boot/$${i} ${srcdir}/m2/pge-boot ; \ |
| 866 |
elif [ -f m2/gm2-compiler-boot/$${i} ] ; then \ |
| 867 |
echo cp m2/gm2-compiler-boot/$${i} ${srcdir}/m2/pge-boot ; \ |
| 868 |
cp m2/gm2-compiler-boot/$${i} ${srcdir}/m2/pge-boot ; \ |
| 869 |
elif [ -f m2/gm2-libs-boot/$${i} ] ; then \ |
| 870 |
echo cp m2/gm2-libs-boot/$${i} ${srcdir}/m2/pge-boot ; \ |
| 871 |
cp m2/gm2-libs-boot/$${i} ${srcdir}/m2/pge-boot ; \ |
| 872 |
else \ |
| 873 |
echo "not found $${i}" ; \ |
| 874 |
fi ; \ |
| 875 |
done |
| 876 |
|
| 877 |
pge-app-push: force |
| 878 |
cp m2/gm2-pge-boot/*.c* $(srcdir)/m2/pge-boot |
| 879 |
|
| 880 |
# Perform sanity checks. |
| 881 |
|
| 882 |
pge-verify: force |
| 883 |
|
| 884 |
# Remove pge build files. |
| 885 |
|
| 886 |
pge-clean: force |
| 887 |
$(RM) -f m2/gm2-pg-boot/* m2/gm2-ppg-boot/* m2/gm2-pge-boot/* |
| 888 |
|
| 889 |
|
| 890 |
# The rest of the Make-lang.in handles the bootstrap tool (maintained |
| 891 |
# mode) and also provides testing between the bootstrapped and the |
| 892 |
# non-bootstrapped compilers. |
| 893 |
|
| 894 |
# Rules for mc |
| 895 |
|
| 896 |
# The default rule used generate mc, eventually it will be replaced by mc-bootstrap. |
| 897 |
|
| 898 |
BOOTGM2=gm2 |
| 899 |
|
| 900 |
MCOPTIONS=-g -c -fsources -fsoft-check-all -fm2-g # -fauto-init |
| 901 |
MCLINK=-g # use -g -fmodules -c if you are debugging and wish to see missing modules. |
| 902 |
|
| 903 |
# This is only needed in maintainer mode by 'make mc-maintainer' when regenerating the C |
| 904 |
# version of mc. We need a working Modula-2 compiler to run mc-maintainer. |
| 905 |
|
| 906 |
GM2PATH=-I$(srcdir)/m2/mc \ |
| 907 |
-I$(srcdir)/m2 -Im2/gm2-auto \ |
| 908 |
-I$(srcdir)/m2/gm2-gcc \ |
| 909 |
-fm2-pathname=m2pim -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-ch \ |
| 910 |
-fm2-pathname=m2iso -I$(srcdir)/m2/gm2-libs-iso -fm2-pathname=- |
| 911 |
|
| 912 |
mc: mc-clean mc-devel |
| 913 |
|
| 914 |
mc-basetest: force |
| 915 |
$(SHELL) $(srcdir)/testsuite/gm2/base-lang/pass/base-lang-test.sh ./mc $(srcdir) `pwd` $(COMPILER) |
| 916 |
|
| 917 |
mc-devel-basetest: force |
| 918 |
$(SHELL) $(srcdir)/testsuite/gm2/base-lang/pass/base-lang-test.sh m2/boot-bin/mc-devel$(exeext) $(srcdir) `pwd` $(COMPILER) |
| 919 |
|
| 920 |
mc-push: force |
| 921 |
cp -p m2/mc-boot-gen/*.cc $(srcdir)/m2/mc-boot/ |
| 922 |
cp -p m2/mc-boot-gen/*.h $(srcdir)/m2/mc-boot/ |
| 923 |
|
| 924 |
mc-clean: force m2/mc-obj |
| 925 |
$(RM) m2/mc-boot-gen/*.{cc,h} m2/boot-bin/* m2/mc-boot/* m2/mc-boot-ch/* mc |
| 926 |
|
| 927 |
mc-maintainer: mc-clean mc-autogen mc-push mc-clean mc-bootstrap |
| 928 |
|
| 929 |
mc-clean-libs: force |
| 930 |
$(RM) m2/gm2-libs-boot/* |
| 931 |
|
| 932 |
mc-continue: mc-clean mc-bootstrap mc-clean-libs mc-fresh $(BUILD-MC-INTERFACE-O) $(BUILD-LIBS-BOOT) $(BUILD-COMPILER-BOOT) |
| 933 |
|
| 934 |
mc-fresh: force |
| 935 |
$(RM) m2/gm2-auto/* m2/gm2-compiler-boot/* m2/gm2-libs-boot/* |
| 936 |
|
| 937 |
mc-help: force |
| 938 |
@echo "mc-maintainer produces a new mc C version in the source tree (takes longer)" |
| 939 |
@echo "mc-continue builds the mc from the C version and attempts to build gm2 libraries and gm2 compiler" |
| 940 |
@echo "mc-verify builds mc from Modula-2 sources and mc from C sources and run both on all sources diffing the output" |
| 941 |
@echo "mc builds mc from Modula-2 sources, quickly" |
| 942 |
@echo "m2/pge build the parser generator (needed by mc-maintainer)" |
| 943 |
|
| 944 |
m2/mc-obj: |
| 945 |
$(mkinstalldirs) $@ |
| 946 |
|
| 947 |
mc-verify: mc-clean mc-bootstrap mc |
| 948 |
mv mc m2/boot-bin/mc.m2 |
| 949 |
@echo "verifying the two generations of mc" |
| 950 |
for i in $(GM2-VERIFY-MODS) ; do \ |
| 951 |
echo -n "$$i " ; \ |
| 952 |
m2/boot-bin/mc $(MC_ARGS) -o=mcout.cc $(srcdir)/m2/gm2-compiler/$$i > /dev/null ; \ |
| 953 |
echo -n "[1]" ; \ |
| 954 |
m2/boot-bin/mc.m2 $(MC_ARGS) -o=mcout.m2 $(srcdir)/m2/gm2-compiler/$$i > /dev/null ; \ |
| 955 |
echo -n "[2]" ; \ |
| 956 |
$(RM) $$i.mc-diff ; \ |
| 957 |
if [ -f mcout.cc -a -f mcout.m2 ] ; then \ |
| 958 |
if diff mcout.cc mcout.m2 > /dev/null ; then \ |
| 959 |
echo "[passed]" ; \ |
| 960 |
else \ |
| 961 |
echo "[*** failed ***]" ; \ |
| 962 |
diff mcout.cc mcout.m2 > $$i.mc-diff ; \ |
| 963 |
fi \ |
| 964 |
fi ; \ |
| 965 |
$(RM) mcout.cc mcout.m2 ; \ |
| 966 |
done |
| 967 |
|
| 968 |
mc-stage2: force |
| 969 |
m2/boot-bin/mc$(exeext) -I$(srcdir)/m2/mc:$(srcdir)/m2/gm2-libs:$(srcdir)/m2/gm2-libs-iso $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=m2/mc-boot-gen/GmcStream.cc $(srcdir)/m2/mc/mcStream.mod |
| 970 |
m2/boot-bin/mc$(exeext) -I$(srcdir)/m2/mc:$(srcdir)/m2/gm2-libs:$(srcdir)/m2/gm2-libs-iso $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=m2/mc-boot-gen/Gdecl.cc $(srcdir)/m2/mc/decl.mod |
| 971 |
if diff m2/mc-boot-gen/Gdecl.cc $(srcdir)/m2/mc-boot/Gdecl.cc ; then echo "passed" ; else echo "failed" ; fi |
| 972 |
|
| 973 |
|
| 974 |
|
| 975 |
# mc-devel - compiles mc using gm2 |
| 976 |
|
| 977 |
mc-devel: m2/boot-bin/mc-devel$(exeext) |
| 978 |
|
| 979 |
m2/boot-bin/mc-devel$(exeext): m2/mc-obj/mcp1.mod \ |
| 980 |
m2/mc-obj/mcp2.mod \ |
| 981 |
m2/mc-obj/mcp3.mod \ |
| 982 |
m2/mc-obj/mcp4.mod \ |
| 983 |
m2/mc-obj/mcp5.mod \ |
| 984 |
mcflex.c \ |
| 985 |
m2/mc-boot-ch/Gabort.o \ |
| 986 |
m2/mc-boot-ch/Gm2rtsdummy.o |
| 987 |
$(RM) -rf mc-obj |
| 988 |
$(mkinstalldirs) mc-obj |
| 989 |
$(CC) -I$(srcdir)/m2/mc -c -g mcflex.c -o mc-obj/mcflex.o |
| 990 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/decl.mod -o mc-obj/decl.o |
| 991 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcStream.mod -o mc-obj/mcStream.o |
| 992 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcPretty.mod -o mc-obj/mcPretty.o |
| 993 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcStack.mod -o mc-obj/mcStack.o |
| 994 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/varargs.mod -o mc-obj/varargs.o |
| 995 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcMetaError.mod -o mc-obj/mcMetaError.o |
| 996 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcOptions.mod -o mc-obj/mcOptions.o |
| 997 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcComp.mod -o mc-obj/mcComp.o |
| 998 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) m2/mc-obj/mcp1.mod -o mc-obj/mcp1.o |
| 999 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) m2/mc-obj/mcp2.mod -o mc-obj/mcp2.o |
| 1000 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) m2/mc-obj/mcp3.mod -o mc-obj/mcp3.o |
| 1001 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) m2/mc-obj/mcp4.mod -o mc-obj/mcp4.o |
| 1002 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) m2/mc-obj/mcp5.mod -o mc-obj/mcp5.o |
| 1003 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/wlists.mod -o mc-obj/wlists.o |
| 1004 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/alists.mod -o mc-obj/alists.o |
| 1005 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/symbolKey.mod -o mc-obj/symbolKey.o |
| 1006 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcReserved.mod -o mc-obj/mcReserved.o |
| 1007 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/nameKey.mod -o mc-obj/nameKey.o |
| 1008 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcSearch.mod -o mc-obj/mcSearch.o |
| 1009 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcFileName.mod -o mc-obj/mcFileName.o |
| 1010 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcLexBuf.mod -o mc-obj/mcLexBuf.o |
| 1011 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcQuiet.mod -o mc-obj/mcQuiet.o |
| 1012 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcError.mod -o mc-obj/mcError.o |
| 1013 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcDebug.mod -o mc-obj/mcDebug.o |
| 1014 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcPrintf.mod -o mc-obj/mcPrintf.o |
| 1015 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/Indexing.mod -o mc-obj/Indexing.o |
| 1016 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcPreprocess.mod -o mc-obj/mcPreprocess.o |
| 1017 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/keyc.mod -o mc-obj/keyc.o |
| 1018 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) $(srcdir)/m2/mc/mcComment.mod -o mc-obj/mcComment.o |
| 1019 |
$(BOOTGM2) $(MCLINK) -I. -fscaffold-static -fscaffold-main $(GM2PATH) \ |
| 1020 |
-fuse-list=$(srcdir)/m2/init/mcinit $(srcdir)/m2/mc/top.mod -o mc \ |
| 1021 |
m2/gm2-libs-boot/RTcodummy.o \ |
| 1022 |
m2/gm2-libs-boot/dtoa.o m2/gm2-libs-boot/ldtoa.o mc-obj/*o \ |
| 1023 |
m2/mc-boot-ch/Gabort.o m2/mc-boot-ch/Gm2rtsdummy.o |
| 1024 |
|
| 1025 |
m2/boot-bin/mc-opt$(exeext): m2/mc-obj/mcp1.mod \ |
| 1026 |
m2/mc-obj/mcp2.mod \ |
| 1027 |
m2/mc-obj/mcp3.mod \ |
| 1028 |
m2/mc-obj/mcp4.mod \ |
| 1029 |
m2/mc-obj/mcp5.mod \ |
| 1030 |
mcflex.c |
| 1031 |
-test -d m2/boot-bin || $(mkinstalldirs) m2/boot-bin |
| 1032 |
g++ -I$(srcdir)/m2/mc -c -g mcflex.c |
| 1033 |
$(BOOTGM2) -fsources -fm2-whole-program -g -I$(srcdir)/m2/mc -I$(objdir)/m2/mc-obj -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/mc $(srcdir)/m2/mc/top.mod |
| 1034 |
|
| 1035 |
m2/mc/decl.o: $(srcdir)/m2/mc/decl.mod |
| 1036 |
-test -d m2/mc || $(mkinstalldirs) m2/mc |
| 1037 |
$(BOOTGM2) $(MCOPTIONS) $(GM2PATH) -o $@ $(srcdir)/m2/mc/decl.mod |
| 1038 |
|
| 1039 |
m2/mc-obj/%.mod: $(srcdir)/m2/mc/%.bnf $(PGE) |
| 1040 |
-test -d m2/mc-obj || $(mkinstalldirs) m2/mc-obj |
| 1041 |
$(PGE) -l $< -o $@ |
| 1042 |
|
| 1043 |
gm2-bootstrap: mc-devel |
| 1044 |
for i in $(srcdir)/m2/gm2-libs/*.def ; do echo $$i ; ./mc --gcc-config-system -I$(srcdir)/m2/gm2-libs $$i ; done |
| 1045 |
for i in $(srcdir)/m2/gm2-compiler/*.def ; do echo $$i ; ./mc --gcc-config-system -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-gcc $$i ; done |
| 1046 |
for i in $(srcdir)/m2/gm2-libs/*.mod ; do echo $$i ; ./mc --gcc-config-system -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-gcc $$i ; done |
| 1047 |
|
| 1048 |
|
| 1049 |
$(objdir)/plugin: |
| 1050 |
-test -d $@ || $(mkinstalldirs) $@ |
| 1051 |
|
| 1052 |
$(objdir)/m2/mc-boot: |
| 1053 |
-test -d $@ || $(mkinstalldirs) $@ |
| 1054 |
|
| 1055 |
$(objdir)/m2/mc-boot-ch: |
| 1056 |
-test -d $@ || $(mkinstalldirs) $@ |
| 1057 |
|
| 1058 |
$(objdir)/m2/mc-boot-gen: |
| 1059 |
-test -d $@ || $(mkinstalldirs) $@ |
| 1060 |
|
| 1061 |
mc-autogen: mc-clean mc-devel \ |
| 1062 |
$(BUILD-MC-BOOT-H) $(BUILD-MC-BOOT-CC) \ |
| 1063 |
$(BUILD-MC-BOOT-AUTO-CC) |
| 1064 |
for i in m2/mc-boot-gen/*.cc ; do \ |
| 1065 |
echo $(CXX) -g -c -I. $(GMPINC) -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/mc-boot-gen/ $$i -o m2/mc-boot-gen/`basename $$i .cc`.o ; \ |
| 1066 |
$(CXX) -g -c -I. $(GMPINC) -I$(srcdir)/../include -I$(srcdir) -I$(srcdir)/m2/mc-boot-ch -Im2/mc-boot-gen/ $$i -o m2/mc-boot-gen/`basename $$i .cc`.o ; done |
| 1067 |
@echo -n "built " |
| 1068 |
@cd m2/mc-boot-gen ; ls *.o | wc -l |
| 1069 |
@echo -n "out of " |
| 1070 |
@cd m2/mc-boot-gen ; ls *.cc | wc -l |
| 1071 |
@echo "modules" |
| 1072 |
|
| 1073 |
# EXTENDED_OPAQUE = --extended-opaque |
| 1074 |
EXTENDED_OPAQUE = |
| 1075 |
MC_OPTIONS = $(MC_COPYRIGHT) --gcc-config-system --olang=c++ |
| 1076 |
|
| 1077 |
m2/mc-boot-gen/$(SRC_PREFIX)%.h: $(srcdir)/m2/mc/%.def |
| 1078 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1079 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1080 |
|
| 1081 |
m2/mc-boot-gen/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-libs-iso/%.def |
| 1082 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1083 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1084 |
|
| 1085 |
m2/mc-boot-gen/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-libs/%.def |
| 1086 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1087 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1088 |
|
| 1089 |
m2/mc-boot-gen/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-gcc/%.def |
| 1090 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1091 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1092 |
|
| 1093 |
m2/mc-boot-gen/$(SRC_PREFIX)decl.cc: $(srcdir)/m2/mc/decl.mod |
| 1094 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1095 |
./mc $(MC_OPTIONS) $(EXTENDED_OPAQUE) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1096 |
|
| 1097 |
m2/mc-boot-gen/$(SRC_PREFIX)%.cc: $(srcdir)/m2/mc/%.mod |
| 1098 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1099 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1100 |
|
| 1101 |
m2/mc-boot-gen/$(SRC_PREFIX)%.cc: $(srcdir)/m2/gm2-libs/%.mod |
| 1102 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1103 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1104 |
|
| 1105 |
m2/mc-boot-gen/$(SRC_PREFIX)%.cc: $(srcdir)/m2/gm2-libs-iso/%.mod |
| 1106 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1107 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1108 |
|
| 1109 |
m2/mc-boot-gen/$(SRC_PREFIX)%.h: $(srcdir)/m2/gm2-libs-iso/%.def |
| 1110 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1111 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1112 |
|
| 1113 |
m2/mc-boot-gen/$(SRC_PREFIX)%.cc: m2/mc-obj/%.mod |
| 1114 |
-test -d m2/mc-boot-gen || $(mkinstalldirs) m2/mc-boot-gen |
| 1115 |
./mc $(MC_OPTIONS) -I$(srcdir)/m2/mc -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-gcc $(EXTENDED_OPAQUE) --h-file-prefix=$(SRC_PREFIX) -o=$@ $< |
| 1116 |
|
| 1117 |
# mc-bootstrap compiles mc using the C version previously generated by mc-autogen. |
| 1118 |
# These autogenerated files will be checked into git by the maintainer. |
| 1119 |
|
| 1120 |
mc-bootstrap: mc-clean m2/boot-bin/mc$(exeext) |
| 1121 |
|
| 1122 |
gm2.maintainer-reconfigure: force |
| 1123 |
autoconf $(srcdir)/m2/gm2-libs/config-host.in > $(srcdir)/m2/gm2-libs/config-host |
| 1124 |
( cd $(srcdir)/m2/gm2-libs ; autoheader config-host.in ) |
| 1125 |
( cd $(srcdir)/m2 ; autoconf configure.in > configure ) |
| 1126 |
|
| 1127 |
gm2.maintainer-help: force |
| 1128 |
@echo "make knows about:" |
| 1129 |
@echo " " |
| 1130 |
@echo "make gm2.maintainer-help this command" |
| 1131 |
@echo "make gm2.maintainer-reconfigure rebuild the configure scripts" |
| 1132 |
@echo "make gm2.maintainer-tools rebuild mc and ppg bootstrap tools" |
| 1133 |
@echo " note gm2.maintainer-tools requires a working gm2 to be in your path" |
| 1134 |
@echo "make gm2.maintainer-doc rebuild target independent documentation sections" |
| 1135 |
@echo "make pge-help sub commands to build pge" |
| 1136 |
@echo "make mc-help sub commands to build mc" |
| 1137 |
|
| 1138 |
gm2.maintainer-tools: mc-maintainer pge-maintainer |
| 1139 |
|
| 1140 |
gm2.maintainer-doc: m2-target-independent-doc |
| 1141 |
|
| 1142 |
|
| 1143 |
# verify the compiler can be built across three generations of cc1gm2 diffing assembly output. |
| 1144 |
# m2/stage1/cc1gm2 built by translating all M2 sources into C++. |
| 1145 |
# m2/m2obj2/cc1gm2 built from m2/stage1/cc1gm2. |
| 1146 |
# m2/m2obj3/cc1gm2 built from m2/m2obj2/cc1gm2. |
| 1147 |
# |
| 1148 |
# This test only makes sense if host = target = build |
| 1149 |
|
| 1150 |
# GM2-VERIFY-MODS is a list of modules which have no __DATE__ stamp inside them |
| 1151 |
# and thus they can be built by the different versions of gm2. |
| 1152 |
# This list is used for testing only. |
| 1153 |
|
| 1154 |
GM2-VERIFY-MODS = FifoQueue.mod M2AsmUtil.mod M2Optimize.mod \ |
| 1155 |
M2StackWord.mod M2Pass.mod M2Batch.mod \ |
| 1156 |
M2Quads.mod M2Comp.mod M2Reserved.mod \ |
| 1157 |
M2Debug.mod M2Defaults.mod NameKey.mod \ |
| 1158 |
M2FileName.mod P0SymBuild.mod P1SymBuild.mod P2SymBuild.mod \ |
| 1159 |
P3SymBuild.mod \ |
| 1160 |
SymbolKey.mod SymbolTable.mod M2Error.mod \ |
| 1161 |
M2StackAddress.mod \ |
| 1162 |
M2Students.mod \ |
| 1163 |
M2BasicBlock.mod M2Code.mod M2GenGCC.mod M2GCCDeclare.mod\ |
| 1164 |
M2ALU.mod M2System.mod M2Base.mod Lists.mod \ |
| 1165 |
M2Search.mod bnflex.mod ppg.mod Output.mod \ |
| 1166 |
SymbolConversion.mod \ |
| 1167 |
M2Preprocess.mod M2Printf.mod M2LexBuf.mod M2Quiet.mod \ |
| 1168 |
M2Bitset.mod M2Size.mod CLexBuf.mod M2Scope.mod \ |
| 1169 |
M2Range.mod M2Swig.mod M2MetaError.mod Sets.mod \ |
| 1170 |
M2CaseList.mod PCSymBuild.mod M2Const.mod \ |
| 1171 |
M2DebugStack.mod ObjectFiles.mod M2ColorString.mod M2Emit.mod |
| 1172 |
|
| 1173 |
GM2-VERIFY-AUTO = P1Build.mod P2Build.mod PCBuild.mod P3Build.mod \ |
| 1174 |
PHBuild.mod pg.mod P0SyntaxCheck.mod |
| 1175 |
|
| 1176 |
GM2_LIBS_PARANOID = m2/gm2-compiler-paranoid/gm2.a \ |
| 1177 |
m2/gm2-libs-paranoid/libgm2.a # build it again using GM2_LIBS |
| 1178 |
|
| 1179 |
gm2.paranoid: m2/m2obj3/cc1gm2$(exeext) gm2.verifyparanoid |
| 1180 |
|
| 1181 |
m2/m2obj3/cc1gm2$(exeext): m2/m2obj2/cc1gm2$(exeext) m2/gm2-compiler-paranoid/m2flex.o \ |
| 1182 |
$(GM2_C_OBJS) $(BACKEND) $(LIBDEPS) $(GM2_LIBS_PARANOID) \ |
| 1183 |
m2/gm2-gcc/rtegraph.o plugin/m2rte$(exeext).so |
| 1184 |
-test -d m2/m2obj3 || $(mkinstalldirs) m2/m2obj3 |
| 1185 |
@$(call LINK_PROGRESS,$(INDEX.m2),start) |
| 1186 |
+$(LLINKER) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(GM2_C_OBJS) m2/gm2-compiler-paranoid/m2flex.o \ |
| 1187 |
attribs.o \ |
| 1188 |
$(GM2_LIBS_PARANOID) \ |
| 1189 |
$(BACKEND) $(LIBS) m2/gm2-gcc/rtegraph.o \ |
| 1190 |
$(BACKENDLIBS) $(LIBSTDCXX) -lm |
| 1191 |
@$(call LINK_PROGRESS,$(INDEX.m2),end) |
| 1192 |
|
| 1193 |
|
| 1194 |
# gm2.verifyparanoid diffs the output of all three compilers with the compiler source code |
| 1195 |
|
| 1196 |
gm2.verifyparanoid: m2/stage1/cc1gm2$(exeext) m2/m2obj2/cc1gm2$(exeext) m2/m2obj3/cc1gm2$(exeext) force |
| 1197 |
@echo "verifying the three generations of GNU Modula-2 compilers - it may take some time.." |
| 1198 |
$(QUIAT)for i in $(GM2-VERIFY-MODS) ; do \ |
| 1199 |
echo -n "$$i " ; \ |
| 1200 |
./gm2 -S $(GM2_FLAGS) -c -B./stage1/m2 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $(srcdir)/m2/gm2-compiler/$$i -o m2/gm2-compiler-verify/1.s ; \ |
| 1201 |
echo -n "[1]" ; \ |
| 1202 |
./gm2 -S $(GM2_FLAGS) -c -B./stage2/m2 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $(srcdir)/m2/gm2-compiler/$$i -o m2/gm2-compiler-verify/2.s ; \ |
| 1203 |
echo -n "[2]" ; \ |
| 1204 |
./gm2 -S $(GM2_FLAGS) -c -B./stage3/m2 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $(srcdir)/m2/gm2-compiler/$$i -o m2/gm2-compiler-verify/3.s ; \ |
| 1205 |
echo -n "[3]" ; \ |
| 1206 |
if ! diff m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/2.s > m2/gm2-compiler-verify/1_2.diff 2>&1 ; then \ |
| 1207 |
echo -n " [stage 1 and stage 2 differ]" ; \ |
| 1208 |
cp m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.1.lst ; \ |
| 1209 |
cp m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.2.lst ; \ |
| 1210 |
echo " " ; \ |
| 1211 |
exit 1 ; \ |
| 1212 |
fi ; \ |
| 1213 |
if ! diff m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/3.s > m2/gm2-compiler-verify/2_3.diff 2>&1 ; then \ |
| 1214 |
echo -n " [stage 2 and stage 3 differ]" ; \ |
| 1215 |
cp m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.2.lst ; \ |
| 1216 |
cp m2/gm2-compiler-verify/3.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.3.lst ; \ |
| 1217 |
fi ; \ |
| 1218 |
echo " " ; \ |
| 1219 |
done |
| 1220 |
$(QUIAT)echo "now verifying automatically built modules" |
| 1221 |
$(QUIAT)for i in x $(GM2-VERIFY-AUTO) ; do \ |
| 1222 |
if [ -f m2/gm2-auto/$$i ] ; then \ |
| 1223 |
echo -n "$$i " ; \ |
| 1224 |
./gm2 -S $(GM2_FLAGS) -c -B./m2/stage1 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty m2/gm2-auto/$$i -o m2/gm2-compiler-verify/1.s ; \ |
| 1225 |
echo -n "[1]" ; \ |
| 1226 |
./gm2 -S $(GM2_FLAGS) -c -B./m2/m2obj2 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty m2/gm2-auto/$$i -o m2/gm2-compiler-verify/2.s ; \ |
| 1227 |
echo -n "[2]" ; \ |
| 1228 |
./gm2 -S $(GM2_FLAGS) -c -B./m2/m2obj3 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty m2/gm2-auto/$$i -o m2/gm2-compiler-verify/3.s ; \ |
| 1229 |
echo -n "[3]" ; \ |
| 1230 |
if ! diff m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/2.s > m2/gm2-compiler-verify/1_2.diff 2>&1 ; then \ |
| 1231 |
echo -n " [stage 1 and stage 2 differ]" ; \ |
| 1232 |
cp m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.1.lst ; \ |
| 1233 |
cp m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.2.lst ; \ |
| 1234 |
echo " " ; \ |
| 1235 |
exit 1 ; \ |
| 1236 |
fi ; \ |
| 1237 |
if ! diff m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/3.s > m2/gm2-compiler-verify/2_3.diff 2>&1 ; then \ |
| 1238 |
echo -n " [stage 2 and stage 3 differ]" ; \ |
| 1239 |
cp m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.2.lst ; \ |
| 1240 |
cp m2/gm2-compiler-verify/3.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.3.lst ; \ |
| 1241 |
fi ; \ |
| 1242 |
echo " " ; \ |
| 1243 |
fi ; \ |
| 1244 |
done ; \ |
| 1245 |
$(RM) -f m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/3.s m2/gm2-compiler-verify/2_3.diff m2/gm2-compiler-verify/1_2.diff |
| 1246 |
|
| 1247 |
|
| 1248 |
# gm2.verifystage12 diffs the output of the stage1 and stage2 compilers with the compiler source code |
| 1249 |
|
| 1250 |
gm2.verifystage12: force m2/stage1/cc1gm2$(exeext) m2/m2obj2/cc1gm2$(exeext) |
| 1251 |
@echo "verifying stage1 and stage2 generations of GNU Modula-2 compilers - it may take some time.." |
| 1252 |
$(QUIAT)for i in $(GM2-VERIFY-MODS) ; do \ |
| 1253 |
echo -n "$$i " ; \ |
| 1254 |
./gm2 -S $(GM2_FLAGS) -c -B./stage1/m2 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $(srcdir)/m2/gm2-compiler/$$i -o m2/gm2-compiler-verify/1.s ; \ |
| 1255 |
echo -n "[1]" ; \ |
| 1256 |
./gm2 -S $(GM2_FLAGS) -c -B./stage2/m2 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $(srcdir)/m2/gm2-compiler/$$i -o m2/gm2-compiler-verify/2.s ; \ |
| 1257 |
echo -n "[2]" ; \ |
| 1258 |
if ! diff m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/2.s > m2/gm2-compiler-verify/1_2.diff 2>&1 ; then \ |
| 1259 |
echo -n " [stage 1 and stage 2 differ]" ; \ |
| 1260 |
cp m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.1.lst ; \ |
| 1261 |
cp m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.2.lst ; \ |
| 1262 |
echo " " ; \ |
| 1263 |
fi ; \ |
| 1264 |
echo " " ; \ |
| 1265 |
done |
| 1266 |
$(QUIAT)echo "now verifying automatically built modules" |
| 1267 |
$(QUIAT)for i in x $(GM2-VERIFY-AUTO) ; do \ |
| 1268 |
if [ -f m2/gm2-auto/$$i ] ; then \ |
| 1269 |
echo -n "$$i " ; \ |
| 1270 |
./gm2 -S $(GM2_FLAGS) -c -B./m2/stage1 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty m2/gm2-auto/$$i -o m2/gm2-compiler-verify/1.s ; \ |
| 1271 |
echo -n "[1]" ; \ |
| 1272 |
./gm2 -S $(GM2_FLAGS) -c -B./m2/m2obj2 -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty m2/gm2-auto/$$i -o m2/gm2-compiler-verify/2.s ; \ |
| 1273 |
echo -n "[2]" ; \ |
| 1274 |
if ! diff m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/2.s > m2/gm2-compiler-verify/1_2.diff 2>&1 ; then \ |
| 1275 |
echo -n " [stage 1 and stage 2 differ]" ; \ |
| 1276 |
cp m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.1.lst ; \ |
| 1277 |
cp m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/t.s | as -ahl m2/gm2-compiler-verify/t.s > m2/gm2-compiler-verify/$$i.2.lst ; \ |
| 1278 |
echo " " ; \ |
| 1279 |
fi ; \ |
| 1280 |
echo " " ; \ |
| 1281 |
fi ; \ |
| 1282 |
done ; \ |
| 1283 |
$(RM) -f m2/gm2-compiler-verify/1.s m2/gm2-compiler-verify/2.s m2/gm2-compiler-verify/3.s m2/gm2-compiler-verify/2_3.diff m2/gm2-compiler-verify/1_2.diff |
| 1284 |
|
| 1285 |
|
| 1286 |
# The rules which build objects in the gm2-compiler-paranoid gm2-libs-paranoid directories. |
| 1287 |
|
| 1288 |
m2/gm2-libs-paranoid/%.o: m2/gm2-libs-ch/%.c |
| 1289 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1290 |
$(XGCC) -c -g $(GM2_O_S3) $(GM2_O) -I./ -Im2/gm2-libs -Wall $(INCLUDES) $< -o $@ |
| 1291 |
|
| 1292 |
m2/gm2-libs-paranoid/%.o: $(srcdir)/m2/gm2-libs/%.mod |
| 1293 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1294 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-libs-iso -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1295 |
|
| 1296 |
m2/gm2-compiler-paranoid/%.o: $(srcdir)/m2/gm2-compiler/%.mod |
| 1297 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1298 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1299 |
|
| 1300 |
m2/gm2-compiler-paranoid/%.o: m2/gm2-compiler-paranoid/%.mod |
| 1301 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1302 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1303 |
|
| 1304 |
m2/gm2-compiler-paranoid/P0SyntaxCheck.o: m2/gm2-compiler-paranoid/P0SyntaxCheck.mod |
| 1305 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1306 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1307 |
|
| 1308 |
m2/gm2-compiler-paranoid/P1Build.o: m2/gm2-compiler-paranoid/P1Build.mod |
| 1309 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1310 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1311 |
|
| 1312 |
m2/gm2-compiler-paranoid/P2Build.o: m2/gm2-compiler-paranoid/P2Build.mod |
| 1313 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1314 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1315 |
|
| 1316 |
m2/gm2-compiler-paranoid/P3Build.o: m2/gm2-compiler-paranoid/P3Build.mod |
| 1317 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1318 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1319 |
|
| 1320 |
m2/gm2-compiler-paranoid/PHBuild.o: m2/gm2-compiler-paranoid/PHBuild.mod |
| 1321 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1322 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1323 |
|
| 1324 |
m2/gm2-compiler-paranoid/PCBuild.o: m2/gm2-compiler-paranoid/PCBuild.mod |
| 1325 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1326 |
$(GM2_2) $(GM2_O_S3) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/m2/gm2-libiberty $< -o $@ |
| 1327 |
|
| 1328 |
m2/gm2-libs-paranoid/host.o: $(srcdir)/m2/gm2-libs-ch/host.c m2/gm2-libs/gm2-libs-host.h |
| 1329 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1330 |
$(CXX) -c $(GM2_O_S3) $(CFLAGS) -Im2/gm2-libs -I$(srcdir)/m2 -Im2 -I. -Im2/gm2-libs-boot $(INCLUDES) $< -o $@ |
| 1331 |
|
| 1332 |
m2/gm2-libs-paranoid/wrapc.o: $(srcdir)/m2/gm2-libs-ch/wrapc.c m2/gm2-libs-boot/$(SRC_PREFIX)wrapc.h m2/gm2-libs/gm2-libs-host.h |
| 1333 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1334 |
$(CXX) -c -DIN_GCC $(GM2_O_S3) $(CFLAGS) -Im2/gm2-libs -I$(srcdir)/m2 -Im2 -I. -Im2/gm2-libs-boot $(INCLUDES) $< -o $@ |
| 1335 |
|
| 1336 |
m2/gm2-libs-paranoid/UnixArgs.o: $(srcdir)/m2/gm2-libs-ch/UnixArgs.cc \ |
| 1337 |
m2/gm2-libs-boot/$(SRC_PREFIX)UnixArgs.h |
| 1338 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1339 |
$(CXX) -c -DIN_GCC $(GM2_O_S3) $(CFLAGS) -Im2/gm2-libs -I$(srcdir)/m2 -Im2 -I. -Im2/gm2-libs-boot $(INCLUDES) $< -o $@ |
| 1340 |
|
| 1341 |
m2/gm2-libs-paranoid/errno.o: $(srcdir)/m2/gm2-libs-ch/errno.c \ |
| 1342 |
m2/gm2-libs-boot/$(SRC_PREFIX)errno.h |
| 1343 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1344 |
$(CXX) -c -DIN_GCC $(GM2_O_S3) $(CFLAGS) -Im2/gm2-libs -I$(srcdir)/m2 -Im2 -I. -Im2/gm2-libs-boot $(INCLUDES) $< -o $@ |
| 1345 |
|
| 1346 |
m2/gm2-libs-paranoid/Selective.o: $(srcdir)/m2/gm2-libs-ch/Selective.c \ |
| 1347 |
m2/gm2-libs-boot/$(SRC_PREFIX)Selective.h |
| 1348 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1349 |
$(COMPILER) -c -DIN_GCC $(GM2_O_S3) $(CFLAGS) -Im2/gm2-libs -I$(srcdir)/m2 -Im2 -I. -Im2/gm2-libs-boot $(INCLUDES) $< -o $@ |
| 1350 |
|
| 1351 |
m2/gm2-libs-paranoid/choosetemp.o: $(srcdir)/m2/gm2-libs-ch/choosetemp.c \ |
| 1352 |
m2/gm2-libiberty/$(SRC_PREFIX)choosetemp.h |
| 1353 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1354 |
$(CXX) -c -DIN_GCC $(GM2_O_S3) $(CFLAGS) -Im2/gm2-libs -I$(srcdir)/m2 -Im2 -I. -Im2/gm2-libs-boot -Im2/gm2-libiberty $(INCLUDES) $< -o $@ |
| 1355 |
|
| 1356 |
m2/gm2-libs-paranoid/SysExceptions.o: $(srcdir)/m2/gm2-libs-ch/SysExceptions.c \ |
| 1357 |
m2/gm2-libs-boot/$(SRC_PREFIX)SysExceptions.h |
| 1358 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1359 |
$(CXX) -c -DIN_GCC $(GM2_O_S3) $(CFLAGS) -Im2/gm2-libs -I$(srcdir)/m2 -Im2 -I. -Im2/gm2-libs-boot $(INCLUDES) $< -o $@ |
| 1360 |
|
| 1361 |
m2/gm2-compiler-paranoid/m2flex.o: m2/gm2-compiler/m2flex.c $(TIMEVAR_H) |
| 1362 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1363 |
$(COMPILER) -c $(GM2_O_S3) -g $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 1364 |
$(GM2GCC) -Im2/gm2-compiler-boot -Im2/gm2-libs-boot $< -o $@ |
| 1365 |
|
| 1366 |
m2/gm2-libs-paranoid/dtoa.o: $(srcdir)/m2/gm2-libs-ch/dtoa.cc \ |
| 1367 |
m2/gm2-libs-boot/$(SRC_PREFIX)dtoa.h \ |
| 1368 |
m2/gm2-libs/gm2-libs-host.h |
| 1369 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1370 |
$(CXX) -c $(GM2_O_S3) $(CFLAGS) -I$(srcdir)/m2 -Im2/gm2-libs-boot -Im2/gm2-libs $(INCLUDES) $< -o $@ |
| 1371 |
|
| 1372 |
m2/gm2-libs-paranoid/ldtoa.o: $(srcdir)/m2/gm2-libs-ch/ldtoa.cc \ |
| 1373 |
m2/gm2-libs-boot/$(SRC_PREFIX)ldtoa.h \ |
| 1374 |
m2/gm2-libs/gm2-libs-host.h |
| 1375 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1376 |
$(CXX) -c $(GM2_O_S3) $(CFLAGS) -I$(srcdir)/m2 -Im2/gm2-libs-boot -Im2/gm2-libs $(INCLUDES) $< -o $@ |
| 1377 |
|
| 1378 |
m2/gm2-libs-paranoid/termios.o: $(srcdir)/m2/gm2-libs-ch/termios.c \ |
| 1379 |
m2/gm2-libs-boot/$(SRC_PREFIX)termios.h \ |
| 1380 |
m2/gm2-libs/gm2-libs-host.h |
| 1381 |
-test -d m2/gm2-libs-paranoid || $(mkinstalldirs) m2/gm2-libs-paranoid |
| 1382 |
$(CXX) -c $(GM2_O_S3) $(CFLAGS) -I$(srcdir)/m2 -Im2/gm2-libs-boot -Im2/gm2-libs $(INCLUDES) $< -o $@ |
| 1383 |
|
| 1384 |
|
| 1385 |
# The rules which build the paranoid version of gm2. |
| 1386 |
|
| 1387 |
BUILD-LIBS-PARANOID-H = $(GM2-LIBS-BOOT-DEFS:%.def=m2/gm2-libs-boot/$(SRC_PREFIX)%.h) |
| 1388 |
|
| 1389 |
BUILD-LIBS-PARANOID = $(BUILD-LIBS-PARANOID-H) \ |
| 1390 |
$(GM2-LIBS-MODS:%.mod=m2/gm2-libs-paranoid/%.o) \ |
| 1391 |
$(GM2-LIBS-CC:%.cc=m2/gm2-libs-paranoid/%.o) \ |
| 1392 |
$(GM2-LIBS-C:%.c=m2/gm2-libs-paranoid/%.o) |
| 1393 |
|
| 1394 |
m2/gm2-libs-paranoid/libgm2.a: m2/boot-bin/mc$(exeext) $(BUILD-LIBS-PARANOID) |
| 1395 |
$(AR) cr $@ $(GM2-LIBS-MODS:%.mod=m2/gm2-libs-paranoid/%.o) \ |
| 1396 |
$(GM2-LIBS-CC:%.cc=m2/gm2-libs-paranoid/%.o) \ |
| 1397 |
$(GM2-LIBS-C:%.c=m2/gm2-libs-paranoid/%.o) |
| 1398 |
$(RANLIB) $@ |
| 1399 |
|
| 1400 |
m2/gm2-compiler-paranoid/gm2.a: \ |
| 1401 |
$(GM2-COMP-MODS:%.mod=m2/gm2-compiler-paranoid/%.o) \ |
| 1402 |
$(GM2-AUTO-MODS:%.mod=m2/gm2-compiler-paranoid/%.o) \ |
| 1403 |
m2/gm2-compiler-paranoid/M2Version.o \ |
| 1404 |
m2/gm2-compiler-paranoid/m2flex.o |
| 1405 |
$(AR) cr $@ $(GM2-COMP-MODS:%.mod=m2/gm2-compiler-paranoid/%.o) \ |
| 1406 |
$(GM2-AUTO-MODS:%.mod=m2/gm2-compiler-paranoid/%.o) \ |
| 1407 |
m2/gm2-compiler-paranoid/M2Version.o |
| 1408 |
$(RANLIB) $@ |
| 1409 |
|
| 1410 |
m2/gm2-compiler-paranoid/M2Version.mod: |
| 1411 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1412 |
$(SHELL) $(srcdir)/m2/tools-src/makeversion -m $(srcdir) m2/gm2-compiler-paranoid |
| 1413 |
|
| 1414 |
m2/gm2-compiler-paranoid/M2Version.o: m2/gm2-compiler-paranoid/M2Version.mod |
| 1415 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1416 |
$(GM2_2) $(GM2_FLAGS) -c -I$(srcdir)/m2/gm2-compiler -I$(srcdir)/m2/gm2-libs -I$(srcdir)/m2/gm2-gcc $< -o $@ |
| 1417 |
|
| 1418 |
m2/gm2-compiler-paranoid/%.mod: $(srcdir)/m2/gm2-compiler/%.bnf $(PGE) |
| 1419 |
-test -d m2/gm2-compiler-paranoid || $(mkinstalldirs) m2/gm2-compiler-paranoid |
| 1420 |
$(PGE) -k -l $< -o $@ |
| 1421 |
|
| 1422 |
# Recreate the target independent copies of the documentation which is |
| 1423 |
# used during the build if Python3 is unavailable. |
| 1424 |
|
| 1425 |
# m2-target-independent-doc-rst should be enabled once |
| 1426 |
# tools-src/def2doc.py is completed (module hyperlinks need rst |
| 1427 |
# treatment). |
| 1428 |
|
| 1429 |
m2-target-independent-doc: m2-target-independent-doc-texi # m2-target-independent-doc-rst |
| 1430 |
|
| 1431 |
m2-target-independent-doc-texi: force |
| 1432 |
ifeq ($(HAVE_PYTHON),yes) |
| 1433 |
python3 $(srcdir)/m2/tools-src/def2doc.py -t -b$(srcdir)/m2 -f$(srcdir)/m2/gm2-libs-iso/SYSTEM.def -o $(srcdir)/m2/target-independent/m2/SYSTEM-iso.texi |
| 1434 |
python3 $(srcdir)/m2/tools-src/def2doc.py -t -b$(srcdir)/m2 -f$(srcdir)/m2/gm2-libs/SYSTEM.def -o $(srcdir)/m2/target-independent/m2/SYSTEM-pim.texi |
| 1435 |
python3 $(srcdir)/m2/tools-src/def2doc.py -t -b$(srcdir)/m2 -f$(srcdir)/m2/gm2-libs/Builtins.def -o $(srcdir)/m2/target-independent/m2/Builtins.texi |
| 1436 |
python3 $(srcdir)/m2/tools-src/def2doc.py -t -uLibraries -s$(srcdir)/m2 -b$(srcdir)/m2 -o $(srcdir)/m2/target-independent/m2/gm2-libs.texi |
| 1437 |
else |
| 1438 |
echo "m2-target-independent-doc-texi will only work if Python3 was detected during configure" |
| 1439 |
endif |
| 1440 |
|
| 1441 |
m2-target-independent-doc-rst: force |
| 1442 |
ifeq ($(HAVE_PYTHON),yes) |
| 1443 |
python3 $(srcdir)/m2/tools-src/def2doc.py -x -b$(srcdir)/m2 -f$(srcdir)/m2/gm2-libs-iso/SYSTEM.def -o $(srcdir)/m2/target-independent/m2/SYSTEM-iso.rst |
| 1444 |
python3 $(srcdir)/m2/tools-src/def2doc.py -x -b$(srcdir)/m2 -f$(srcdir)/m2/gm2-libs/SYSTEM.def -o $(srcdir)/m2/target-independent/m2/SYSTEM-pim.rst |
| 1445 |
python3 $(srcdir)/m2/tools-src/def2doc.py -x -b$(srcdir)/m2 -f$(srcdir)/m2/gm2-libs/Builtins.def -o $(srcdir)/m2/target-independent/m2/Builtins.rst |
| 1446 |
python3 $(srcdir)/m2/tools-src/def2doc.py -x -uLibraries -s$(srcdir)/m2 -b$(srcdir)/m2 -o $(srcdir)/m2/target-independent/m2/gm2-libs.rst |
| 1447 |
else |
| 1448 |
echo "m2-target-independent-doc-rst will only work if Python3 was detected during configure" |
| 1449 |
endif |