Files
TeslaRel410/BORLAND/BC45/EXAMPLES/OWLMAKE.GEN
T
CydandClaude Fable 5 63312e07f9 source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived
- 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>
2026-07-19 07:33:26 -05:00

114 lines
2.9 KiB
Plaintext

#----------------------------------------------------------------------------
# ObjectWindows - (C) Copyright 1993 by Borland International
# Extension to makefile.gen, adding OWL definitions and libraries
#----------------------------------------------------------------------------
!ifndef MODELS
MODELS = smldf
!endif
!ifndef SYSTEMS
SYSTEMS = WIN16 WIN32
!endif
#----------------------------------------------------------------------------
# dir & search paths
#----------------------------------------------------------------------------
!ifndef OWLLIBDIR
OWLLIBDIR = $(BCLIBDIR)
!endif
!ifndef BIDSLIBDIR
BIDSLIBDIR = $(BCLIBDIR)
!endif
!ifndef OWLINCDIR
OWLINCDIR = $(BCINCDIR)
!endif
!ifndef BIDSINCDIR
BIDSINCDIR = $(BCINCDIR)
!endif
!if "$(OWLINCDIR)" != "$(BCINCDIR)"
! if "$(BIDSINCDIR)" != "$(OWLINCDIR)" && "$(BIDSINCDIR)" != "$(BCINCDIR)"
SYSINCPATH = $(OWLINCDIR);$(BIDSINCDIR)
! else
SYSINCPATH = $(OWLINCDIR)
! endif
!elif "$(BIDSINCDIR)" != "$(BCINCDIR)"
SYSINCPATH = $(BIDSINCDIR)
!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_OWLDLL -D_BIDSDLL
CFLAGSD = $(CFLAGSD) -D_OWLDLL -D_BIDSDLL
!endif
#----------------------------------------------------------------------------
# additional libraries for OWL 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_)
_OWLCODE_ = w
!else
_OWLCODE_ = $(_SYSCODE_)
!endif
#
# select suffix for alternate library if diagnostics enabled
#
!if $(DIAGS)
OWLSFX = d$(_OWLCODE_)$(_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
OWLSFX = $(_OWLCODE_)$(_SFX_)
BIDSSFX = $(_SFX_)
!endif
#
# add OWL and BIDS libraries before user and runtime libraries
#
SYSLIBS = $(OWLLIBDIR)\owl$(OWLSFX) $(BIDSLIBDIR)\bids$(BIDSSFX)
!if $(_32BIT_)
SYSLIBSD = $(OWLLIBDIR)\owl$(OWLSFX) $(BIDSLIBDIR)\bids$(BIDSSFX)
!else
SYSLIBSD = $(OWLLIBDIR)\owl$(OWLSFX)u $(BIDSLIBDIR)\bids$(BIDSSFX)
!endif
#
# build the cpp command line option for precompiled headers if requested
#
!if !$d(NOOWLPCH)
CPCH = -H=$(OWLLIBDIR)\owl$(OWLSFX).csm -H"owl\owlpch.h" -D_OWLPCH
!if $(_32BIT_)
CPCHD = -H=$(OWLLIBDIR)\owl$(OWLSFX).csm -H"owl\owlpch.h" -D_OWLPCH
!else
CPCHD = -H=$(OWLLIBDIR)\owl$(OWLSFX)u.csm -H"owl\owlpch.h" -D_OWLPCH
!endif
!endif
$(MAKEFILE) :: $(OWLLIBDIR)\owl$(OWLSFX).lib $(BIDSLIBDIR)\bids$(BIDSSFX).lib