All 10 surviving original TUs plus the reconstructed BTL4APP.CPP pilot build clean with the authentic OPT.MAK flags (compile410.sh --sweep). First time the 4.10 BattleTech source has compiled since 1996. - layout_probe.cpp: the period compiler measures 1995 layouts from the surviving headers; validated 3/3 against binary alloc sizes (BTMission 0xFC, BTL4ModeManager 0xC, BTRegistry 0x10). Base boundary: Simulation 0xD0 / Entity 0x1C4 / Mover 0x300 / JointedMover 0x328 => Mech-own region 0x328-0x854 (MECH-LAYOUT.md staging worksheet). - 13 staged headers close the family ([T3] reserved[]-parked layouts; interfaces PROVEN by the surviving consumers): MECH, MECHSUB, HEAT, POWERSUB, MECHWEAP, EMITTER, MECHMPPR, BTPLAYER (BTPlayer__MakeMessage = Player's 8 args + roleName/teamName [T1 via BTREG]), PROJTILE, MISSILE, BTL4MPPR, BTL4VID + the round-2 BTCNSL/BTSCNRL. - compile410.sh: PCH gate retired (bt.hpp/mungal4.hpp full include sets), DPL SDK roots on the include line. - BTL4APP.CPP: appmgr include + GetApplicationManager()->GetFrameRate() + ResourceDescription:: scoping; Fail() held at its recorded line 400. - Evidence ledgers: STAGED-HEADERS.NOTES.md, MECH-LAYOUT.md, BACKFILLS, BTCNSL (binary-recovered console wire IDs), BTSCNRL. Remaining for a linkable BTL4OPT: the ~40 missing TU bodies (917-function manifest) - the header skeleton they grow into now exists and compiles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
47 lines
1.9 KiB
Bash
47 lines
1.9 KiB
Bash
#!/bin/bash
|
|
# compile410.sh -- per-TU compile verification for the 4.10 literal-source
|
|
# reconstruction, using the fleet's own Borland C++ 4.52 with the authentic
|
|
# OPT.MAK flags (CODE/BT/OPT.MAK = the BTL4OPT.EXE recipe).
|
|
#
|
|
# Usage:
|
|
# ./compile410.sh <file.cpp> [more.cpp ...] compile specific TUs
|
|
# ./compile410.sh --sweep sweep all surviving originals
|
|
#
|
|
# Output .obj files land in the current directory. -DNO_PRECOMPILED_HEADERS
|
|
# dodges the not-yet-reconstructed mech-family headers (BT.HPP gates on it);
|
|
# drop it once mech.hpp/btplayer.hpp/mechsub.hpp exist in 1995 form.
|
|
|
|
T=/c/VWE/TeslaRel410
|
|
export PATH="$T/BORLAND/BC45/BIN:$PATH"
|
|
C=c:/VWE/TeslaRel410/CODE/BT
|
|
R=c:/VWE/TeslaRel410/CODE/RP
|
|
S=c:/VWE/TeslaRel410/restoration/source410
|
|
|
|
# include order: BT tree over RP tree over source410 backfills over BC45
|
|
INC="$C/BT_L4;$C/BT;$C/MUNGA;$C/MUNGA_L4;$C/MUNGA_L4/SOS/BC4;$R/MUNGA;$R/MUNGA_L4;$R/MUNGA_L4/sos/bc4;$C/MUNGA_L4/LIBDPL;$R/MUNGA_L4/libDPL;$R/MUNGA_L4/libDPL/dpl;$S/MUNGA;$S/BT;$S/BT_L4;c:/VWE/TeslaRel410/BORLAND/BC45/INCLUDE"
|
|
|
|
# CODE/BT/OPT.MAK flags (minus -H PCH, plus the NO_PRECOMPILED_HEADERS dodge)
|
|
FLAGS="-c -DLBE4 -DDEBUG_LEVEL=0 -DDEBUG_STREAM=cout \
|
|
-b -r -ff -AT -k- -N- -v- -5 -a4 -V -Jg -x- -RT- -O2 -w-"
|
|
|
|
one() {
|
|
r=$(bcc32 $FLAGS -I"$INC" "$1" 2>&1 | grep "^Error" | head -1)
|
|
if [ -z "$r" ]; then
|
|
echo "OK $(basename "$1")"
|
|
else
|
|
echo "FAIL $(basename "$1"): $(echo "$r" | sed 's/.*Error //')"
|
|
fi
|
|
}
|
|
|
|
if [ "$1" = "--sweep" ]; then
|
|
for f in "$C"/BT/BTMSSN.CPP "$C"/BT/BTCNSL.CPP "$C"/BT/BTREG.CPP \
|
|
"$C"/BT/BTSCNRL.CPP "$C"/BT/BTTEAM.CPP "$C"/BT/BTTOOL.CPP \
|
|
"$C"/BT/GAUSS.CPP "$C"/BT/PPC.CPP \
|
|
"$C"/BT_L4/BTL4MODE.CPP "$C"/BT_L4/BTL4ARND.CPP \
|
|
"$S"/BT_L4/*.CPP; do
|
|
[ -f "$f" ] && one "$f"
|
|
done
|
|
else
|
|
for f in "$@"; do one "$f"; done
|
|
fi
|