- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
112 lines
2.8 KiB
Plaintext
112 lines
2.8 KiB
Plaintext
#----------------------------------------------------------------------------
|
|
# ObjectWindows - (C) Copyright 1993 by Borland International
|
|
# Extension to makefile.gen, adding OCF definitions and libraries
|
|
#----------------------------------------------------------------------------
|
|
|
|
!ifndef MODELS
|
|
MODELS = smldf
|
|
!endif
|
|
!ifndef SYSTEMS
|
|
SYSTEMS = WIN16 WIN32
|
|
!endif
|
|
|
|
|
|
#
|
|
# if no MODEL is specified & we're in 16-bit, default to LARGE
|
|
#
|
|
!if !$d(MODEL) && !$d(WIN32) && "$(SYSTEM)" != "WIN32"
|
|
MODEL=l
|
|
!endif
|
|
|
|
|
|
SYSLIBS = 1 # force defined, actually set after include of makefile.gen
|
|
SYSLIBSD = 1 # force defined, actually set after include of makefile.gen
|
|
!include $(BCEXAMPLEDIR)\makefile.gen
|
|
|
|
!ifdef USEDLL
|
|
CFLAGS = $(CFLAGS) -D_OCFDLL -D_BIDSDLL
|
|
CFLAGSD = $(CFLAGSD) -D_OCFDLL -D_BIDSDLL
|
|
!endif
|
|
|
|
#----------------------------------------------------------------------------
|
|
# dir & search paths
|
|
#----------------------------------------------------------------------------
|
|
|
|
!ifndef OCFLIBDIR
|
|
OCFLIBDIR = $(BCLIBDIR)
|
|
!endif
|
|
|
|
!if !$d(OCFINCDIR)
|
|
OCFINCDIR = $(BCINCDIR)
|
|
!elif "$(OCFINCDIR)" != "$(BCINCDIR)"
|
|
INCLUDEPATH = $(OCFINCDIR);$(BCINCDIR)
|
|
!endif
|
|
|
|
#----------------------------------------------------------------------------
|
|
# additional libraries for OCF and BIDS
|
|
#----------------------------------------------------------------------------
|
|
|
|
# determine library name suffix based upon model
|
|
#
|
|
!if $(_32BIT_)
|
|
! if $d(USEDLL)
|
|
_SFX_ = fi
|
|
! else
|
|
_SFX_ = f
|
|
! endif
|
|
!else #WIN16
|
|
! if $d(USEDLL)
|
|
_SFX_ = i
|
|
! else
|
|
_SFX_ = $(MODEL)
|
|
! endif
|
|
!endif
|
|
|
|
!if $(_32BIT_)
|
|
_OCFCODE_ = w
|
|
!else
|
|
_OCFCODE_ = $(_SYSCODE_)
|
|
!endif
|
|
|
|
#
|
|
# select suffix for alternate library if diagnostics enabled
|
|
#
|
|
!if $(DIAGS)
|
|
OCFSFX = d$(_OCFCODE_)$(_SFX_)
|
|
! if $d(USEDLL) || $(_32BIT_)
|
|
BIDSSFX = d$(_SFX_)
|
|
! else # 16-bit static
|
|
BIDSSFX = db$(_SFX_) #use 'db' for 16 bit static for compatibility
|
|
! endif
|
|
!else # no diags
|
|
OCFSFX = $(_OCFCODE_)$(_SFX_)
|
|
BIDSSFX = $(_SFX_)
|
|
!endif
|
|
|
|
#
|
|
# add OCF to system libraries
|
|
#
|
|
!if $(_32BIT_)
|
|
OLELIB = $(BCLIBDIR)\ole2w32
|
|
SYSLIBS = $(OCFLIBDIR)\ocf$(OCFSFX) $(BCLIBDIR)\bids$(BIDSSFX) $(OLELIB)
|
|
SYSLIBSD = $(SYSLIBS)
|
|
!else
|
|
OLELIB = $(BCLIBDIR)\ole2w16
|
|
SYSLIBS = $(OCFLIBDIR)\ocf$(OCFSFX) $(BCLIBDIR)\bids$(BIDSSFX) $(OLELIB)
|
|
SYSLIBSD = $(OCFLIBDIR)\ocf$(OCFSFX)u $(BCLIBDIR)\bids$(BIDSSFX) $(OLELIB)
|
|
!endif
|
|
|
|
#
|
|
# build the cpp command line option for precompiled headers if requested
|
|
#
|
|
!if !$d(NOOCFPCH)
|
|
CPCH = -H=$(OCFLIBDIR)\ocf$(OCFSFX).csm -H"ocf\ocfpch.h" -D_OCFPCH
|
|
!if $(_32BIT_)
|
|
CPCHD = -H=$(OCFLIBDIR)\ocf$(OCFSFX).csm -H"ocf\ocfpch.h" -D_OCFPCH
|
|
!else
|
|
CPCHD = -H=$(OCFLIBDIR)\ocf$(OCFSFX)u.csm -H"ocf\ocfpch.h" -D_OCFPCH
|
|
!endif
|
|
!endif
|
|
|
|
$(MAKEFILE) :: $(OCFLIBDIR)\ocf$(OCFSFX).lib $(BCLIBDIR)\bids$(BIDSSFX).lib
|