Files
TeslaRel410/BORLAND/BC45/EXAMPLES/OWLOCFMK.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

113 lines
2.8 KiB
Plaintext

#----------------------------------------------------------------------------
# ObjectWindows - (C) Copyright 1993 by Borland International
# Extension to makefile.gen, adding OCF definitions and libraries
#----------------------------------------------------------------------------
!ifndef MODELS
MODELS = mldf
!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
!include $(BCEXAMPLEDIR)\owlmake.gen
!ifdef USEDLL
CFLAGS = $(CFLAGS) -D_OCFDLL
CFLAGSD = $(CFLAGSD) -D_OCFDLL
!endif
CFLAGS = $(CFLAGS) -DINC_OLE2
CFLAGSD= $(CFLAGSD) -DINC_OLE2
#----------------------------------------------------------------------------
# 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) $(OWLLIBDIR)\owl$(OWLSFX) $(BCLIBDIR)\bids$(BIDSSFX) $(OLELIB)
SYSLIBSD = $(OCFLIBDIR)\ocf$(OCFSFX) $(OWLLIBDIR)\owl$(OWLSFX) $(BIDSLIBDIR)\bids$(BIDSSFX) $(OLELIB)
!else
OLELIB = $(BCLIBDIR)\ole2w16
SYSLIBS = $(OCFLIBDIR)\ocf$(OCFSFX) $(OWLLIBDIR)\owl$(OWLSFX) $(BCLIBDIR)\bids$(BIDSSFX) $(OLELIB)
SYSLIBSD = $(OCFLIBDIR)\ocf$(OCFSFX)u $(OWLLIBDIR)\owl$(OWLSFX)u $(BIDSLIBDIR)\bids$(BIDSSFX) $(OLELIB)
!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
!endif
!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
$(MAKEFILE) :: $(OWLLIBDIR)\owl$(OWLSFX).lib $(BCLIBDIR)\bids$(BIDSSFX).lib