ReC98/build16b.bat
nmlgc 61358c1082 [Build] 16-bit: Unconditionally rebuild everything by default
Yup, let's completely avoid any of the benefits a Makefile might have
had, because they're completely unreliable without spelling out every
single #include. Such a trash technology, unsuited for pretty much
anything it's touted for.

Oh well, you can still call `maker` manually without the -B flag, if
you know for a fact that you've only modified the dependencies
currently listed. 🤷
At least this flag exists, and we don't have to add something like a
dummy .OBJ to each and every list of dependencies, so that we then can
force rebuilds by simply `touch`ing that one file…

Part of P0001, funded by GhostPhanom.
2020-09-03 19:04:15 +02:00

38 lines
895 B
Batchfile
Executable File

@echo off
echo Running the second, 16-bit part of the ReC98 build process.
echo If this fails or shows other weird behavior, run BUILD16B separately in DOSBox.
REM (Yes, we don't use %0%, as it actually has to be %0 on DOS. Just spelling
REM out the name saves us that trouble.)
tlink >NUL
if errorlevel 9009 goto no_tlink
if errorlevel 216 goto 64_bit
tcc >NUL
if errorlevel 9009 goto no_tcc
if errorlevel 216 goto 64_bit
maker -B
if errorlevel 9009 goto no_make
if errorlevel 216 goto 64_bit
goto eof
:64_bit
echo You're running a 64-bit OS. Run BUILD16B.BAT separately in DOSBox instead.
goto eof
:no_tcc
echo Could not find TCC.
goto tc4j_bin
:no_tlink
echo Could not find TLINK.
goto tc4j_bin
:no_make
echo Could not find MAKER.
goto tc4j_bin
:tc4j_bin
echo Please make sure that the BIN directory of Turbo C++ 4.0J is in your PATH.
goto eof
:eof