.path.obj = .
.path.c = .
.path.exe = .

RES = true-bso.res
OBJS = true-bso.obj scanreg.obj FarIntf.obj
LIBS = cw32.lib import32.lib
#FLAGS = -X -4 -k- -K -w -O2 -Oc -Oi -RT- -a1 -x- -f- -ff- -I..\INCLUDE
#FLAGS = -4 -k- -x- -f- -w -RT- -I..\INCLUDE
FLAGS = -4 -k- -x- -f- -w -RT- -a2 -R- -M- -v- -I..\INCLUDE

!ifdef DEBUG
  DEFS  = -DDEBUG
!endif

!ifdef USE_BC_RTL
  OBJSS = c0d32.obj $(OBJS)
!else
  OBJSS = $(OBJS)
!endif

.c.obj:
  bcc32 -c $(FLAGS) $(DEFS) {$. }

.cpp.obj:
  bcc32 -c $(FLAGS) $(DEFS) {$. }

.rc.res:
  brcc32 -r $<

true-bso.dll: $(OBJS) $(RES)
  tlink32 -x -OS -Tpd @&&|
$(OBJSS)
$&
nul
$(LIBS)
,$(RES)
|
#  @C:\UTIL\ARH\ASPack\ASPack $&.dll
#  @if exist true-bso.DLL.bak del true-bso.DLL.bak
  @del *.obj > nul
  @del $(RES) > nul
  @-md TrueBSO > nul
  @echo y|del TrueBSO > nul
  @-move "\Progra~1\Far\Plugins\TrueBSO\True-BSO.dll" .\TrueBSO\True-BSO.dll
  @copy true-bso.dll "\Program Files\Far\Plugins\TrueBSO\true-bso.dll"
  @copy *.lng "\Program Files\Far\Plugins\TrueBSO"
  @copy *.hlf "\Program Files\Far\Plugins\TrueBSO"
