.ERASE
.obj: OBJ

!ifdef __MEDIUM__
__MODEL__ = m
__MSM__ = -DI8086M
!else
!ifdef __COMPACT__
__MODEL__ = c
__MSM__ = -DI8086C
!else
!ifdef __TINY__
__MODEL__ = t
__MSM__ = -DI8086S
!else
!ifdef __SMALL__
__MODEL__ = s
__MSM__ = -DI8086S
!else
__MODEL__ = l
__MSM__ = -DI8086L
!endif
!endif
!endif
!endif

!ifdef debug
__COMP_DEB__ = /d2
__LINK_DEB__ = D All
!endif

!ifdef map
__MAPKEY__ = op map
!endif

Compile_Flags =  /m$(__MODEL__)/zq/zp1/2/bt=DOS/fpi/fp2/s/wx/zv/zmf/onax$(__COMP_DEB__)

Objs = &
  sf-node.obj &
  alert.obj &
  chraddr.obj &
  mouse.obj &
  saver.obj &
  tleview.obj &
  tnet.obj &
  tnode.obj &
  tpoint.obj &
  tscreen.obj &
  tview.obj &
  tzone.obj &
  tsrcview.obj &
  tstatus.obj &
  ncview.obj &
  alloc.obj &
  serachn.obj &
  nodelist.obj &
  help.obj &
  config.obj &
  intens.obj &
  slice.obj &

sf-node.exe: $(Objs) sf-node.lnk
    wlink $(__LINK_DEB__) $(__MAPKEY__) system dos op el,vfr,d,st=4096 name sf-node libfile emu87.lib path obj @sf-node.lnk lib lexical$(__MODEL__)

sf-node.lnk : makefile
  echo file { >$@
  for %i in ($(Objs)) do echo %i >>$@
  echo } >>$@

.cpp.obj :
    wpp $]@ /fo=obj\$^. $(Compile_Flags)/xd

.c.obj :
    wcc $]@ /fo=obj\$^. $(Compile_Flags)

.asm.obj :
    masm $(__MSM__) $]@, obj\$^. ;

clean: .SYMBOLIC
    -del obj\*.obj
    -del sf-node.lnk
    -del *.err

ALERT.obj : tscreen.h key.h mouse.h ALERT.CPP
ALLOC.obj : sf-node.h view.h tview.h tscreen.h ndl.h tstatus.h ALLOC.CPP
CHRADDR.obj : ndl.h CHRADDR.CPP
HELP.obj : sf-node.h view.h tview.h tscreen.h ndl.h tstatus.h mouse.h HELP.CPP
MOUSE.obj :  tscreen.h key.h ncview.h slice.h mouse.h MOUSE.CPP
NCVIEW.obj :  NCVIEW.CPP
NODELIST.obj : sf-node.h view.h tview.h tscreen.h ndl.h tstatus.h NODELIST.CPP
SAVER.obj : tscreen.h mouse.h slice.h SAVER.CPP
SERACHN.obj : ndl.h sf-node.h view.h tview.h tscreen.h tstatus.h SERACHN.CPP
SF-NODE.obj : lexical.h ndl.h view.h tview.h tscreen.h key.h mouse.h tstatus.h sf-node.h selexpr.h country.h slice.h SF-NODE.CPP
SORT.obj : SORT.c
TEST.obj : sf-node.h view.h tview.h tscreen.h ndl.h tstatus.h TEST.CPP
TLEVIEW.obj : country.h view.h tview.h tscreen.h ndl.h key.h sf-node.h tstatus.h mouse.h selexpr.h sf-node.h slice.h TLEVIEW.CPP
TNET.obj : view.h tview.h tscreen.h sf-node.h ndl.h tstatus.h key.h mouse.h slice.h TNET.CPP
TNODE.obj : view.h tview.h tscreen.h sf-node.h ndl.h tstatus.h key.h mouse.h slice.h TNODE.CPP
TPOINT.obj : view.h tview.h tscreen.h sf-node.h ndl.h tstatus.h key.h mouse.h slice.h TPOINT.CPP
TSCREEN.obj : tscreen.h mouse.h colors.h key.h TSCREEN.CPP
TSTATUS.obj : tstatus.h tscreen.h TSTATUS.CPP
TVIEW.obj : key.h tview.h tscreen.h country.h mouse.h slice.h TVIEW.CPP
TZONE.obj : view.h tview.h tscreen.h sf-node.h ndl.h tstatus.h key.h mouse.h slice.h TZONE.CPP
CONFIG.OBJ : CONFIG.ASM
INTENS.OBJ : model.inc INTENS.ASM
SLICE.OBJ : model.inc SLICE.ASM
tsrcview.obj : country.h view.h tview.h tscreen.h sf-node.h ndl.h tstatus.h colors.h key.h mouse.h slice.h tsrcview.cpp

